.TH wxEraseEvent 3erl "wx 2.2.2.1" "wxWidgets team." "Erlang Module Definition" .SH NAME wxEraseEvent \- Functions for wxEraseEvent class .SH DESCRIPTION .LP An erase event is sent when a window\&'s background needs to be repainted\&. .LP On some platforms, such as GTK+, this event is simulated (simply generated just before the paint event) and may cause flicker\&. It is therefore recommended that you set the text background colour explicitly in order to prevent flicker\&. The default background colour under GTK+ is grey\&. .LP To intercept this event, use the EVT_ERASE_BACKGROUND macro in an event table definition\&. .LP You must use the device context returned by \fIgetDC/1\fR\& to draw on, don\&'t create a \fIwxPaintDC\fR\& in the event handler\&. .LP See: Overview events .LP This class is derived (and can use functions) from: \fIwxEvent\fR\& .LP wxWidgets docs: wxEraseEvent .SH "EVENTS" .LP Use \fIwxEvtHandler:connect/3\fR\& with \fIwxEraseEventType\fR\& to subscribe to events of this type\&. .SH DATA TYPES .nf \fBwxEraseEvent()\fR\& = wx:wx_object() .br .fi .nf \fBwxErase()\fR\& = .br #wxErase{type = wxEraseEvent:wxEraseEventType(), .br dc = wxDC:wxDC()} .br .fi .nf \fBwxEraseEventType()\fR\& = erase_background .br .fi .SH EXPORTS .LP .nf .B getDC(This) -> wxDC:wxDC() .br .fi .br .RS .LP Types: .RS 3 This = wxEraseEvent() .br .RE .RE .RS .LP Returns the device context associated with the erase event to draw on\&. .LP The returned pointer is never NULL\&. .RE