Public Member Functions | |
| uiLabel (uiParent *, const char *) | |
| uiLabel (uiParent *, const char *, uiObject *) | |
| uiLabel (uiParent *, const char *, uiGroup *) | |
| virtual void | setText (const char *) |
| set text on label | |
| const char * | text () const |
| void | setTextSelectable (bool yn=true) |
| void | setPixmap (const ioPixmap &) |
| void | setAlignment (Alignment::HPos) |
| Alignment::HPos | alignment () const |
Private Member Functions | |
| void | init (const char *txt, uiObject *buddy) |
| uiLabelBody & | mkbody (uiParent *, const char *) |
Private Attributes | |
| uiLabelBody * | body_ |
| uiLabel::uiLabel | ( | uiParent * | , | |
| const char * | ||||
| ) |
| Alignment::HPos uiLabel::alignment | ( | ) | const |
| void uiLabel::init | ( | const char * | txt, | |
| uiObject * | buddy | |||
| ) | [private] |
| uiLabelBody& uiLabel::mkbody | ( | uiParent * | , | |
| const char * | ||||
| ) | [private] |
| void uiLabel::setAlignment | ( | Alignment::HPos | ) |
setting an alignment only makes sense if you reserve space using setPrefWidthInChar();
| void uiLabel::setPixmap | ( | const ioPixmap & | ) |
| virtual void uiLabel::setText | ( | const char * | ) | [virtual] |
set text on label
Note that the layout for the label is not updated when setting a new text. So, if the new text is too long, part of it might be invisible. Therefore, reserve enough space for it with setPrefWidthInChar.
| void uiLabel::setTextSelectable | ( | bool | yn = true |
) |
| const char* uiLabel::text | ( | ) | const |
uiLabelBody* uiLabel::body_ [private] |
Reimplemented from uiBaseObject.
1.7.1