Class: Shoes::ToggleButton

Inherits:
Button show all
Defined in:
lib/shoes/basic.rb

Direct Known Subclasses

Check, Radio

Instance Attribute Summary

Attributes inherited from Native

#state

Attributes inherited from Basic

#args, #cleared, #hided, #initials, #parent, #shows

Attributes included from Mod

#click_proc, #hover_proc, #hovered, #leave_proc, #margin_bottom, #margin_left, #margin_right, #margin_top, #release_proc

Instance Method Summary collapse

Methods inherited from Button

#click

Methods inherited from Native

#change, #focus

Methods inherited from Basic

#clear, #fix_size, #hide, #initialize, #move, #move2, #move3, #positioning, #remove, #show, #style, #toggle

Methods included from Mod

#click, #hover, #leave, #release, #set_margin

Constructor Details

This class inherits a constructor from Shoes::Basic

Instance Method Details

#checked=(tof) ⇒ Object



339
340
341
# File 'lib/shoes/basic.rb', line 339

def checked=(tof)
  real.active = tof
end

#checked?Boolean

Returns:

  • (Boolean)


335
336
337
# File 'lib/shoes/basic.rb', line 335

def checked?
  real.active?
end