Name

ToggleButton —

A ToggleButton is the base class for all buttons that have an inherit state.

Synopsis

toggleButtonNew:: IO ToggleButton
toggleButtonGetActive:: ToggleButtonClass tb => tb -> IO Bool
toggleButtonGetInconsistent:: ToggleButtonClass tb => tb -> IO Bool
toggleButtonNewWithLabel:: String -> IO ToggleButton
toggleButtonSetMode:: ToggleButtonClass tb => tb -> Bool -> IO ()
toggleButtonToggled:: ToggleButtonClass tb => tb -> IO ()
onToggled:: ButtonClass b => b -> IO () -> IO (ConnectId b)

Constructors

toggleButtonNew

Create a new ToggleButton widget.

toggleButtonNew

Methods

toggleButtonGetActive

Retrieve the current state of the button. Returns True if the button is depressed.

toggleButtonGetActive:: tb:: IO Bool
tb

toggleButtonGetInconsistent

Retrieve the inconsistent flag of the button. An inconsistent state only visually affects the button. It will be displayed in an "in-between" state.

toggleButtonGetInconsistent:: tb:: IO Bool
tb

toggleButtonNewWithLabel

Create a toggleButton with a label in it.

toggleButtonNewWithLabel:: String:: IO ToggleButton
lbl

toggleButtonSetMode

Determines whether or not the toggle button is drawn on screen. Set to True of the button should be invisible.

toggleButtonSetMode:: tb:: Bool:: IO ()
tbinvisible

toggleButtonToggled

Emit the toggled signal on the button.

toggleButtonToggled:: tb:: IO ()
tb

Signals

onToggled

Whenever the state of the button is changed, the toggled signal is emitted.

onToggled:: b:: IO ():: IO (ConnectId b)