1wxPaintDC(3) Erlang Module Definition wxPaintDC(3)
2
3
4
6 wxPaintDC - Functions for wxPaintDC class
7
9 A wxPaintDC must be constructed if an application wishes to paint on
10 the client area of a window from within an EVT_PAINT() event handler.
11 This should normally be constructed as a temporary stack object; don't
12 store a wxPaintDC object. If you have an EVT_PAINT() handler, you must
13 create a wxPaintDC object within it even if you don't actually use it.
14
15 Using wxPaintDC within your EVT_PAINT() handler is important because it
16 automatically sets the clipping area to the damaged area of the window.
17 Attempts to draw outside this area do not appear.
18
19 A wxPaintDC object is initialized to use the same font and colours as
20 the window it is associated with.
21
22 See: wxDC, wxClientDC, wxMemoryDC, wxWindowDC, wxScreenDC
23
24 This class is derived (and can use functions) from: wxWindowDC wxDC
25
26 wxWidgets docs: wxPaintDC
27
29 wxPaintDC() = wx:wx_object()
30
32 new(Window) -> wxPaintDC()
33
34 Types:
35
36 Window = wxWindow:wxWindow()
37
38 Constructor.
39
40 Pass a pointer to the window on which you wish to paint.
41
42 destroy(This :: wxPaintDC()) -> ok
43
44 Destroys the object.
45
46
47
48wxWidgets team. wx 2.1.4 wxPaintDC(3)