GText Class Reference

A static text label widget. More...

#include <GTextLabel.h>

Inheritance diagram for GText:


List of all members.

Public Member Functions

 GText (int id, int x, int y, int cx, int cy, char *name)
char * GetClass ()
bool Name (char *n)
 Set the text.
bool NameW (char16 *n)
 Set the text with a wide string.
void SetFont (GFont *Fnt, bool OwnIt=false)
 Sets the font used to render the text.
int64 Value ()
 Returns the numeric value of the text (atoi).
void Value (int64 i)
 Sets the text to a number.
char * Name ()
 Gets the text.
char16NameW ()
 Gets the text as a wide string.
bool GetWrap ()
 Word wrap.
void SetWrap (bool b)
 Sets the use of word wrap.
void OnPaint (GSurface *pDC)
 Called to paint the onscreen representation of the view.
void OnPosChange ()
 Called when the view position changes.

Detailed Description

A static text label widget.

Constructor & Destructor Documentation

GText::GText ( int  id,
int  x,
int  y,
int  cx,
int  cy,
char *  name 


id  The control's ID
x  Left edge position
y  Top edge position
cx  The width
cy  The height
name  Utf-8 text for the label

References Name(), GView::SetId(), and GView::SetPos().

Member Function Documentation

char* GText::GetClass (  )  [inline]

The class' name. Should be overriden in child classes to return the right class name. Mostly used for debugging, but in the win32 port it is also the default WIN32 class name passed to RegisterClass() in GView::CreateClass().

the Class' name for debugging

Reimplemented from GView.

The documentation for this class was generated from the following files:

Generated on Wed Dec 1 15:41:04 2010 for Lgi by  doxygen