- Your Widget Set For OpenGL
Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | Related Pages

ufo::ULabel Class Reference

A short, static, non-wrapping text field used to describe a nearby control or to display an icon. More...

#include <ulabel.hpp>

Inheritance diagram for ufo::ULabel:

ufo::UCompound ufo::UWidget ufo::UObject ufo::UCollectable List of all members.

Public Member Functions

 ULabel (UIcon *icon)
 ULabel (const std::string &text, UIcon *icon=NULL)
 ULabel (const std::string &text, UWidget *buddy)
 ULabel (const std::string &text, UIcon *icon, UWidget *buddy)
void setBuddy (UWidget *buddy)
UWidgetgetBuddy () const

Protected Member Functions

virtual UDimension getContentsSize (const UDimension &maxSize) const
virtual void processShortcutEvent (UShortcutEvent *e)

Detailed Description

A short, static, non-wrapping text field used to describe a nearby control or to display an icon.

Author:
Johannes Schmidt


Constructor & Destructor Documentation

ufo::ULabel::ULabel const std::string &  text,
UWidget buddy
 

Creates a label with given text and sets buddy as buddy widget.

See also:
setBuddy

ufo::ULabel::ULabel const std::string &  text,
UIcon icon,
UWidget buddy
 

Creates a label with given text and icon and sets buddy as buddy widget.

See also:
setBuddy


Member Function Documentation

UWidget* ufo::ULabel::getBuddy  )  const
 

See also:
setBuddy

void ufo::ULabel::setBuddy UWidget buddy  ) 
 

Sets the buddy or control widget. If the shortcut mnemonic of this label is pressed, the buddy is focused and if it is a button control, it will be activated.


The documentation for this class was generated from the following file:
The libUFO Project - written by Johannes Schmidt