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
60 61 62 |
# File 'lib/processing/font.rb', line 60 def h @h end |
#w ⇒ Object (readonly)
Width of bounding box
56 57 58 |
# File 'lib/processing/font.rb', line 56 def w @w end |
#x ⇒ Object (readonly)
Horizontal position
48 49 50 |
# File 'lib/processing/font.rb', line 48 def x @x end |
#y ⇒ Object (readonly)
Vertical position
52 53 54 |
# File 'lib/processing/font.rb', line 52 def y @y end |
Instance Method Details
#inspect ⇒ String
Returns a string containing a human-readable representation of object.
71 72 73 |
# File 'lib/processing/font.rb', line 71 def inspect() "#<Processing::TextBounds: x:#{x} y:#{y} w:#{w} h:#{h}>" end |