| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Synopsis | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Documentation | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| buttonNew :: IO Button | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Create a new Button widget. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| buttonNewWithLabel :: String -> IO Button | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Create a button with a label in it. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| buttonNewWithMnemonic :: String -> IO Button | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Create a button with an accelerator key.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| buttonNewFromStock :: String -> IO Button | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Create a stock (predefined appearance) button. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| buttonPressed :: ButtonClass b => b -> IO () | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Depress the button, i.e. emit the pressed signal. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| buttonReleased :: ButtonClass b => b -> IO () | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Release the button, i.e. emit the released signal. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| buttonClicked :: ButtonClass b => b -> IO () | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Emit the clicked signal on the button.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| buttonEnter :: ButtonClass b => b -> IO () | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Emit the cursor enters signal to the button. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| buttonLeave :: ButtonClass b => b -> IO () | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Emit the cursor leaves signal to the button. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| data ReliefStyle | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| buttonSetRelief :: ButtonClass b => b -> ReliefStyle -> IO () | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Set the style of the button edges. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| buttonGetRelief :: ButtonClass b => b -> IO ReliefStyle | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Get the current relief style. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| buttonSetLabel :: ButtonClass b => b -> String -> IO () | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Set the text of the button. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| buttonGetLabel :: ButtonClass b => b -> IO String | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Get the current text on the button.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| buttonSetUseStock :: ButtonClass b => b -> Bool -> IO () | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Set if the label is a stock identifier.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| buttonGetUseStock :: ButtonClass b => b -> IO Bool | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Get the current flag for stock lookups. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| buttonSetUseUnderline :: ButtonClass b => b -> Bool -> IO () | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Set if the label has accelerators.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| buttonGetUseUnderline :: ButtonClass b => b -> IO Bool | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Query if the underlines are mnemonics. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| buttonSetFocusOnClick :: ButtonClass b => b -> Bool -> IO () | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Sets whether the button will grab focus when it is clicked with the mouse. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| buttonGetFocusOnClick :: ButtonClass b => b -> IO Bool | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Gets whether the button grabs focus when it is clicked with the mouse. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| buttonSetAlignment :: ButtonClass b => b -> (Float, Float) -> IO () | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Sets the alignment of the child. This has no effect unless the child derives from Misc Aligment. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| buttonGetAlignment :: ButtonClass b => b -> IO (Float, Float) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Gets the alignment of the child in the button. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| onButtonActivate :: ButtonClass b => b -> IO () -> IO (ConnectId b) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| The button has been depressed (but not necessarily released yet). See clicked signal. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| afterButtonActivate :: ButtonClass b => b -> IO () -> IO (ConnectId b) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| onClicked :: ButtonClass b => b -> IO () -> IO (ConnectId b) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| The button was clicked. This is only emitted if the mouse cursor was over the button when it was released. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| afterClicked :: ButtonClass b => b -> IO () -> IO (ConnectId b) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| onEnter :: ButtonClass b => b -> IO () -> IO (ConnectId b) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| The cursor enters the button box. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| afterEnter :: ButtonClass b => b -> IO () -> IO (ConnectId b) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| onLeave :: ButtonClass b => b -> IO () -> IO (ConnectId b) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| The cursor leaves the button box. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| afterLeave :: ButtonClass b => b -> IO () -> IO (ConnectId b) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| onPressed :: ButtonClass b => b -> IO () -> IO (ConnectId b) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| The button is pressed. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| afterPressed :: ButtonClass b => b -> IO () -> IO (ConnectId b) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| onReleased :: ButtonClass b => b -> IO () -> IO (ConnectId b) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| The button is released. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| afterReleased :: ButtonClass b => b -> IO () -> IO (ConnectId b) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Produced by Haddock version 0.6 |