Class: Shoes::Check

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

#checked=(bool) ⇒ Object

Marks or unmarks the check box. Using checked = false, for instance, unchecks the box.



106
107
108
# File 'lib/blue_shoes/native.rb', line 106

def checked=(bool)
  throw NotImplementedError
end

#checked?Boolean

Returns whether the box is checked or not. So, true means “yes, the box is checked!”

Returns:

  • (Boolean)


101
102
103
# File 'lib/blue_shoes/native.rb', line 101

def checked?
  throw NotImplementedError
end

#click(&blk) ⇒ Object

When the check is clicked, its click block is called. The block is handed self, which is the check object which was clicked.



111
112
113
114
# File 'lib/blue_shoes/native.rb', line 111

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

#focusObject

Moves focus to the check. The check will be highlighted and, if the user hits Enter, the check will be toggled between its checked and unchecked states.



117
118
119
120
# File 'lib/blue_shoes/native.rb', line 117

def focus
  # returns self
  throw NotImplementedError
end