1wxPaintEvent(3)            Erlang Module Definition            wxPaintEvent(3)
2
3
4

NAME

6       wxPaintEvent - Functions for wxPaintEvent class
7

DESCRIPTION

9       A paint event is sent when a window's contents needs to be repainted.
10
11       The handler of this event must create a wxPaintDC object and use it for
12       painting the window contents. For example:
13
14       Notice that you must not create other kinds of wxDC (e.g. wxClientDC or
15       wxWindowDC)  in EVT_PAINT handlers and also don't create wxPaintDC out‐
16       side of this event handlers.
17
18       You can optimize painting by retrieving the rectangles that  have  been
19       damaged  and  only repainting these. The rectangles are in terms of the
20       client area, and are unscrolled, so you will need to do  some  calcula‐
21       tions  using  the  current  view  position  to obtain logical, scrolled
22       units. Here is an example of using  the  wxRegionIterator  (not  imple‐
23       mented in wx) class:
24
25       Remark:  Please  notice  that in general it is impossible to change the
26       drawing of a standard control (such as wxButton) and so  you  shouldn't
27       attempt  to  handle  paint  events for them as even if it might work on
28       some platforms, this is inherently not portable and won't  work  every‐
29       where.
30
31       See: Overview events
32
33       This class is derived (and can use functions) from: wxEvent
34
35       wxWidgets docs: wxPaintEvent
36

EVENTS

38       Use wxEvtHandler:connect/3 with wxPaintEventType to subscribe to events
39       of this type.
40

DATA TYPES

42       wxPaintEvent() = wx:wx_object()
43
44       wxPaint() = #wxPaint{type = wxPaintEvent:wxPaintEventType()}
45
46       wxPaintEventType() = paint
47
48
49
50wxWidgets team.                    wx 2.1.4                    wxPaintEvent(3)
Impressum