hgeGUISlider class

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

hgeGUISlider(
  int       id,
  float     x,
  float     y,
  float     w,
  float     h,
  HTEXTURE  tex,
  float     tx,
  float     ty,
  float     sw,
  float     sh,
  bool      vertical = false
);

Parameters

id
Integer identificator for the created control.
x
The slider's top-left corner x-coordinate.
y
The slider's top-left corner y-coordinate.
w
The slider's width.
h
The slider's height.
tex
A handle of the texture, holding the slider's image. Depending on the slider's mode the image may be interpreted in different ways. See the SetMode function description for details.
tx
The slider image's top-left corner texture x-coordinate in pixels.
ty
The slider image's top-left corner texture y-coordinate in pixels.
sw
The slider image's width.
sh
The slider image's height.
vertical
Specifies if the slider should be vertical.

Other methods

SetMode Changes the slider's behaviour mode.
SetValue Changes the current slider's position.
GetValue Returns the current slider's position.

Requirements

Header: hgeguictrls.h
Import library: hgehelp.lib