Class: Pimento::HorizontalLineComponent
- Defined in:
- lib/pimento/component.rb
Direct Known Subclasses
HorizontalSlider, PopupButton, ProgressIndicator, RoundedRectButton, SearchField
Instance Attribute Summary collapse
-
#width ⇒ Object
Returns the value of attribute width.
Attributes inherited from Component
Instance Method Summary collapse
-
#initialize(canvas, x, y, width) ⇒ HorizontalLineComponent
constructor
A new instance of HorizontalLineComponent.
Methods inherited from Component
for, handles, #num_objects, #render_object, #render_object_record, #template_name
Methods included from Renderable
Constructor Details
#initialize(canvas, x, y, width) ⇒ HorizontalLineComponent
Returns a new instance of HorizontalLineComponent.
51 52 53 54 |
# File 'lib/pimento/component.rb', line 51 def initialize(canvas, x, y, width) super(canvas, x, y) @width = width end |
Instance Attribute Details
#width ⇒ Object
Returns the value of attribute width.
49 50 51 |
# File 'lib/pimento/component.rb', line 49 def width @width end |