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



209
210
211
# File 'lib/freetype/api.rb', line 209

def tag
  @tag
end

#xObject

Returns the value of attribute x

Returns:

  • (Object)

    the current value of x



209
210
211
# File 'lib/freetype/api.rb', line 209

def x
  @x
end

#yObject

Returns the value of attribute y

Returns:

  • (Object)

    the current value of y



209
210
211
# File 'lib/freetype/api.rb', line 209

def y
  @y
end

Instance Method Details

#on_curve?Boolean

Returns:

  • (Boolean)


210
211
212
# File 'lib/freetype/api.rb', line 210

def on_curve?
  tag & 0x01 != 0
end