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

NAME

6       wxBufferedPaintDC - Functions for wxBufferedPaintDC class
7

DESCRIPTION

9       This  is  a  subclass  of  wxBufferedDC  which can be used inside of an
10       EVT_PAINT() event handler to achieve double-buffered drawing. Just  use
11       this  class  instead of wxPaintDC and make sure wxWindow:setBackground‐
12       Style/2 is called with wxBG_STYLE_PAINT somewhere in the class initial‐
13       ization  code, and that's all you have to do to (mostly) avoid flicker.
14       The only thing to watch out for is that if you are using this class to‐
15       gether  with  wxScrolled  (not  implemented in wx), you probably do not
16       want to call wxScrolledWindow:prepareDC/2 on it as it already does this
17       internally for the real underlying wxPaintDC.
18
19       See: wxDC, wxBufferedDC, wxAutoBufferedPaintDC (not implemented in wx),
20       wxPaintDC
21
22       This class is derived (and can use functions) from: wxBufferedDC wxMem‐
23       oryDC wxDC
24
25       wxWidgets docs: wxBufferedPaintDC
26

DATA TYPES

28       wxBufferedPaintDC() = wx:wx_object()
29

EXPORTS

31       new(Window) -> wxBufferedPaintDC()
32
33              Types:
34
35                 Window = wxWindow:wxWindow()
36
37       new(Window, Buffer) -> wxBufferedPaintDC()
38
39       new(Window, Buffer :: [Option]) -> wxBufferedPaintDC()
40
41              Types:
42
43                 Window = wxWindow:wxWindow()
44                 Option = {style, integer()}
45
46       new(Window, Buffer, Options :: [Option]) -> wxBufferedPaintDC()
47
48              Types:
49
50                 Window = wxWindow:wxWindow()
51                 Buffer = wxBitmap:wxBitmap()
52                 Option = {style, integer()}
53
54              As  with  wxBufferedDC,  you may either provide the bitmap to be
55              used for buffering or let this object create one internally  (in
56              the  latter  case,  the size of the client part of the window is
57              used).
58
59              Pass wxBUFFER_CLIENT_AREA for the style  parameter  to  indicate
60              that  just  the  client  area  of  the  window  is  buffered, or
61              wxBUFFER_VIRTUAL_AREA to indicate that the buffer bitmap  covers
62              the virtual area.
63
64       destroy(This :: wxBufferedPaintDC()) -> ok
65
66              Copies  everything  drawn on the DC so far to the window associ‐
67              ated with this object, using a wxPaintDC.
68
69
70
71wxWidgets team.                    wx 2.3.1               wxBufferedPaintDC(3)
Impressum