Class: Shoes::Mock::Image

Inherits:
Object
  • Object
show all
Includes:
Clickable, CommonMethods
Defined in:
shoes-core/lib/shoes/mock/image.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Clickable

#click, #release

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

#leftObject

Returns the value of attribute left


9
10
11
# File 'shoes-core/lib/shoes/mock/image.rb', line 9

def left
  @left
end

#topObject

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_imageObject


17
18
# File 'shoes-core/lib/shoes/mock/image.rb', line 17

def update_image
end