hgeGUIText class

hgeGUIText is a class for text GUI control. To create a hgeGUIText object you may use this constructor:

hgeGUIText(
  int       id,
  float     x,
  float     y,
  float     w,
  float     h,
  hgeFont*  fnt
);

Parameters

id
Integer identificator for the created control.
x
The control's top-left corner x-coordinate.
y
The control's top-left corner y-coordinate.
w
The control's width.
h
The control's height.
fnt
Pointer to a hgeFont object to use for rendering text.

Other methods

SetMode Changes the text alignment mode.
SetText Changes the control's text.
printf Prints a formatted string to the control's text.
SetColor Changes the text's color.

Requirements

Header: hgeguictrls.h
Import library: hgehelp.lib