]>
git.saurik.com Git - wxWidgets.git/blob - interface/dcclient.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxClientDC and 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 EVT_PAINT() event handler. This
15 should normally be constructed as a temporary stack object; don't store a
16 wxPaintDC object. If you have an EVT_PAINT() handler, you @e must create a
17 wxPaintDC object within it even if you don't actually use it.
19 Using wxPaintDC within your EVT_PAINT() handler is important because it
20 automatically sets the clipping area to the damaged area of the window.
21 Attempts to draw outside this area do not appear.
23 To draw on a window from outside your EVT_PAINT() handler, construct a
26 To draw on the whole window including decorations, construct a wxWindowDC
27 object (Windows only).
32 @see wxDC, wxClientDC, wxMemoryDC, 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 EVT_PAINT() handler. This should
51 normally be constructed as a temporary stack object; don't store a
54 To draw on a window from within an EVT_PAINT() handler, construct a
55 wxPaintDC object instead.
57 To draw on the whole window including decorations, construct a wxWindowDC
58 object (Windows only).
63 @see wxDC, wxMemoryDC, wxPaintDC, wxWindowDC, wxScreenDC
65 class wxClientDC
: public wxWindowDC
69 Constructor. Pass a pointer to the window on which you wish to paint.
71 wxClientDC(wxWindow
* window
);
80 A wxWindowDC must be constructed if an application wishes to paint on the
81 whole area of a window (client and decorations). This should normally be
82 constructed as a temporary stack object; don't store a wxWindowDC object.
84 To draw on a window from inside an EVT_PAINT() handler, construct a
85 wxPaintDC object instead.
87 To draw on the client area of a window from outside an EVT_PAINT() handler,
88 construct a wxClientDC object.
93 @see wxDC, wxMemoryDC, wxPaintDC, wxClientDC, wxScreenDC
95 class wxWindowDC
: public wxDC
99 Constructor. Pass a pointer to the window on which you wish to paint.
101 wxWindowDC(wxWindow
* window
);