Module: Shoes::Common::Clickable

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#pass_coordinatesObject

Returns the value of attribute pass_coordinates.



6
7
8
# File 'shoes-core/lib/shoes/common/clickable.rb', line 6

def pass_coordinates
  @pass_coordinates
end

Instance Method Details

#click(&blk) ⇒ Object



8
9
10
11
# File 'shoes-core/lib/shoes/common/clickable.rb', line 8

def click(&blk)
  @gui.click blk
  self
end

#pass_coordinates?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'shoes-core/lib/shoes/common/clickable.rb', line 23

def pass_coordinates?
  @pass_coordinates
end

#register_click(blk = nil) ⇒ Object



18
19
20
21
# File 'shoes-core/lib/shoes/common/clickable.rb', line 18

def register_click(blk = nil)
  click(&@style[:click]) if @style[:click]
  click(&blk) if blk
end

#release(&blk) ⇒ Object



13
14
15
16
# File 'shoes-core/lib/shoes/common/clickable.rb', line 13

def release(&blk)
  @gui.release blk
  self
end