Source codeContentsIndex
MenuButton
Synopsis
class (Widget w) => ButtonWidget w where
flash :: w -> IO ()
invoke :: w -> IO ()
data MenuButton
newMenuButton :: (Container par) => par -> [Config MenuButton] -> IO MenuButton
Documentation
class (Widget w) => ButtonWidget w where
Button widgets instantiate the class ButtonWidget.
Methods
flash :: w -> IO ()
Flashes the given button widget.
invoke :: w -> IO ()
Invokes the given button widget.
Instances
ButtonWidget Button
ButtonWidget (CheckButton a)
ButtonWidget MenuButton
ButtonWidget (RadioButton a)
data MenuButton
The MenuButton datatype.
newMenuButton
:: (Container par)
=> par the parent widget, which has to be a container widget (an instance of class Container).
-> [Config MenuButton] the list of configuration options for this menubutton.
-> IO MenuButton A menubutton widget.
Constructs a new menubutton widget and returns a handler.
Produced by Haddock version 0.3