Reference

CL_GWidget(3)

NAME

CL_GWidget

DESCRIPTION

/

Inherited from public CL_GObject, public CL_GRect

CLASS MEMBERS

CL_GWidget()
CL_GWidget(
CL_GWidget* parent,
int x,
int y,
int w,
int h)

virtual ~CL_GWidget()
void setBackground(
const CL_Surface* backgrnd,
bool tileIt = true)

void setColor(
float r,
float g,
float b,
float a)

void setAlpha(
unsigned char)

virtual void update()
void show()
void hide()
void close()
void enable()
void disable()
virtual void resize(
int w,
int h)

DEF_SLOT_1(
forceUpdate,
int)

DEF_SLOT_1(
close,
int)

DEF_SLOT_1(
hide,
int)

DEF_SLOT_1(
show,
int)

void blit()
bool handleEvent(
const CL_GEvent*)

virtual bool processEvent(
const CL_GEvent*)

bool needsUpdate()
bool isHidden()
bool isClosed()
bool isEnabled()
CL_Surface* insertChild(
CL_GWidget* child)

void removeChild(
CL_GWidget* child)

CL_GRect getRect()
CL_GRect globalCoord(
CL_GRect)

CL_GRect localCoord(
CL_GRect)

void addUpdateRects(
std::list<CL_GRect> &updateRects)

MEMBERS WITH DESCRIPTIONS

CL_GWidget()
Description:

/

CL_GWidget(
CL_GWidget* parent,
int x,
int y,
int w,
int h)

Description:

/

virtual ~CL_GWidget()
Description:

/

void setBackground(
const CL_Surface* backgrnd,
bool tileIt = true)

Description:

/setting background color. void setColor(const UColor &color);

void setColor(
float r,
float g,
float b,
float a)

Description:

/

void setAlpha(
unsigned char)

Description:

/screen update

virtual void update()
Description:

/show up this widget and it´s childs.

void show()
Description:

/hide this widget and it´s childs.

void hide()
Description:

/close this widget and it´s childs.

void close()
Description:

/enable this widget tree

void enable()
Description:

void disable()
Description:

virtual void resize(
int w,
int h)

Description:

/

DEF_SLOT_1(
forceUpdate,
int)

Description:

/

DEF_SLOT_1(
close,
int)

Description:

/

DEF_SLOT_1(
hide,
int)

Description:

/

DEF_SLOT_1(
show,
int)

Description:

void blit()
Description:

/

bool handleEvent(
const CL_GEvent*)

Description:

/

virtual bool processEvent(
const CL_GEvent*)

Description:

bool needsUpdate()
Description:

/

bool isHidden()
Description:

/

bool isClosed()
Description:

/

bool isEnabled()
Description:

CL_Surface* insertChild(
CL_GWidget* child)

Description:

/

void removeChild(
CL_GWidget* child)

Description:

CL_GRect getRect()
Description:

CL_GRect globalCoord(
CL_GRect)

Description:

CL_GRect localCoord(
CL_GRect)

Description:

/

void addUpdateRects(
std::list<CL_GRect> &updateRects)

Description:

SEE ALSO

All ClanLib API classes can be found in clanlib (3).

AUTHORS

Originally written by Magnus Norddahl <[email protected]> and Martin Starch <[email protected]>. ClanLib is now developed by the ClanLib Development team as an Open Source project.

The ClanLib man pages was created using the Perceps documentation system (another excellent piece of Open Source software, available at http://somewhere.in.the.world.org).

See clanlib (3) to find out how to get a full list of contributors and details on how to submit bug reports, comments etc.