GClasses

GClasses::GWidgetCommon Class Reference

#include <GWidgets.h>

List of all members.

Public Member Functions

 GWidgetCommon ()
 ~GWidgetCommon ()
void drawButtonText (GImage *pImage, int x, int y, int w, int h, const char *text, bool pressed)
void drawLabelText (GImage *pImage, int x, int y, int w, int h, const char *text, float fontSize, bool alignLeft, unsigned int c)
void drawHorizCurvedOutSurface (GImage *pImage, int x, int y, int w, int h, unsigned int col=0xff0000ff)
void drawHorizCurvedInSurface (GImage *pImage, int x, int y, int w, int h, unsigned int col=0xff0000ff)
void drawVertCurvedOutSurface (GImage *pImage, int x, int y, int w, int h, unsigned int col=0xff0000ff)
void drawVertCurvedInSurface (GImage *pImage, int x, int y, int w, int h, unsigned int col=0xff0000ff)
void drawCursor (GImage *pImage, int x, int y, int w, int h)
void drawClipped (GImage *pCanvas, int x, int y, GWidget *pWidget, GRect *pClipRect)
 This method lets you draw a widget clipped by some rect. Note that it uses a persistent buffer image to facilitate this. It doesn't clear the image, so if your widget doesn't draw over its entire rect, you'll see garbage from previous uses.

Protected Attributes

GImage m_bufferImage

Constructor & Destructor Documentation

GClasses::GWidgetCommon::GWidgetCommon ( )
GClasses::GWidgetCommon::~GWidgetCommon ( )

Member Function Documentation

void GClasses::GWidgetCommon::drawButtonText ( GImage pImage,
int  x,
int  y,
int  w,
int  h,
const char *  text,
bool  pressed 
)
void GClasses::GWidgetCommon::drawClipped ( GImage pCanvas,
int  x,
int  y,
GWidget pWidget,
GRect pClipRect 
)

This method lets you draw a widget clipped by some rect. Note that it uses a persistent buffer image to facilitate this. It doesn't clear the image, so if your widget doesn't draw over its entire rect, you'll see garbage from previous uses.

void GClasses::GWidgetCommon::drawCursor ( GImage pImage,
int  x,
int  y,
int  w,
int  h 
)
void GClasses::GWidgetCommon::drawHorizCurvedInSurface ( GImage pImage,
int  x,
int  y,
int  w,
int  h,
unsigned int  col = 0xff0000ff 
)
void GClasses::GWidgetCommon::drawHorizCurvedOutSurface ( GImage pImage,
int  x,
int  y,
int  w,
int  h,
unsigned int  col = 0xff0000ff 
)
void GClasses::GWidgetCommon::drawLabelText ( GImage pImage,
int  x,
int  y,
int  w,
int  h,
const char *  text,
float  fontSize,
bool  alignLeft,
unsigned int  c 
)
void GClasses::GWidgetCommon::drawVertCurvedInSurface ( GImage pImage,
int  x,
int  y,
int  w,
int  h,
unsigned int  col = 0xff0000ff 
)
void GClasses::GWidgetCommon::drawVertCurvedOutSurface ( GImage pImage,
int  x,
int  y,
int  w,
int  h,
unsigned int  col = 0xff0000ff 
)

Member Data Documentation