]> git.saurik.com Git - wxWidgets.git/blame - interface/wx/dcclient.h
Add wxFileName::SetPermissions().
[wxWidgets.git] / interface / wx / dcclient.h
CommitLineData
23324ae1
FM
1/////////////////////////////////////////////////////////////////////////////
2// Name: dcclient.h
3a7fb603 3// Purpose: interface of wxClientDC and wxPaintDC
23324ae1 4// Author: wxWidgets team
526954c5 5// Licence: wxWindows licence
23324ae1
FM
6/////////////////////////////////////////////////////////////////////////////
7
8/**
9 @class wxPaintDC
7c913512 10
23324ae1 11 A wxPaintDC must be constructed if an application wishes to paint on the
3a7fb603
BP
12 client area of a window from within an EVT_PAINT() event handler. This
13 should normally be constructed as a temporary stack object; don't store a
14 wxPaintDC object. If you have an EVT_PAINT() handler, you @e must create a
15 wxPaintDC object within it even if you don't actually use it.
7c913512 16
3a7fb603
BP
17 Using wxPaintDC within your EVT_PAINT() handler is important because it
18 automatically sets the clipping area to the damaged area of the window.
19 Attempts to draw outside this area do not appear.
7c913512 20
3a7fb603
BP
21 To draw on a window from outside your EVT_PAINT() handler, construct a
22 wxClientDC object.
7c913512 23
3a7fb603
BP
24 To draw on the whole window including decorations, construct a wxWindowDC
25 object (Windows only).
7c913512 26
edc51344
VZ
27 A wxPaintDC object is initialized to use the same font and colours as the
28 window it is associated with.
29
23324ae1
FM
30 @library{wxcore}
31 @category{dc}
7c913512 32
3a7fb603 33 @see wxDC, wxClientDC, wxMemoryDC, wxWindowDC, wxScreenDC
23324ae1 34*/
3d0905ab 35class wxPaintDC : public wxClientDC
23324ae1
FM
36{
37public:
38 /**
39 Constructor. Pass a pointer to the window on which you wish to paint.
40 */
41 wxPaintDC(wxWindow* window);
42};
43
44
e54c96f1 45
23324ae1
FM
46/**
47 @class wxClientDC
7c913512 48
23324ae1 49 A wxClientDC must be constructed if an application wishes to paint on the
3a7fb603
BP
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
52 wxClientDC object.
7c913512 53
3a7fb603
BP
54 To draw on a window from within an EVT_PAINT() handler, construct a
55 wxPaintDC object instead.
7c913512 56
3a7fb603
BP
57 To draw on the whole window including decorations, construct a wxWindowDC
58 object (Windows only).
7c913512 59
edc51344
VZ
60 A wxClientDC object is initialized to use the same font and colours as the
61 window it is associated with.
62
23324ae1
FM
63 @library{wxcore}
64 @category{dc}
7c913512 65
e54c96f1 66 @see wxDC, wxMemoryDC, wxPaintDC, wxWindowDC, wxScreenDC
23324ae1
FM
67*/
68class wxClientDC : public wxWindowDC
69{
70public:
71 /**
72 Constructor. Pass a pointer to the window on which you wish to paint.
73 */
74 wxClientDC(wxWindow* window);
75};
76
77
e54c96f1 78
23324ae1
FM
79/**
80 @class wxWindowDC
7c913512 81
23324ae1 82 A wxWindowDC must be constructed if an application wishes to paint on the
3a7fb603
BP
83 whole area of a window (client and decorations). This should normally be
84 constructed as a temporary stack object; don't store a wxWindowDC object.
7c913512 85
3a7fb603
BP
86 To draw on a window from inside an EVT_PAINT() handler, construct a
87 wxPaintDC object instead.
7c913512 88
3a7fb603
BP
89 To draw on the client area of a window from outside an EVT_PAINT() handler,
90 construct a wxClientDC object.
7c913512 91
edc51344
VZ
92 A wxWindowDC object is initialized to use the same font and colours as the
93 window it is associated with.
94
23324ae1
FM
95 @library{wxcore}
96 @category{dc}
7c913512 97
e54c96f1 98 @see wxDC, wxMemoryDC, wxPaintDC, wxClientDC, wxScreenDC
23324ae1
FM
99*/
100class wxWindowDC : public wxDC
101{
102public:
103 /**
104 Constructor. Pass a pointer to the window on which you wish to paint.
105 */
106 wxWindowDC(wxWindow* window);
107};
e54c96f1 108