Class: Shoes::Mock::Image
- Inherits:
-
Object
- Object
- Shoes::Mock::Image
- Includes:
- Clickable, CommonMethods
- Defined in:
- shoes-core/lib/shoes/mock/image.rb
Instance Attribute Summary collapse
-
#left ⇒ Object
Returns the value of attribute left.
-
#top ⇒ Object
Returns the value of attribute top.
Instance Method Summary collapse
-
#initialize(*_) ⇒ Image
constructor
A new instance of Image.
- #update_image ⇒ Object
Methods included from Clickable
Methods included from CommonMethods
#update_fill, #update_position, #update_stroke, #update_visibility
Constructor Details
#initialize(*_) ⇒ Image
Returns a new instance of Image.
11 12 13 14 15 |
# File 'shoes-core/lib/shoes/mock/image.rb', line 11 def initialize(*_) # SWT backend sets a size, so mimic that in the mock super @dsl.width ||= 22 end |
Instance Attribute Details
#left ⇒ Object
Returns the value of attribute left.
9 10 11 |
# File 'shoes-core/lib/shoes/mock/image.rb', line 9 def left @left end |
#top ⇒ Object
Returns the value of attribute top.
9 10 11 |
# File 'shoes-core/lib/shoes/mock/image.rb', line 9 def top @top end |
Instance Method Details
#update_image ⇒ Object
17 18 |
# File 'shoes-core/lib/shoes/mock/image.rb', line 17 def update_image end |