Public Member Functions | Private Member Functions | Private Attributes

uiLabel Class Reference

Inheritance diagram for uiLabel:
uiObject uiBaseObject NamedObject CallBacker

List of all members.

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_

Constructor & Destructor Documentation

uiLabel::uiLabel ( uiParent ,
const char *   
)
uiLabel::uiLabel ( uiParent ,
const char *  ,
uiObject  
)
uiLabel::uiLabel ( uiParent ,
const char *  ,
uiGroup  
)

Member Function Documentation

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

Member Data Documentation

uiLabelBody* uiLabel::body_ [private]

Reimplemented from uiBaseObject.