Class: FreeType::API::Point

Inherits:
Struct
  • Object
show all
Defined in:
lib/freetype/api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#tagObject

Returns the value of attribute tag

Returns:

  • (Object)

    the current value of tag



236
237
238
# File 'lib/freetype/api.rb', line 236

def tag
  @tag
end

#xObject

Returns the value of attribute x

Returns:

  • (Object)

    the current value of x



236
237
238
# File 'lib/freetype/api.rb', line 236

def x
  @x
end

#yObject

Returns the value of attribute y

Returns:

  • (Object)

    the current value of y



236
237
238
# File 'lib/freetype/api.rb', line 236

def y
  @y
end

Instance Method Details

#on_curve?Boolean

Returns:

  • (Boolean)


237
238
239
# File 'lib/freetype/api.rb', line 237

def on_curve?
  tag & 0x01 != 0
end