Class: Idml::TextEngine::PositionedLine

Inherits:
Struct
  • Object
show all
Defined in:
lib/idml/text_engine/vertical_layout.rb

Overview

A line that's been positioned absolutely within a frame. glyphs is the original ShapedGlyph array (carrying widths); x, y is the left edge / baseline; width is the line's natural width after justification.

Instance Attribute Summary collapse

Instance Attribute Details

#glyphsObject

Returns the value of attribute glyphs

Returns:

  • (Object)

    the current value of glyphs



18
19
20
# File 'lib/idml/text_engine/vertical_layout.rb', line 18

def glyphs
  @glyphs
end

#widthObject

Returns the value of attribute width

Returns:

  • (Object)

    the current value of width



18
19
20
# File 'lib/idml/text_engine/vertical_layout.rb', line 18

def width
  @width
end

#xObject

Returns the value of attribute x

Returns:

  • (Object)

    the current value of x



18
19
20
# File 'lib/idml/text_engine/vertical_layout.rb', line 18

def x
  @x
end

#yObject

Returns the value of attribute y

Returns:

  • (Object)

    the current value of y



18
19
20
# File 'lib/idml/text_engine/vertical_layout.rb', line 18

def y
  @y
end