Label —
type
KeyVal |
labelNew:: Maybe String -> IO Label |
labelNewWithMnemonic:: String -> IO Label |
labelGetLayoutOffsets:: LabelClass l => l -> IO (Int,Int) |
labelGetMnemonicKeyval:: LabelClass l => l -> IO KeyVal |
labelGetSelectable:: LabelClass l => l -> IO Bool |
labelGetText:: LabelClass l => l -> IO String |
labelSelectRegion:: LabelClass l => l -> Int -> Int -> IO () |
labelSetAttributes <no type information> |
labelSetJustify:: LabelClass l => l -> Justification -> IO () |
labelSetLineWrap:: LabelClass l => l -> Bool -> IO () |
labelSetMarkup:: LabelClass l => l -> Markup -> IO () |
labelSetMarkupWithMnemonic:: LabelClass l => l -> Markup -> IO () |
labelSetMnemonicWidget:: (LabelClass l, WidgetClass w) => l -> w -> IO () |
labelSetPattern:: LabelClass l => l -> [Int] -> IO () |
labelSetSelectable:: LabelClass l => l -> Bool -> IO () |
labelSetText:: LabelClass l => l -> String -> IO () |
labelSetTextWithMnemonic:: LabelClass l => l -> String -> IO () |
Create a new label widget with accelerator key.
| labelNewWithMnemonic | :: String | :: IO Label |
| str |
Each underscore in str is converted into an underlined character in the label. Entering this character will activate the label widget or any other widget set with labelSetMnemonicWidget.
get starting cooridinates of text rendering
| labelGetLayoutOffsets | :: l | :: IO (Int,Int) |
| l |
get the keyval for the underlined character in the label
| labelGetMnemonicKeyval | :: l | :: IO KeyVal |
| l |
set wether lines should be wrapped or truncated
| labelSetLineWrap | :: l | :: Bool | :: IO () |
| l | w |
set the label to a markup string and interpret keyboard accelerators
| labelSetMarkupWithMnemonic | :: l | :: Markup | :: IO () |
| l | str |
set an explicit widget for which to emit the mnemonic_activate signal if an underlined character is pressed
| labelSetMnemonicWidget | :: l | :: w | :: IO () |
| l | w |