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

# gradient_painter Class Reference

Painter for background_wnd. Draws a gradient. More...

Inheritance diagram for gradient_painter:

List of all members.

## Public Types
typedef std::pair< COLORREF, COLORREF > | GradientColors
typedef const GradientColors & | param0
typedef unsigned | param1
## Public Member Functions
| gradient_painter (const GradientColors &colors, unsigned angle=0)
gradient_painter * | clone () const
void | draw (HDC hDC, int cx, int cy)
bool | is_opaque (int cx, int cy) const
void | gradient_colors (const GradientColors &colors)
GradientColors | gradient_colors () const
void | angle (unsigned angle)
unsigned | angle () const
## Static Public Member Functions
GradientColors | make_gradient_colors (COLORREF crStart, COLORREF crEnd)

## Detailed Description

Painter for background_wnd. Draws a gradient.

See also:
  Description of gradient_painter

  background_wnd

## Member Function Documentation

unsigned angle | ( |  | ) | const

| Returns the angle of the gradient.

void angle | ( | unsigned | angle | ) |

| Sets the angle of the gradient.

gradient_painter::GradientColors gradient_colors | ( |  | ) | const

| Returns start- and end-color of the gradient.

void gradient_colors | ( | const GradientColors & | colors | ) |

| Sets start- and end-color of the gradient.

gradient_painter::GradientColors make_gradient_colors | ( | COLORREF | crStart,
|  | COLORREF | crEnd
| ) | `[static]`

| creates a gradient info which can be passed to the c'tor

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