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

transparent_painter Class Reference

Makes a color of another another painter transparent. More...

Inheritance diagram for transparent_painter:

painter_base painter_holder List of all members.

Public Types

typedef COLORREF param0
typedef bg_wnd::general_exception<
painter_holder, 0 > 
no_painter
typedef bg_wnd::general_exception<
painter_holder, 1 > 
invalid_painter_cast

Public Member Functions

 transparent_painter (COLORREF crTransparent)
transparent_painterclone () const
void draw (HDC hDC, int cx, int cy)
void transparent_color (COLORREF crTransparent)
COLORREF transparent_color () const
virtual bool is_opaque (int cx, int cy) const
void release_painter ()
void set_painter (const painter_base &painter)
template<class Painter>
void set_painter ()
template<class Painter>
void set_painter (typename Painter::param0 param)
template<class Painter>
void set_painter (typename Painter::param0 param0, typename Painter::param1 param1)
void swap (painter_holder &holder)
painter_baseget_painter () const
template<class Painter>
Painter & get_painter () const
bool painter_available () const

Detailed Description

Makes a color of another another painter transparent.

See also:
Description of transparent_painter

background_wnd


Member Function Documentation

Painter& get_painter  )  const [inline, inherited]
 

Returns the painter.

painter_base & get_painter  )  const [inherited]
 

Returns the painter.

bool painter_available  )  const [inherited]
 

Returns true if a painter is stored by the painter_holder.

void release_painter  )  [inherited]
 

Frees the painter stored by this holder.

void set_painter typename Painter::param0  param0,
typename Painter::param1  param1
[inline, inherited]
 

Sets the painter holded to pPainter. The old one is released.

void set_painter typename Painter::param0  param  )  [inline, inherited]
 

Creates a new painter of type Painter (param is passed to the c'tor) and stores this painter. The old one is released.

void set_painter  )  [inline, inherited]
 

Sets the painter holded to pPainter. The old one will be released.

void set_painter const painter_base painter  )  [inherited]
 

Copies painter and sets the stored painter to this copy.

void swap painter_holder holder  )  [inherited]
 

Swaps this painter_holder with holder.

COLORREF transparent_color  )  const
 

Returns the transparent color.

void transparent_color COLORREF  crTransparent  ) 
 

Sets the transparent color.




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