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

stretch_painter Class Reference

Stretches another painter. More...

Inheritance diagram for stretch_painter:

painter_base painter_holder List of all members.

Public Types

typedef const rectangle & param0
typedef COLORREF param1
typedef bg_wnd::general_exception<
painter_holder, 0 > 
no_painter
typedef bg_wnd::general_exception<
painter_holder, 1 > 
invalid_painter_cast

Public Member Functions

 stretch_painter (const rectangle &rc_stretch, COLORREF cr_not_used=RGB(255, 0, 255))
stretch_painterclone () const
void draw (HDC hDC, int cx, int cy)
void stretched_rect (const rectangle &rc_stretch)
rectangle stretched_rect () 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

Stretches another painter.

See also:
Description of stretch_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.

rectangle stretched_rect  )  const
 

Returns the stretched drawing rect.

void stretched_rect const rectangle &  rc_stretch  ) 
 

Sets the stretched drawing rect.

void swap painter_holder holder  )  [inherited]
 

Swaps this painter_holder with holder.




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