GClasses
GClasses::GWidgetGroupBox Class Reference

Detailed Description

This just draws a rectangular box.

#include <GWidgets.h>

Inheritance diagram for GClasses::GWidgetGroupBox:
GClasses::GWidgetAtomic GClasses::GWidget

Public Member Functions

 GWidgetGroupBox (GWidgetGroup *pParent, int x, int y, int w, int h, unsigned int cLight=0xffc0c0c0, unsigned int cShadow=0xff404040)
 
virtual ~GWidgetGroupBox ()
 
virtual void draw (GImage *pCanvas, int x, int y)
 Draws this widget on pCanvas at (x,y) More...
 
virtual bool isClickable ()
 
void setLightColor (unsigned int c)
 Sets the light color. More...
 
void setShadowColor (unsigned int c)
 Sets the shadow color. More...
 
virtual WidgetType type ()
 
- Public Member Functions inherited from GClasses::GWidgetAtomic
 GWidgetAtomic (GWidgetGroup *pParent, int x, int y, int w, int h)
 
virtual ~GWidgetAtomic ()
 
virtual bool isAtomic ()
 
virtual void onChar (char c)
 
virtual void onGetFocus ()
 
virtual void onLoseFocus ()
 
virtual void onMouseMove (int dx, int dy)
 
virtual void onSpecialKey (int key)
 
- Public Member Functions inherited from GClasses::GWidget
 GWidget (GWidgetGroup *m_pParent, int x, int y, int w, int h)
 
virtual ~GWidget ()
 
int id ()
 
GWidgetGroupparent ()
 
GRectrect ()
 
void setPos (int x, int y)
 

Protected Attributes

unsigned int m_cLight
 
unsigned int m_cShadow
 
- Protected Attributes inherited from GClasses::GWidget
GWidgetCommonm_common
 
int m_nID
 
GWidgetGroupm_pParent
 
GRect m_rect
 

Additional Inherited Members

- Public Types inherited from GClasses::GWidget
- Protected Member Functions inherited from GClasses::GWidgetAtomic
virtual void grab (int button, int x, int y)
 
virtual void release (int button)
 

Constructor & Destructor Documentation

GClasses::GWidgetGroupBox::GWidgetGroupBox ( GWidgetGroup pParent,
int  x,
int  y,
int  w,
int  h,
unsigned int  cLight = 0xffc0c0c0,
unsigned int  cShadow = 0xff404040 
)
virtual GClasses::GWidgetGroupBox::~GWidgetGroupBox ( )
virtual

Member Function Documentation

virtual void GClasses::GWidgetGroupBox::draw ( GImage pCanvas,
int  x,
int  y 
)
virtual

Draws this widget on pCanvas at (x,y)

Implements GClasses::GWidget.

virtual bool GClasses::GWidgetGroupBox::isClickable ( )
inlinevirtual

Reimplemented from GClasses::GWidgetAtomic.

void GClasses::GWidgetGroupBox::setLightColor ( unsigned int  c)

Sets the light color.

void GClasses::GWidgetGroupBox::setShadowColor ( unsigned int  c)

Sets the shadow color.

virtual WidgetType GClasses::GWidgetGroupBox::type ( )
inlinevirtual

Implements GClasses::GWidget.

Member Data Documentation

unsigned int GClasses::GWidgetGroupBox::m_cLight
protected
unsigned int GClasses::GWidgetGroupBox::m_cShadow
protected