Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

static void ShadeRect ( int  type,
float  x,
float  y,
float  w,
float  h 
) [static]

Definition at line 35 of file CxCheckBoxDrum.h.

00036 {
00037         float   x1 = x;
00038         float   y1 = y;
00039         float   x2 = x1 + w;
00040         float   y2 = y1 + h;
00041         ULONG   Col1, Col2;
00042 
00043         Col1 = type==BEV_SUNKEN ? oglDARKGREY : oglWHITE;
00044         Col2 = type==BEV_SUNKEN ?  oglWHITE : oglDARKGREY;
00045 
00046         if( type == BEV_LINE ) Col1 = Col2;
00047 
00048         SetSolidLineColor( Col1 );
00049         DrawLine( x1, y1, x1, y2 );
00050         DrawLine( x1, y2, x2, y2);
00051 
00052         SetSolidLineColor( Col2 );
00053         DrawLine( x1, y1, x2, y1 );
00054         DrawLine( x2, y1, x2, y2 );
00055 }


Generated on Fri Mar 19 10:21:21 2010 for ImpalaSrc by  doxygen 1.5.1