]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/dcclient.h
17f39ca1a84d4cfea2285b464e0e49c7dea15064
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).
29 A wxPaintDC object is initialized to use the same font and colours as the
30 window it is associated with.
35 @see wxDC, wxClientDC, wxMemoryDC, wxWindowDC, wxScreenDC
37 class wxPaintDC
: public wxWindowDC
41 Constructor. Pass a pointer to the window on which you wish to paint.
43 wxPaintDC(wxWindow
* window
);
52 A wxClientDC must be constructed if an application wishes to paint on the
53 client area of a window from outside an EVT_PAINT() handler. This should
54 normally be constructed as a temporary stack object; don't store a
57 To draw on a window from within an EVT_PAINT() handler, construct a
58 wxPaintDC object instead.
60 To draw on the whole window including decorations, construct a wxWindowDC
61 object (Windows only).
63 A wxClientDC object is initialized to use the same font and colours as the
64 window it is associated with.
69 @see wxDC, wxMemoryDC, wxPaintDC, wxWindowDC, wxScreenDC
71 class wxClientDC
: public wxWindowDC
75 Constructor. Pass a pointer to the window on which you wish to paint.
77 wxClientDC(wxWindow
* window
);
86 A wxWindowDC must be constructed if an application wishes to paint on the
87 whole area of a window (client and decorations). This should normally be
88 constructed as a temporary stack object; don't store a wxWindowDC object.
90 To draw on a window from inside an EVT_PAINT() handler, construct a
91 wxPaintDC object instead.
93 To draw on the client area of a window from outside an EVT_PAINT() handler,
94 construct a wxClientDC object.
96 A wxWindowDC object is initialized to use the same font and colours as the
97 window it is associated with.
102 @see wxDC, wxMemoryDC, wxPaintDC, wxClientDC, wxScreenDC
104 class wxWindowDC
: public wxDC
108 Constructor. Pass a pointer to the window on which you wish to paint.
110 wxWindowDC(wxWindow
* window
);