Class: Shoes::Swt::Oval
- Inherits:
-
Object
- Object
- Shoes::Swt::Oval
- Includes:
- Common::PainterUpdatesPosition, Common::Clickable, Common::Fill, Common::Remove, Common::Stroke, Common::Translate, Common::Visibility
- Defined in:
- shoes-swt/lib/shoes/swt/oval.rb
Instance Attribute Summary collapse
-
#app ⇒ Object
readonly
Returns the value of attribute app.
-
#container ⇒ Object
readonly
Returns the value of attribute container.
-
#dsl ⇒ Object
readonly
Returns the value of attribute dsl.
-
#painter ⇒ Object
readonly
Returns the value of attribute painter.
-
#transform ⇒ Object
readonly
Returns the value of attribute transform.
Attributes included from Common::Clickable
Instance Method Summary collapse
-
#initialize(dsl, app) ⇒ Oval
constructor
A new instance of Oval.
- #update_position ⇒ Object
Methods included from Common::Translate
#clear_translate, #translate_left, #translate_top
Methods included from Common::Remove
Methods included from Common::Visibility
#hidden?, #hidden_from_view?, #hide, #outside_parent_view?, #show, #toggle, #visible?
Methods included from Common::Clickable
#click, #pass_coordinates?, #register_click, #release
Methods included from Common::Stroke
Methods included from Common::Fill
Constructor Details
#initialize(dsl, app) ⇒ Oval
Returns a new instance of Oval.
19 20 21 22 23 24 25 26 |
# File 'shoes-swt/lib/shoes/swt/oval.rb', line 19 def initialize(dsl, app) @dsl = dsl @app = app @container = @app.real @painter = OvalPainter.new(self) @app.add_paint_listener @painter end |
Instance Attribute Details
#app ⇒ Object (readonly)
Returns the value of attribute app.
15 16 17 |
# File 'shoes-swt/lib/shoes/swt/oval.rb', line 15 def app @app end |
#container ⇒ Object (readonly)
Returns the value of attribute container.
15 16 17 |
# File 'shoes-swt/lib/shoes/swt/oval.rb', line 15 def container @container end |
#dsl ⇒ Object (readonly)
Returns the value of attribute dsl.
15 16 17 |
# File 'shoes-swt/lib/shoes/swt/oval.rb', line 15 def dsl @dsl end |
#painter ⇒ Object (readonly)
Returns the value of attribute painter.
15 16 17 |
# File 'shoes-swt/lib/shoes/swt/oval.rb', line 15 def painter @painter end |
#transform ⇒ Object (readonly)
Returns the value of attribute transform.
15 16 17 |
# File 'shoes-swt/lib/shoes/swt/oval.rb', line 15 def transform @transform end |
Instance Method Details
#update_position ⇒ Object
28 29 30 |
# File 'shoes-swt/lib/shoes/swt/oval.rb', line 28 def update_position # No-op, since it has its own painter end |