Class: Shoes::ToggleButton
- Defined in:
- lib/shoes/basic.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Basic
#args, #dps, #initials, #ln, #parent, #pl
Attributes included from Mod
#margin_bottom, #margin_left, #margin_right, #margin_top
Instance Method Summary collapse
Methods inherited from Native
#clear, #move, #move2, #text, #text=, #toggle
Methods inherited from Basic
#clear, #fix_size, #hide, #hided, #initialize, #move, #move2, #move3, #positioning, #set_args, #show, #style, #toggle
Methods included from Mod
Constructor Details
This class inherits a constructor from Shoes::Basic
Instance Method Details
#checked=(tof) ⇒ Object
246 247 248 249 |
# File 'lib/shoes/basic.rb', line 246 def checked=(tof) real.setSelection tof block.call if tof end |
#checked? ⇒ Boolean
243 244 245 |
# File 'lib/shoes/basic.rb', line 243 def checked? real.getSelection end |