]>
git.saurik.com Git - wxWidgets.git/blob - interface/dcclient.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxPaintDC
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
13 A wxPaintDC must be constructed if an application wishes to paint on the
14 client area of a window from within an @b OnPaint event.
15 This should normally be constructed as a temporary stack object; don't store
16 a wxPaintDC object. If you have an OnPaint handler, you @e must create a
18 object within it even if you don't actually use it.
20 Using wxPaintDC within OnPaint is important because it automatically
21 sets the clipping area to the damaged area of the window. Attempts to draw
22 outside this area do not appear.
24 To draw on a window from outside @b OnPaint, construct a wxClientDC object.
26 To draw on the whole window including decorations, construct a wxWindowDC object
32 @see wxDC, wxMemoryDC, wxPaintDC, wxWindowDC, wxScreenDC
34 class wxPaintDC
: public wxWindowDC
38 Constructor. Pass a pointer to the window on which you wish to paint.
40 wxPaintDC(wxWindow
* window
);
49 A wxClientDC must be constructed if an application wishes to paint on the
50 client area of a window from outside an @b OnPaint event.
51 This should normally be constructed as a temporary stack object; don't store
54 To draw on a window from within @b OnPaint, construct a wxPaintDC object.
56 To draw on the whole window including decorations, construct a wxWindowDC object
62 @see wxDC, wxMemoryDC, wxPaintDC, wxWindowDC, wxScreenDC
64 class wxClientDC
: public wxWindowDC
68 Constructor. Pass a pointer to the window on which you wish to paint.
70 wxClientDC(wxWindow
* window
);
79 A wxWindowDC must be constructed if an application wishes to paint on the
80 whole area of a window (client and decorations).
81 This should normally be constructed as a temporary stack object; don't store
84 To draw on a window from inside @b OnPaint, construct a wxPaintDC object.
86 To draw on the client area of a window from outside @b OnPaint, construct a
89 To draw on the whole window including decorations, construct a wxWindowDC object
95 @see wxDC, wxMemoryDC, wxPaintDC, wxClientDC, wxScreenDC
97 class wxWindowDC
: public wxDC
101 Constructor. Pass a pointer to the window on which you wish to paint.
103 wxWindowDC(wxWindow
* window
);