GClasses
GClasses::GWidgetCommon Class Reference

#include <GWidgets.h>

Public Member Functions

 GWidgetCommon ()
 
 ~GWidgetCommon ()
 
void drawButtonText (GImage *pImage, int x, int y, int w, int h, const char *text, bool pressed)
 
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. More...
 
void drawCursor (GImage *pImage, int x, int y, int w, int h)
 
void drawHorizCurvedInSurface (GImage *pImage, int x, int y, int w, int h, unsigned int col=0xff0000ff)
 
void drawHorizCurvedOutSurface (GImage *pImage, int x, int y, int w, int h, unsigned int col=0xff0000ff)
 
void drawLabelText (GImage *pImage, int x, int y, int w, int h, const char *text, float fontSize, bool alignLeft, unsigned int c)
 
void drawVertCurvedInSurface (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)
 

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

GImage GClasses::GWidgetCommon::m_bufferImage
protected