Class: Shoes::Button

Inherits:
Native show all
Defined in:
lib/blue_shoes/native.rb

Instance Method Summary collapse

Methods inherited from Native

#displace, #height, #hide, #left, #move, #parent, #remove, #show, #style, #toggle, #top, #width

Instance Method Details

#click(&blk) ⇒ Object

When a button is clicked, its click block is called. The block is handed self. Meaning: the button which was clicked.



86
87
88
89
# File 'lib/blue_shoes/native.rb', line 86

def click(&blk)
  # returns self
  throw NotImplementedError
end

#focusObject

Moves focus to the button. The button will be highlighted and, if the user hits Enter, the button will be clicked.



92
93
94
95
# File 'lib/blue_shoes/native.rb', line 92

def focus
  # returns self
  throw NotImplementedError
end