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

NAME

6       wxGraphicsContext - See external documentation: wxGraphicsContext.
7

DESCRIPTION

9       See external documentation: wxGraphicsContext.
10
11       This class is derived (and can use functions) from:
12       wxGraphicsObject
13

DATA TYPES

15         wxGraphicsContext():
16
17
18           An  object  reference,  The  representation  is internal and can be
19           changed without notice. It can't be used for comparsion  stored  on
20           disc or distributed for use on other nodes.
21

EXPORTS

23       create() -> wxGraphicsContext()
24
25              See external documentation.
26
27       create(Dc) -> wxGraphicsContext()
28
29              Types:
30
31                 Dc = wxWindowDC:wxWindowDC() | wxWindow:wxWindow()
32
33              See external documentation.
34
35       createPen(This, Pen) -> wxGraphicsPen:wxGraphicsPen()
36
37              Types:
38
39                 This = wxGraphicsContext()
40                 Pen = wxPen:wxPen()
41
42              See external documentation.
43
44       createBrush(This, Brush) -> wxGraphicsBrush:wxGraphicsBrush()
45
46              Types:
47
48                 This = wxGraphicsContext()
49                 Brush = wxBrush:wxBrush()
50
51              See external documentation.
52
53       createRadialGradientBrush(This, Xo, Yo, Xc, Yc, Radius, OColor, CColor)
54       -> wxGraphicsBrush:wxGraphicsBrush()
55
56              Types:
57
58                 This = wxGraphicsContext()
59                 Xo = number()
60                 Yo = number()
61                 Xc = number()
62                 Yc = number()
63                 Radius = number()
64                 OColor = wx:wx_colour()
65                 CColor = wx:wx_colour()
66
67              See external documentation.
68
69       createLinearGradientBrush(This, X1, Y1, X2, Y2, C1, C2) ->  wxGraphics‐
70       Brush:wxGraphicsBrush()
71
72              Types:
73
74                 This = wxGraphicsContext()
75                 X1 = number()
76                 Y1 = number()
77                 X2 = number()
78                 Y2 = number()
79                 C1 = wx:wx_colour()
80                 C2 = wx:wx_colour()
81
82              See external documentation.
83
84       createFont(This, Font) -> wxGraphicsFont:wxGraphicsFont()
85
86              Types:
87
88                 This = wxGraphicsContext()
89                 Font = wxFont:wxFont()
90
91              Equivalent to createFont(This, Font, []).
92
93       createFont(This, Font, Options::[Option]) -> wxGraphicsFont:wxGraphics‐
94       Font()
95
96              Types:
97
98                 This = wxGraphicsContext()
99                 Font = wxFont:wxFont()
100                 Option = {col, wx:wx_colour()}
101
102              See external documentation.
103
104       createMatrix(This) -> wxGraphicsMatrix:wxGraphicsMatrix()
105
106              Types:
107
108                 This = wxGraphicsContext()
109
110              Equivalent to createMatrix(This, []).
111
112       createMatrix(This, Options::[Option]) -> wxGraphicsMatrix:wxGraphicsMa‐
113       trix()
114
115              Types:
116
117                 This = wxGraphicsContext()
118                 Option  = {a, number()} | {b, number()} | {c, number()} | {d,
119                 number()} | {tx, number()} | {ty, number()}
120
121              See external documentation.
122
123       createPath(This) -> wxGraphicsPath:wxGraphicsPath()
124
125              Types:
126
127                 This = wxGraphicsContext()
128
129              See external documentation.
130
131       clip(This, Region) -> ok
132
133              Types:
134
135                 This = wxGraphicsContext()
136                 Region = wxRegion:wxRegion()
137
138              See external documentation.
139
140       clip(This, X, Y, W, H) -> ok
141
142              Types:
143
144                 This = wxGraphicsContext()
145                 X = number()
146                 Y = number()
147                 W = number()
148                 H = number()
149
150              See external documentation.
151
152       resetClip(This) -> ok
153
154              Types:
155
156                 This = wxGraphicsContext()
157
158              See external documentation.
159
160       drawBitmap(This, Bmp, X, Y, W, H) -> ok
161
162              Types:
163
164                 This = wxGraphicsContext()
165                 Bmp = wxBitmap:wxBitmap()
166                 X = number()
167                 Y = number()
168                 W = number()
169                 H = number()
170
171              See external documentation.
172
173       drawEllipse(This, X, Y, W, H) -> ok
174
175              Types:
176
177                 This = wxGraphicsContext()
178                 X = number()
179                 Y = number()
180                 W = number()
181                 H = number()
182
183              See external documentation.
184
185       drawIcon(This, Icon, X, Y, W, H) -> ok
186
187              Types:
188
189                 This = wxGraphicsContext()
190                 Icon = wxIcon:wxIcon()
191                 X = number()
192                 Y = number()
193                 W = number()
194                 H = number()
195
196              See external documentation.
197
198       drawLines(This, Points) -> ok
199
200              Types:
201
202                 This = wxGraphicsContext()
203                 Points = [{X::float(), Y::float()}]
204
205              Equivalent to drawLines(This, Points, []).
206
207       drawLines(This, Points, Options::[Option]) -> ok
208
209              Types:
210
211                 This = wxGraphicsContext()
212                 Points = [{X::float(), Y::float()}]
213                 Option = {fillStyle, wx:wx_enum()}
214
215              See external documentation.
216              FillStyle = integer
217
218       drawPath(This, Path) -> ok
219
220              Types:
221
222                 This = wxGraphicsContext()
223                 Path = wxGraphicsPath:wxGraphicsPath()
224
225              Equivalent to drawPath(This, Path, []).
226
227       drawPath(This, Path, Options::[Option]) -> ok
228
229              Types:
230
231                 This = wxGraphicsContext()
232                 Path = wxGraphicsPath:wxGraphicsPath()
233                 Option = {fillStyle, wx:wx_enum()}
234
235              See external documentation.
236              FillStyle = integer
237
238       drawRectangle(This, X, Y, W, H) -> ok
239
240              Types:
241
242                 This = wxGraphicsContext()
243                 X = number()
244                 Y = number()
245                 W = number()
246                 H = number()
247
248              See external documentation.
249
250       drawRoundedRectangle(This, X, Y, W, H, Radius) -> ok
251
252              Types:
253
254                 This = wxGraphicsContext()
255                 X = number()
256                 Y = number()
257                 W = number()
258                 H = number()
259                 Radius = number()
260
261              See external documentation.
262
263       drawText(This, Str, X, Y) -> ok
264
265              Types:
266
267                 This = wxGraphicsContext()
268                 Str = unicode:chardata()
269                 X = number()
270                 Y = number()
271
272              See external documentation.
273
274       drawText(This, Str, X, Y, Angle) -> ok
275       drawText(This, Str, X, Y, BackgroundBrush) -> ok
276
277              Types:
278
279                 This = wxGraphicsContext()
280                 Str = unicode:chardata()
281                 X = number()
282                 Y = number()
283                 Angle = number()
284                 This = wxGraphicsContext()
285                 Str = unicode:chardata()
286                 X = number()
287                 Y = number()
288                 BackgroundBrush = wxGraphicsBrush:wxGraphicsBrush()
289
290              See external documentation.
291              Also:
292              drawText(This, Str, X, Y, BackgroundBrush) -> 'ok' when
293              This::wxGraphicsContext(), Str::unicode:chardata(), X::number(),
294              Y::number(), BackgroundBrush::wxGraphicsBrush:wxGraphicsBrush().
295
296
297       drawText(This, Str, X, Y, Angle, BackgroundBrush) -> ok
298
299              Types:
300
301                 This = wxGraphicsContext()
302                 Str = unicode:chardata()
303                 X = number()
304                 Y = number()
305                 Angle = number()
306                 BackgroundBrush = wxGraphicsBrush:wxGraphicsBrush()
307
308              See external documentation.
309
310       fillPath(This, Path) -> ok
311
312              Types:
313
314                 This = wxGraphicsContext()
315                 Path = wxGraphicsPath:wxGraphicsPath()
316
317              Equivalent to fillPath(This, Path, []).
318
319       fillPath(This, Path, Options::[Option]) -> ok
320
321              Types:
322
323                 This = wxGraphicsContext()
324                 Path = wxGraphicsPath:wxGraphicsPath()
325                 Option = {fillStyle, wx:wx_enum()}
326
327              See external documentation.
328              FillStyle = integer
329
330       strokePath(This, Path) -> ok
331
332              Types:
333
334                 This = wxGraphicsContext()
335                 Path = wxGraphicsPath:wxGraphicsPath()
336
337              See external documentation.
338
339       getPartialTextExtents(This, Text) -> [number()]
340
341              Types:
342
343                 This = wxGraphicsContext()
344                 Text = unicode:chardata()
345
346              See external documentation.
347
348       getTextExtent(This, Text) -> Result
349
350              Types:
351
352                 Result  =  {Width::number(),  Height::number(), Descent::num‐
353                 ber(), ExternalLeading::number()}
354                 This = wxGraphicsContext()
355                 Text = unicode:chardata()
356
357              See external documentation.
358
359       rotate(This, Angle) -> ok
360
361              Types:
362
363                 This = wxGraphicsContext()
364                 Angle = number()
365
366              See external documentation.
367
368       scale(This, XScale, YScale) -> ok
369
370              Types:
371
372                 This = wxGraphicsContext()
373                 XScale = number()
374                 YScale = number()
375
376              See external documentation.
377
378       translate(This, Dx, Dy) -> ok
379
380              Types:
381
382                 This = wxGraphicsContext()
383                 Dx = number()
384                 Dy = number()
385
386              See external documentation.
387
388       getTransform(This) -> wxGraphicsMatrix:wxGraphicsMatrix()
389
390              Types:
391
392                 This = wxGraphicsContext()
393
394              See external documentation.
395
396       setTransform(This, Matrix) -> ok
397
398              Types:
399
400                 This = wxGraphicsContext()
401                 Matrix = wxGraphicsMatrix:wxGraphicsMatrix()
402
403              See external documentation.
404
405       concatTransform(This, Matrix) -> ok
406
407              Types:
408
409                 This = wxGraphicsContext()
410                 Matrix = wxGraphicsMatrix:wxGraphicsMatrix()
411
412              See external documentation.
413
414       setBrush(This, Brush) -> ok
415
416              Types:
417
418                 This = wxGraphicsContext()
419                 Brush = wxGraphicsBrush:wxGraphicsBrush() | wxBrush:wxBrush()
420
421              See external documentation.
422
423       setFont(This, Font) -> ok
424
425              Types:
426
427                 This = wxGraphicsContext()
428                 Font = wxGraphicsFont:wxGraphicsFont()
429
430              See external documentation.
431
432       setFont(This, Font, Colour) -> ok
433
434              Types:
435
436                 This = wxGraphicsContext()
437                 Font = wxFont:wxFont()
438                 Colour = wx:wx_colour()
439
440              See external documentation.
441
442       setPen(This, Pen) -> ok
443
444              Types:
445
446                 This = wxGraphicsContext()
447                 Pen = wxPen:wxPen() | wxGraphicsPen:wxGraphicsPen()
448
449              See external documentation.
450
451       strokeLine(This, X1, Y1, X2, Y2) -> ok
452
453              Types:
454
455                 This = wxGraphicsContext()
456                 X1 = number()
457                 Y1 = number()
458                 X2 = number()
459                 Y2 = number()
460
461              See external documentation.
462
463       strokeLines(This, Points) -> ok
464
465              Types:
466
467                 This = wxGraphicsContext()
468                 Points = [{X::float(), Y::float()}]
469
470              See external documentation.
471
472       destroy(This::wxGraphicsContext()) -> ok
473
474              Destroys this object, do not use object again
475

AUTHORS

477       <>
478
479
480
481                                  wx 1.9.3.1              wxGraphicsContext(3)
Impressum