Class: RubySketch::Processing::TextBounds
- Inherits:
-
Object
- Object
- RubySketch::Processing::TextBounds
- Defined in:
- lib/rubysketch/processing.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
-
#initialize(x, y, w, h) ⇒ TextBounds
constructor
Initialize bouding box.
Constructor Details
#initialize(x, y, w, h) ⇒ TextBounds
Initialize bouding box.
1182 1183 1184 |
# File 'lib/rubysketch/processing.rb', line 1182 def initialize (x, y, w, h) @x, @y, @w, @h = x, y, w, h end |
Instance Attribute Details
#h ⇒ Object (readonly)
Height of bounding box
1173 1174 1175 |
# File 'lib/rubysketch/processing.rb', line 1173 def h @h end |
#w ⇒ Object (readonly)
Width of bounding box
1169 1170 1171 |
# File 'lib/rubysketch/processing.rb', line 1169 def w @w end |
#x ⇒ Object (readonly)
Horizontal position
1161 1162 1163 |
# File 'lib/rubysketch/processing.rb', line 1161 def x @x end |
#y ⇒ Object (readonly)
Vertical position
1165 1166 1167 |
# File 'lib/rubysketch/processing.rb', line 1165 def y @y end |