table of contents
- stretch 1:19.2.1+dfsg-2+deb9u2
- testing 1:21.2.6+dfsg-1
- unstable 1:21.2.6+dfsg-1
- experimental 1:22.0.4+dfsg-1
wxGraphicsContext(3erl) | Erlang Module Definition | wxGraphicsContext(3erl) |
NAME¶
wxGraphicsContext - See external documentation: wxGraphicsContext.DESCRIPTION¶
See external documentation: wxGraphicsContext.This class is derived (and can use functions) from:
wxGraphicsObject
DATA TYPES¶
- wxGraphicsContext():
An object reference, The representation is internal and can be changed without notice. It can't be used for comparsion stored on disc or distributed for use on other nodes.
EXPORTS¶
create() -> wxGraphicsContext()See external documentation.
create(Dc) -> wxGraphicsContext()
Types:
See external documentation.
createPen(This, Pen) ->
wxGraphicsPen:wxGraphicsPen()
Types:
Pen = wxPen:wxPen()
See external documentation.
createBrush(This, Brush) ->
wxGraphicsBrush:wxGraphicsBrush()
Types:
Brush = wxBrush:wxBrush()
See external documentation.
createRadialGradientBrush(This, Xo, Yo, Xc, Yc, Radius, OColor,
CColor) -> wxGraphicsBrush:wxGraphicsBrush()
Types:
Xo = number()
Yo = number()
Xc = number()
Yc = number()
Radius = number()
OColor = wx:wx_colour()
CColor = wx:wx_colour()
This function is deprecated: deprecated function not available in wxWidgets-2.9 and later
See external documentation.
createLinearGradientBrush(This, X1, Y1, X2, Y2, C1, C2) ->
wxGraphicsBrush:wxGraphicsBrush()
Types:
X1 = number()
Y1 = number()
X2 = number()
Y2 = number()
C1 = wx:wx_colour()
C2 = wx:wx_colour()
This function is deprecated: deprecated function not available in wxWidgets-2.9 and later
See external documentation.
createFont(This, Font) ->
wxGraphicsFont:wxGraphicsFont()
Types:
Font = wxFont:wxFont()
Equivalent to createFont(This, Font, []).
createFont(This, Font, Options::[Option]) ->
wxGraphicsFont:wxGraphicsFont()
Types:
Font = wxFont:wxFont()
Option = {col, wx:wx_colour()}
See external documentation.
createMatrix(This) ->
wxGraphicsMatrix:wxGraphicsMatrix()
Types:
Equivalent to createMatrix(This, []).
createMatrix(This, Options::[Option]) ->
wxGraphicsMatrix:wxGraphicsMatrix()
Types:
Option = {a, number()} | {b, number()} | {c, number()} | {d, number()} | {tx, number()} | {ty, number()}
See external documentation.
createPath(This) ->
wxGraphicsPath:wxGraphicsPath()
Types:
See external documentation.
clip(This, Region) -> ok
Types:
Region = wxRegion:wxRegion()
See external documentation.
clip(This, X, Y, W, H) -> ok
Types:
X = number()
Y = number()
W = number()
H = number()
See external documentation.
resetClip(This) -> ok
Types:
See external documentation.
drawBitmap(This, Bmp, X, Y, W, H) -> ok
Types:
Bmp = wxBitmap:wxBitmap()
X = number()
Y = number()
W = number()
H = number()
See external documentation.
drawEllipse(This, X, Y, W, H) -> ok
Types:
X = number()
Y = number()
W = number()
H = number()
See external documentation.
drawIcon(This, Icon, X, Y, W, H) -> ok
Types:
Icon = wxIcon:wxIcon()
X = number()
Y = number()
W = number()
H = number()
See external documentation.
drawLines(This, Points) -> ok
Types:
Points = [{X::float(), Y::float()}]
Equivalent to drawLines(This, Points, []).
drawLines(This, Points, Options::[Option]) -> ok
Types:
Points = [{X::float(), Y::float()}]
Option = {fillStyle, wx:wx_enum()}
See external documentation.
FillStyle = integer
drawPath(This, Path) -> ok
Types:
Path = wxGraphicsPath:wxGraphicsPath()
Equivalent to drawPath(This, Path, []).
drawPath(This, Path, Options::[Option]) -> ok
Types:
Path = wxGraphicsPath:wxGraphicsPath()
Option = {fillStyle, wx:wx_enum()}
See external documentation.
FillStyle = integer
drawRectangle(This, X, Y, W, H) -> ok
Types:
X = number()
Y = number()
W = number()
H = number()
See external documentation.
drawRoundedRectangle(This, X, Y, W, H, Radius) -> ok
Types:
X = number()
Y = number()
W = number()
H = number()
Radius = number()
See external documentation.
drawText(This, Str, X, Y) -> ok
Types:
Str = unicode:chardata()
X = number()
Y = number()
See external documentation.
drawText(This, Str, X, Y, Angle) -> ok
Types:
Str = unicode:chardata()
X = number()
Y = number()
Angle = number()
See external documentation.
Also:
drawText(This, Str, X, Y, BackgroundBrush) -> 'ok' when
This::wxGraphicsContext(), Str::unicode:chardata(), X::number(), Y::number(),
BackgroundBrush::wxGraphicsBrush:wxGraphicsBrush().
drawText(This, Str, X, Y, Angle, BackgroundBrush) -> ok
Types:
Str = unicode:chardata()
X = number()
Y = number()
Angle = number()
BackgroundBrush = wxGraphicsBrush:wxGraphicsBrush()
See external documentation.
fillPath(This, Path) -> ok
Types:
Path = wxGraphicsPath:wxGraphicsPath()
Equivalent to fillPath(This, Path, []).
fillPath(This, Path, Options::[Option]) -> ok
Types:
Path = wxGraphicsPath:wxGraphicsPath()
Option = {fillStyle, wx:wx_enum()}
See external documentation.
FillStyle = integer
strokePath(This, Path) -> ok
Types:
Path = wxGraphicsPath:wxGraphicsPath()
See external documentation.
getPartialTextExtents(This, Text) -> [number()]
Types:
Text = unicode:chardata()
See external documentation.
getTextExtent(This, Text) -> Result
Types:
This = wxGraphicsContext()
Text = unicode:chardata()
See external documentation.
rotate(This, Angle) -> ok
Types:
Angle = number()
See external documentation.
scale(This, XScale, YScale) -> ok
Types:
XScale = number()
YScale = number()
See external documentation.
translate(This, Dx, Dy) -> ok
Types:
Dx = number()
Dy = number()
See external documentation.
getTransform(This) ->
wxGraphicsMatrix:wxGraphicsMatrix()
Types:
See external documentation.
setTransform(This, Matrix) -> ok
Types:
Matrix = wxGraphicsMatrix:wxGraphicsMatrix()
See external documentation.
concatTransform(This, Matrix) -> ok
Types:
Matrix = wxGraphicsMatrix:wxGraphicsMatrix()
See external documentation.
setBrush(This, Brush) -> ok
Types:
Brush = wxGraphicsBrush:wxGraphicsBrush() | wxBrush:wxBrush()
See external documentation.
setFont(This, Font) -> ok
Types:
Font = wxGraphicsFont:wxGraphicsFont()
See external documentation.
setFont(This, Font, Colour) -> ok
Types:
Font = wxFont:wxFont()
Colour = wx:wx_colour()
See external documentation.
setPen(This, Pen) -> ok
Types:
Pen = wxPen:wxPen() | wxGraphicsPen:wxGraphicsPen()
See external documentation.
strokeLine(This, X1, Y1, X2, Y2) -> ok
Types:
X1 = number()
Y1 = number()
X2 = number()
Y2 = number()
See external documentation.
strokeLines(This, Points) -> ok
Types:
Points = [{X::float(), Y::float()}]
See external documentation.
destroy(This::wxGraphicsContext()) -> ok
Destroys this object, do not use object again
AUTHORS¶
<>wx 1.8 |