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
276              Types:
277
278                 This = wxGraphicsContext()
279                 Str = unicode:chardata()
280                 X = number()
281                 Y = number()
282                 Angle = number()
283
284              See external documentation.
285              Also:
286              drawText(This, Str, X, Y, BackgroundBrush) -> 'ok' when
287              This::wxGraphicsContext(), Str::unicode:chardata(), X::number(),
288              Y::number(), BackgroundBrush::wxGraphicsBrush:wxGraphicsBrush().
289
290
291       drawText(This, Str, X, Y, Angle, BackgroundBrush) -> ok
292
293              Types:
294
295                 This = wxGraphicsContext()
296                 Str = unicode:chardata()
297                 X = number()
298                 Y = number()
299                 Angle = number()
300                 BackgroundBrush = wxGraphicsBrush:wxGraphicsBrush()
301
302              See external documentation.
303
304       fillPath(This, Path) -> ok
305
306              Types:
307
308                 This = wxGraphicsContext()
309                 Path = wxGraphicsPath:wxGraphicsPath()
310
311              Equivalent to fillPath(This, Path, []).
312
313       fillPath(This, Path, Options::[Option]) -> ok
314
315              Types:
316
317                 This = wxGraphicsContext()
318                 Path = wxGraphicsPath:wxGraphicsPath()
319                 Option = {fillStyle, wx:wx_enum()}
320
321              See external documentation.
322              FillStyle = integer
323
324       strokePath(This, Path) -> ok
325
326              Types:
327
328                 This = wxGraphicsContext()
329                 Path = wxGraphicsPath:wxGraphicsPath()
330
331              See external documentation.
332
333       getPartialTextExtents(This, Text) -> [number()]
334
335              Types:
336
337                 This = wxGraphicsContext()
338                 Text = unicode:chardata()
339
340              See external documentation.
341
342       getTextExtent(This, Text) -> Result
343
344              Types:
345
346                 Result  =  {Width::number(),  Height::number(), Descent::num‐
347                 ber(), ExternalLeading::number()}
348                 This = wxGraphicsContext()
349                 Text = unicode:chardata()
350
351              See external documentation.
352
353       rotate(This, Angle) -> ok
354
355              Types:
356
357                 This = wxGraphicsContext()
358                 Angle = number()
359
360              See external documentation.
361
362       scale(This, XScale, YScale) -> ok
363
364              Types:
365
366                 This = wxGraphicsContext()
367                 XScale = number()
368                 YScale = number()
369
370              See external documentation.
371
372       translate(This, Dx, Dy) -> ok
373
374              Types:
375
376                 This = wxGraphicsContext()
377                 Dx = number()
378                 Dy = number()
379
380              See external documentation.
381
382       getTransform(This) -> wxGraphicsMatrix:wxGraphicsMatrix()
383
384              Types:
385
386                 This = wxGraphicsContext()
387
388              See external documentation.
389
390       setTransform(This, Matrix) -> ok
391
392              Types:
393
394                 This = wxGraphicsContext()
395                 Matrix = wxGraphicsMatrix:wxGraphicsMatrix()
396
397              See external documentation.
398
399       concatTransform(This, Matrix) -> ok
400
401              Types:
402
403                 This = wxGraphicsContext()
404                 Matrix = wxGraphicsMatrix:wxGraphicsMatrix()
405
406              See external documentation.
407
408       setBrush(This, Brush) -> ok
409
410              Types:
411
412                 This = wxGraphicsContext()
413                 Brush = wxGraphicsBrush:wxGraphicsBrush() | wxBrush:wxBrush()
414
415              See external documentation.
416
417       setFont(This, Font) -> ok
418
419              Types:
420
421                 This = wxGraphicsContext()
422                 Font = wxGraphicsFont:wxGraphicsFont()
423
424              See external documentation.
425
426       setFont(This, Font, Colour) -> ok
427
428              Types:
429
430                 This = wxGraphicsContext()
431                 Font = wxFont:wxFont()
432                 Colour = wx:wx_colour()
433
434              See external documentation.
435
436       setPen(This, Pen) -> ok
437
438              Types:
439
440                 This = wxGraphicsContext()
441                 Pen = wxPen:wxPen() | wxGraphicsPen:wxGraphicsPen()
442
443              See external documentation.
444
445       strokeLine(This, X1, Y1, X2, Y2) -> ok
446
447              Types:
448
449                 This = wxGraphicsContext()
450                 X1 = number()
451                 Y1 = number()
452                 X2 = number()
453                 Y2 = number()
454
455              See external documentation.
456
457       strokeLines(This, Points) -> ok
458
459              Types:
460
461                 This = wxGraphicsContext()
462                 Points = [{X::float(), Y::float()}]
463
464              See external documentation.
465
466       destroy(This::wxGraphicsContext()) -> ok
467
468              Destroys this object, do not use object again
469

AUTHORS

471       <>
472
473
474
475                                   wx 1.8.9               wxGraphicsContext(3)
Impressum