Button —
buttonNew:: IO Button |
buttonNewFromStock:: String -> IO Button |
buttonNewWithLabel:: String -> IO Button |
buttonNewWithMnemonic:: String -> IO Button |
buttonClicked:: ButtonClass b => b -> IO () |
buttonEnter:: ButtonClass b => b -> IO () |
buttonGetLabel:: ButtonClass b => b -> IO String |
buttonGetRelief:: ButtonClass b => b -> IO ReliefStyle |
buttonGetUseStock:: ButtonClass b => b -> IO Bool |
buttonGetUseUnderline:: ButtonClass b => b -> IO Bool |
buttonLeave:: ButtonClass b => b -> IO () |
buttonPressed:: ButtonClass b => b -> IO () |
buttonReleased:: ButtonClass b => b -> IO () |
buttonSetLabel:: ButtonClass b => b -> String -> IO () |
buttonSetRelief:: ButtonClass b => b -> ReliefStyle -> IO () |
buttonSetUseStock:: ButtonClass b => b -> Bool -> IO () |
buttonSetUseUnderline:: ButtonClass b => b -> Bool -> IO () |
onButtonActivate:: ButtonClass b => b -> IO () -> IO (ConnectId b) |
onClicked:: ButtonClass b => b -> IO () -> IO (ConnectId b) |
onEnter:: ButtonClass b => b -> IO () -> IO (ConnectId b) |
onLeave:: ButtonClass b => b -> IO () -> IO (ConnectId b) |
onPressed:: ButtonClass b => b -> IO () -> IO (ConnectId b) |
onReleased:: ButtonClass b => b -> IO () -> IO (ConnectId b) |
Create a stock (predefined appearance) button.
| buttonNewFromStock | :: String | :: IO Button |
| stockId |
Create a button with an accelerator key.
| buttonNewWithMnemonic | :: String | :: IO Button |
| lbl |
Like buttonNewWithLabel but turns every underscore in the label to a underlined character which then acts as a mnemonic (keyboard shortcut).
Emit the clicked signal on the button.
| buttonClicked | :: b | :: IO () |
| b |
This is similar to calling buttonPressed and buttonReleased in sequence.
Get the current text on the button.
| buttonGetLabel | :: b | :: IO String |
| b |
The method returns the empty string in case the button does not have a label (e.g. it was created with buttonNew.
Set if the label is a stock identifier.
| buttonSetUseStock | :: b | :: Bool | :: IO () |
| b | flag |
Setting this property to True will make the button lookup its label in the table of stock items. If there is a match, the button will use the stock item instead of the label. You need to set this flag before you change the label.
Set if the label has accelerators.
| buttonSetUseUnderline | :: b | :: Bool | :: IO () |
| b | flag |
Setting this property will make the button join any underline character into the following letter and inserting this letter as a keyboard shortcut. You need to set this flag before you change the label.
The button has been depressed (but not necessarily released yet). See clicked signal.
| onButtonActivate | :: b | :: IO () | :: IO (ConnectId b) |