Class: Processing::TextBounds
- Inherits:
-
Object
- Object
- Processing::TextBounds
- Defined in:
- lib/processing/font.rb
Overview
Bounding box for text.
Instance Attribute Summary collapse
-
#h ⇒ Object
readonly
Height of bounding box.
-
#w ⇒ Object
readonly
Width of bounding box.
-
#x ⇒ Object
readonly
Horizontal position.
-
#y ⇒ Object
readonly
Vertical position.
Instance Method Summary collapse
-
#inspect ⇒ String
Returns a string containing a human-readable representation of object.
Instance Attribute Details
#h ⇒ Object (readonly)
Height of bounding box
92 93 94 |
# File 'lib/processing/font.rb', line 92 def h @h end |
#w ⇒ Object (readonly)
Width of bounding box
88 89 90 |
# File 'lib/processing/font.rb', line 88 def w @w end |
#x ⇒ Object (readonly)
Horizontal position
80 81 82 |
# File 'lib/processing/font.rb', line 80 def x @x end |
#y ⇒ Object (readonly)
Vertical position
84 85 86 |
# File 'lib/processing/font.rb', line 84 def y @y end |
Instance Method Details
#inspect ⇒ String
Returns a string containing a human-readable representation of object.
103 104 105 |
# File 'lib/processing/font.rb', line 103 def inspect() "#<Processing::TextBounds: x:#{x} y:#{y} w:#{w} h:#{h}>" end |