1wxEraseEvent(3) Erlang Module Definition wxEraseEvent(3)
2
3
4
6 wxEraseEvent - Functions for wxEraseEvent class
7
9 An erase event is sent when a window's background needs to be re‐
10 painted.
11
12 On some platforms, such as GTK+, this event is simulated (simply gener‐
13 ated just before the paint event) and may cause flicker. It is there‐
14 fore recommended that you set the text background colour explicitly in
15 order to prevent flicker. The default background colour under GTK+ is
16 grey.
17
18 To intercept this event, use the EVT_ERASE_BACKGROUND macro in an event
19 table definition.
20
21 You must use the device context returned by getDC/1 to draw on, don't
22 create a wxPaintDC in the event handler.
23
24 See: Overview events
25
26 This class is derived (and can use functions) from: wxEvent
27
28 wxWidgets docs: wxEraseEvent
29
31 Use wxEvtHandler:connect/3 with wxEraseEventType to subscribe to events
32 of this type.
33
35 wxEraseEvent() = wx:wx_object()
36
37 wxErase() =
38 #wxErase{type = wxEraseEvent:wxEraseEventType(),
39 dc = wxDC:wxDC()}
40
41 wxEraseEventType() = erase_background
42
44 getDC(This) -> wxDC:wxDC()
45
46 Types:
47
48 This = wxEraseEvent()
49
50 Returns the device context associated with the erase event to
51 draw on.
52
53 The returned pointer is never NULL.
54
55
56
57wxWidgets team. wx 2.2.2 wxEraseEvent(3)