Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXLabel Class Reference

#include <FXLabel.h>

Inheritance diagram for FX::FXLabel:

FX::FXFrame FX::FXWindow FX::FXDrawable FX::FXId FX::FXObject FX::FXButton FX::FXCheckButton FX::FXMenuButton FX::FXOption FX::FXOptionMenu FX::FXRadioButton FX::FXTabItem FX::FXToggleButton List of all members.

Public Methods

 FXLabel (FXComposite *p, const FXString &text, FXIcon *ic=0, FXuint opts=LABEL_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=DEFAULT_PAD, FXint pr=DEFAULT_PAD, FXint pt=DEFAULT_PAD, FXint pb=DEFAULT_PAD)
 Construct label with given text and icon.

virtual void create ()
 Create server-side resources.

virtual void detach ()
 Detach server-side resources.

virtual void enable ()
 Enable the window.

virtual void disable ()
 Disable the window.

virtual FXint getDefaultWidth ()
 Return default width.

virtual FXint getDefaultHeight ()
 Return default height.

void setText (const FXString &text)
 Set the text for this label.

FXString getText () const
 Get the text for this label.

void setIcon (FXIcon *ic)
 Set the icon for this label.

FXIcongetIcon () const
 Get the icon for this label.

void setFont (FXFont *fnt)
 Set the text font.

FXFontgetFont () const
 Get the text font.

FXColor getTextColor () const
 Get the current text color.

void setTextColor (FXColor clr)
 Set the current text color.

void setJustify (FXuint mode)
 Set the current text-justification mode.

FXuint getJustify () const
 Get the current text-justification mode.

void setIconPosition (FXuint mode)
 Set the current icon position.

FXuint getIconPosition () const
 Get the current icon position.

void setHelpText (const FXString &text)
 Set the status line help text for this label.

const FXStringgetHelpText () const
 Get the status line help text for this label.

void setTipText (const FXString &text)
 Set the tool tip message for this label.

const FXStringgetTipText () const
 Get the tool tip message for this label.

virtual void save (FXStream &store) const
 Save label to a stream.

virtual void load (FXStream &store)
 Load label from a stream.

virtual ~FXLabel ()
 Destructor.


Detailed Description

A label widget can be used to place a text and/or icon for explanation purposes. The text label may have an optional tooltip and/or help string.

See also: