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

NAME

6       wxGCDC - Functions for wxGCDC class
7

DESCRIPTION

9       wxGCDC is a device context that draws on a wxGraphicsContext.
10
11       wxGCDC  does its best to implement wxDC API, but the following features
12       are not (fully) implemented because wxGraphicsContext  doesn't  support
13       them:
14
15       See: wxDC, wxGraphicsContext
16
17       This class is derived (and can use functions) from: wxDC
18
19       wxWidgets docs: wxGCDC
20

DATA TYPES

22       wxGCDC() = wx:wx_object()
23

EXPORTS

25       new() -> wxGCDC()
26
27       new(WindowDC) -> wxGCDC()
28
29              Types:
30
31                 WindowDC =
32                     wxWindowDC:wxWindowDC() |
33                     wxMemoryDC:wxMemoryDC() |
34                     wxGraphicsContext:wxGraphicsContext()
35
36              Constructs a wxGCDC from a wxWindowDC.
37
38       destroy(This :: wxGCDC()) -> ok
39
40       getGraphicsContext(This) -> wxGraphicsContext:wxGraphicsContext()
41
42              Types:
43
44                 This = wxGCDC()
45
46              Retrieves associated wxGraphicsContext.
47
48       setGraphicsContext(This, Context) -> ok
49
50              Types:
51
52                 This = wxGCDC()
53                 Context = wxGraphicsContext:wxGraphicsContext()
54
55              Set the graphics context to be used for this wxGCDC.
56
57              Note that this object takes ownership of context and will delete
58              it when it is destroyed or when setGraphicsContext/2  is  called
59              again.
60
61              Also,  unlike  the  constructor  taking  wxGraphicsContext, this
62              method will reapply the current font, pen  and  brush,  so  that
63              this  object continues to use them, if they had been changed be‐
64              fore (which is never the case when constructing wxGCDC  directly
65              from wxGraphicsContext).
66
67
68
69wxWidgets team.                    wx 2.3.1                          wxGCDC(3)
Impressum