Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

GText Class Reference

A static text label widget. More...

#include <GTextLabel.h>

Inheritance diagram for GText:

GView GTarget GEvent GFlags List of all members.

Public Member Functions

 GText (int id, int x, int y, int cx, int cy, char *name)
 Constructor.
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.
int Value ()
 Returns the numeric value of the text (atoi).
void Value (int i)
 Sets the text to a number.
char * Name ()
 Gets the text.
char16NameW ()
 Gets the text as a wide string.
COLOUR Background ()
 Background colour.
void Background (COLOUR c)
 Background colour.
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
 

Constructor.

Parameters:
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


The documentation for this class was generated from the following files:
Generated on Wed Oct 26 14:47:03 2005 for Lgi by  doxygen 1.4.1