1wxGraphicsMatrix(3) Erlang Module Definition wxGraphicsMatrix(3)
2
3
4
6 wxGraphicsMatrix - Functions for wxGraphicsMatrix class
7
9 A wxGraphicsMatrix is a native representation of an affine matrix. The
10 contents are specific and private to the respective renderer. Instances
11 are ref counted and can therefore be assigned as usual. The only way to
12 get a valid instance is via wxGraphicsContext:createMatrix/2 or wx‐
13 GraphicsRenderer:createMatrix/2.
14
15 This class is derived (and can use functions) from: wxGraphicsObject
16
17 wxWidgets docs: wxGraphicsMatrix
18
20 wxGraphicsMatrix() = wx:wx_object()
21
23 concat(This, T) -> ok
24
25 Types:
26
27 This = T = wxGraphicsMatrix()
28
29 Concatenates the matrix passed with the current matrix.
30
31 The effect of the resulting transformation is to first apply the
32 transformation in t to the coordinates and then apply the trans‐
33 formation in the current matrix to the coordinates.
34
35 get(This) -> Result
36
37 Types:
38
39 Result =
40 {A :: number(),
41 B :: number(),
42 C :: number(),
43 D :: number(),
44 Tx :: number(),
45 Ty :: number()}
46 This = wxGraphicsMatrix()
47
48 Returns the component values of the matrix via the argument
49 pointers.
50
51 invert(This) -> ok
52
53 Types:
54
55 This = wxGraphicsMatrix()
56
57 Inverts the matrix.
58
59 isEqual(This, T) -> boolean()
60
61 Types:
62
63 This = T = wxGraphicsMatrix()
64
65 Returns true if the elements of the transformation matrix are
66 equal.
67
68 isIdentity(This) -> boolean()
69
70 Types:
71
72 This = wxGraphicsMatrix()
73
74 Return true if this is the identity matrix.
75
76 rotate(This, Angle) -> ok
77
78 Types:
79
80 This = wxGraphicsMatrix()
81 Angle = number()
82
83 Rotates this matrix clockwise (in radians).
84
85 scale(This, XScale, YScale) -> ok
86
87 Types:
88
89 This = wxGraphicsMatrix()
90 XScale = YScale = number()
91
92 Scales this matrix.
93
94 translate(This, Dx, Dy) -> ok
95
96 Types:
97
98 This = wxGraphicsMatrix()
99 Dx = Dy = number()
100
101 Translates this matrix.
102
103 set(This) -> ok
104
105 Types:
106
107 This = wxGraphicsMatrix()
108
109 set(This, Options :: [Option]) -> ok
110
111 Types:
112
113 This = wxGraphicsMatrix()
114 Option =
115 {a, number()} |
116 {b, number()} |
117 {c, number()} |
118 {d, number()} |
119 {tx, number()} |
120 {ty, number()}
121
122 Sets the matrix to the respective values (default values are the
123 identity matrix).
124
125 transformPoint(This) -> {X :: number(), Y :: number()}
126
127 Types:
128
129 This = wxGraphicsMatrix()
130
131 Applies this matrix to a point.
132
133 transformDistance(This) -> {Dx :: number(), Dy :: number()}
134
135 Types:
136
137 This = wxGraphicsMatrix()
138
139 Applies this matrix to a distance (ie.
140
141 performs all transforms except translations).
142
143
144
145wxWidgets team. wx 2.1.4 wxGraphicsMatrix(3)