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

NAME

6       wxClientDC - Functions for wxClientDC class
7

DESCRIPTION

9       wxClientDC is primarily useful for obtaining information about the win‐
10       dow from outside EVT_PAINT() handler.
11
12       Typical use of this class is to obtain the extent of some  text  string
13       in order to allocate enough size for a window, e.g.
14
15       Note:  While wxClientDC may also be used for drawing on the client area
16       of a window from outside an EVT_PAINT() handler  in  some  ports,  this
17       does not work on all platforms (neither wxOSX nor wxGTK with GTK 3 Way‐
18       land backend support this, so drawing using wxClientDC  simply  doesn't
19       have  any effect there) and the only portable way of drawing is via wx‐
20       PaintDC. To redraw  a  small  part  of  the  window,  use  wxWindow:re‐
21       freshRect/3  to  invalidate  just  this  part and check wxWindow:getUp‐
22       dateRegion/1 in the paint event handler to redraw this part only.
23
24       wxClientDC objects should normally be constructed  as  temporary  stack
25       objects, i.e. don't store a wxClientDC object.
26
27       A  wxClientDC object is initialized to use the same font and colours as
28       the window it is associated with.
29
30       See: wxDC, wxMemoryDC, wxPaintDC, wxWindowDC, wxScreenDC
31
32       This class is derived (and can use functions) from: wxWindowDC wxDC
33
34       wxWidgets docs: wxClientDC
35

DATA TYPES

37       wxClientDC() = wx:wx_object()
38

EXPORTS

40       new(Window) -> wxClientDC()
41
42              Types:
43
44                 Window = wxWindow:wxWindow()
45
46              Constructor.
47
48              Pass a pointer to the window on which you wish to paint.
49
50       destroy(This :: wxClientDC()) -> ok
51
52              Destroys the object.
53
54
55
56wxWidgets team.                    wx 2.2.2                      wxClientDC(3)
Impressum