Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

color_painter Class Reference

Painter for background_wnd which draws a rectangle. More...

Inheritance diagram for color_painter:

painter_base List of all members.

Public Types

typedef LOGBRUSH param0
typedef LOGPEN param1

Public Member Functions

 color_painter (LOGBRUSH brush)
 color_painter (LOGBRUSH brush, LOGPEN pen)
color_painterclone () const
void draw (HDC hDC, int cx, int cy)
bool is_opaque (int cx, int cy) const
void brush (LOGBRUSH brush)
LOGBRUSH brush () const
void pen (LOGPEN pen)
LOGPEN pen () const

Static Public Member Functions

LOGBRUSH make_brush (COLORREF cr=GetSysColor(COLOR_WINDOW), unsigned style=BS_SOLID, long hatch=0)
LOGPEN make_pen (COLORREF cr=GetSysColor(COLOR_WINDOWTEXT), unsigned style=PS_SOLID, unsigned width=1)

Detailed Description

Painter for background_wnd which draws a rectangle.

See also:
Description of color_painter

background_wnd


Member Function Documentation

LOGBRUSH brush  )  const
 

Returns the brush used to fill the rectangle.

void brush LOGBRUSH  brush  ) 
 

Sets the brush used to fill the rectangle.

LOGBRUSH make_brush COLORREF  cr = GetSysColor(COLOR_WINDOW),
unsigned  style = BS_SOLID,
long  hatch = 0
[static]
 

Creates a LOGBRUSH.

LOGPEN make_pen COLORREF  cr = GetSysColor(COLOR_WINDOWTEXT),
unsigned  style = PS_SOLID,
unsigned  width = 1
[static]
 

Creates a LOGPEN.

LOGPEN pen  )  const
 

Returns the pen used to draw the frame of the rectangle.

void pen LOGPEN  pen  ) 
 

Sets the pen used to draw the frame of the rectangle.




by Steven Weiss. You can contact me at steven11@gmx.de.