Name

Label —

Synopsis

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 ()

Datatypes

type KeyVal

KeyVal(CUInt)

KeyVal is a synonym for a hot key number.

Constructors

labelNew

create a new label widget

labelNew:: Maybe String:: IO Label
str

labelNewWithMnemonic

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.

Methods

labelGetLayoutOffsets

get starting cooridinates of text rendering

labelGetLayoutOffsets:: l:: IO (Int,Int)
l

labelGetMnemonicKeyval

get the keyval for the underlined character in the label

labelGetMnemonicKeyval:: l:: IO KeyVal
l

labelGetSelectable

is the text selectable?

labelGetSelectable:: l:: IO Bool
l

labelGetText

get the text stored in the label

labelGetText:: l:: IO String
l

labelSelectRegion

select a region in label

labelSelectRegion:: l:: Int:: Int:: IO ()
lstartend
no type info on symbol labelSetAttributes

labelSetJustify

set the justification of the label

labelSetJustify:: l:: Justification:: IO ()
lj

labelSetLineWrap

set wether lines should be wrapped or truncated

labelSetLineWrap:: l:: Bool:: IO ()
lw

labelSetMarkup

set the label to a markup string

labelSetMarkup:: l:: Markup:: IO ()
lstr

labelSetMarkupWithMnemonic

set the label to a markup string and interpret keyboard accelerators

labelSetMarkupWithMnemonic:: l:: Markup:: IO ()
lstr

labelSetMnemonicWidget

set an explicit widget for which to emit the mnemonic_activate signal if an underlined character is pressed

labelSetMnemonicWidget:: l:: w:: IO ()
lw

labelSetPattern

underline parts of the text, odd indices of the list represent underlined parts

labelSetPattern:: l:: [Int]:: IO ()
llist

labelSetSelectable

make a label text selectable

labelSetSelectable:: l:: Bool:: IO ()
ls

labelSetText

set the text the label widget shows

labelSetText:: l:: String:: IO ()
lstr

labelSetTextWithMnemonic

set the label to a markup string and interpret keyboard accelerators

labelSetTextWithMnemonic:: l:: String:: IO ()
lstr