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:
-
Dc = wxWindowDC() (see module wxWindowDC) | wxWindow() (see module wxWindow)
-
Dc = wxWindowDC() (see module wxWindowDC) | wxWindow() (see module wxWindow)
-
See external documentation.
createPen(This, Pen) -> wxGraphicsPen() (see module wxGraphicsPen)
-
Types:
-
This = wxGraphicsContext()
Pen = wxPen() (see module wxPen)
-
This = wxGraphicsContext()
-
See external documentation.
createBrush(This, Brush) -> wxGraphicsBrush() (see module wxGraphicsBrush)
-
Types:
-
This = wxGraphicsContext()
Brush = wxBrush() (see module wxBrush)
-
This = wxGraphicsContext()
-
See external documentation.
createRadialGradientBrush(This, Xo, Yo, Xc, Yc, Radius, OColor, CColor) -> wxGraphicsBrush() (see module wxGraphicsBrush)
-
Types:
-
This = wxGraphicsContext()
Xo = number()
Yo = number()
Xc = number()
Yc = number()
Radius = number()
OColor = wx_colour() (see module wx)
CColor = wx_colour() (see module wx)
-
This = wxGraphicsContext()
-
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() (see module wxGraphicsBrush)
-
Types:
-
This = wxGraphicsContext()
X1 = number()
Y1 = number()
X2 = number()
Y2 = number()
C1 = wx_colour() (see module wx)
C2 = wx_colour() (see module wx)
-
This = wxGraphicsContext()
-
This function is deprecated: deprecated function not available in wxWidgets-2.9 and later
See external documentation.
createFont(This, Font) -> wxGraphicsFont() (see module wxGraphicsFont)
-
Types:
-
This = wxGraphicsContext()
Font = wxFont() (see module wxFont)
-
This = wxGraphicsContext()
-
Equivalent to createFont(This, Font, []).
createFont(This, Font, Options::[Option]) -> wxGraphicsFont() (see module wxGraphicsFont)
-
Types:
-
This = wxGraphicsContext()
Font = wxFont() (see module wxFont)
Option = {col, wx_colour() (see module wx)}
-
This = wxGraphicsContext()
-
See external documentation.
createMatrix(This) -> wxGraphicsMatrix() (see module wxGraphicsMatrix)
-
Types:
-
This = wxGraphicsContext()
-
This = wxGraphicsContext()
-
Equivalent to createMatrix(This, []).
createMatrix(This, Options::[Option]) -> wxGraphicsMatrix() (see module wxGraphicsMatrix)
-
Types:
-
This = wxGraphicsContext()
Option = {a, number()} | {b, number()} | {c, number()} | {d, number()} | {tx, number()} | {ty, number()}
-
This = wxGraphicsContext()
-
See external documentation.
createPath(This) -> wxGraphicsPath() (see module wxGraphicsPath)
-
Types:
-
This = wxGraphicsContext()
-
This = wxGraphicsContext()
-
See external documentation.
clip(This, Region) -> ok
-
Types:
-
This = wxGraphicsContext()
Region = wxRegion() (see module wxRegion)
-
This = wxGraphicsContext()
-
See external documentation.
clip(This, X, Y, W, H) -> ok
-
Types:
-
This = wxGraphicsContext()
X = number()
Y = number()
W = number()
H = number()
-
This = wxGraphicsContext()
-
See external documentation.
resetClip(This) -> ok
-
Types:
-
This = wxGraphicsContext()
-
This = wxGraphicsContext()
-
See external documentation.
drawBitmap(This, Bmp, X, Y, W, H) -> ok
-
Types:
-
This = wxGraphicsContext()
Bmp = wxBitmap() (see module wxBitmap)
X = number()
Y = number()
W = number()
H = number()
-
This = wxGraphicsContext()
-
See external documentation.
drawEllipse(This, X, Y, W, H) -> ok
-
Types:
-
This = wxGraphicsContext()
X = number()
Y = number()
W = number()
H = number()
-
This = wxGraphicsContext()
-
See external documentation.
drawIcon(This, Icon, X, Y, W, H) -> ok
-
Types:
-
This = wxGraphicsContext()
Icon = wxIcon() (see module wxIcon)
X = number()
Y = number()
W = number()
H = number()
-
This = wxGraphicsContext()
-
See external documentation.
drawLines(This, Points) -> ok
-
Types:
-
This = wxGraphicsContext()
Points = [{X::float(), Y::float()}]
-
This = wxGraphicsContext()
-
Equivalent to drawLines(This, Points, []).
drawLines(This, Points, Options::[Option]) -> ok
-
Types:
-
This = wxGraphicsContext()
Points = [{X::float(), Y::float()}]
Option = {fillStyle, wx_enum() (see module wx)}
-
This = wxGraphicsContext()
-
See external documentation.
FillStyle = integer
drawPath(This, Path) -> ok
-
Types:
-
This = wxGraphicsContext()
Path = wxGraphicsPath() (see module wxGraphicsPath)
-
This = wxGraphicsContext()
-
Equivalent to drawPath(This, Path, []).
drawPath(This, Path, Options::[Option]) -> ok
-
Types:
-
This = wxGraphicsContext()
Path = wxGraphicsPath() (see module wxGraphicsPath)
Option = {fillStyle, wx_enum() (see module wx)}
-
This = wxGraphicsContext()
-
See external documentation.
FillStyle = integer
drawRectangle(This, X, Y, W, H) -> ok
-
Types:
-
This = wxGraphicsContext()
X = number()
Y = number()
W = number()
H = number()
-
This = wxGraphicsContext()
-
See external documentation.
drawRoundedRectangle(This, X, Y, W, H, Radius) -> ok
-
Types:
-
This = wxGraphicsContext()
X = number()
Y = number()
W = number()
H = number()
Radius = number()
-
This = wxGraphicsContext()
-
See external documentation.
drawText(This, Str, X, Y) -> ok
-
Types:
-
This = wxGraphicsContext()
Str = chardata() (see module unicode)
X = number()
Y = number()
-
This = wxGraphicsContext()
-
See external documentation.
drawText(This, Str, X, Y, Angle) -> ok
-
Types:
-
This = wxGraphicsContext()
Str = chardata() (see module unicode)
X = number()
Y = number()
Angle = number()
-
This = wxGraphicsContext()
-
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:
-
This = wxGraphicsContext()
Str = chardata() (see module unicode)
X = number()
Y = number()
Angle = number()
BackgroundBrush = wxGraphicsBrush() (see module wxGraphicsBrush)
-
This = wxGraphicsContext()
-
See external documentation.
fillPath(This, Path) -> ok
-
Types:
-
This = wxGraphicsContext()
Path = wxGraphicsPath() (see module wxGraphicsPath)
-
This = wxGraphicsContext()
-
Equivalent to fillPath(This, Path, []).
fillPath(This, Path, Options::[Option]) -> ok
-
Types:
-
This = wxGraphicsContext()
Path = wxGraphicsPath() (see module wxGraphicsPath)
Option = {fillStyle, wx_enum() (see module wx)}
-
This = wxGraphicsContext()
-
See external documentation.
FillStyle = integer
strokePath(This, Path) -> ok
-
Types:
-
This = wxGraphicsContext()
Path = wxGraphicsPath() (see module wxGraphicsPath)
-
This = wxGraphicsContext()
-
See external documentation.
getPartialTextExtents(This, Text) -> [number()]
-
Types:
-
This = wxGraphicsContext()
Text = chardata() (see module unicode)
-
This = wxGraphicsContext()
-
See external documentation.
getTextExtent(This, Text) -> Result
-
Types:
-
Result = {Width::number(), Height::number(), Descent::number(), ExternalLeading::number()}
This = wxGraphicsContext()
Text = chardata() (see module unicode)
-
Result = {Width::number(), Height::number(), Descent::number(), ExternalLeading::number()}
-
See external documentation.
rotate(This, Angle) -> ok
-
Types:
-
This = wxGraphicsContext()
Angle = number()
-
This = wxGraphicsContext()
-
See external documentation.
scale(This, XScale, YScale) -> ok
-
Types:
-
This = wxGraphicsContext()
XScale = number()
YScale = number()
-
This = wxGraphicsContext()
-
See external documentation.
translate(This, Dx, Dy) -> ok
-
Types:
-
This = wxGraphicsContext()
Dx = number()
Dy = number()
-
This = wxGraphicsContext()
-
See external documentation.
getTransform(This) -> wxGraphicsMatrix() (see module wxGraphicsMatrix)
-
Types:
-
This = wxGraphicsContext()
-
This = wxGraphicsContext()
-
See external documentation.
setTransform(This, Matrix) -> ok
-
Types:
-
This = wxGraphicsContext()
Matrix = wxGraphicsMatrix() (see module wxGraphicsMatrix)
-
This = wxGraphicsContext()
-
See external documentation.
concatTransform(This, Matrix) -> ok
-
Types:
-
This = wxGraphicsContext()
Matrix = wxGraphicsMatrix() (see module wxGraphicsMatrix)
-
This = wxGraphicsContext()
-
See external documentation.
setBrush(This, Brush) -> ok
-
Types:
-
This = wxGraphicsContext()
Brush = wxGraphicsBrush() (see module wxGraphicsBrush) | wxBrush() (see module wxBrush)
-
This = wxGraphicsContext()
-
See external documentation.
setFont(This, Font) -> ok
-
Types:
-
This = wxGraphicsContext()
Font = wxGraphicsFont() (see module wxGraphicsFont)
-
This = wxGraphicsContext()
-
See external documentation.
setFont(This, Font, Colour) -> ok
-
Types:
-
This = wxGraphicsContext()
Font = wxFont() (see module wxFont)
Colour = wx_colour() (see module wx)
-
This = wxGraphicsContext()
-
See external documentation.
setPen(This, Pen) -> ok
-
Types:
-
This = wxGraphicsContext()
Pen = wxPen() (see module wxPen) | wxGraphicsPen() (see module wxGraphicsPen)
-
This = wxGraphicsContext()
-
See external documentation.
strokeLine(This, X1, Y1, X2, Y2) -> ok
-
Types:
-
This = wxGraphicsContext()
X1 = number()
Y1 = number()
X2 = number()
Y2 = number()
-
This = wxGraphicsContext()
-
See external documentation.
strokeLines(This, Points) -> ok
-
Types:
-
This = wxGraphicsContext()
Points = [{X::float(), Y::float()}]
-
This = wxGraphicsContext()
-
See external documentation.
destroy(This::wxGraphicsContext()) -> ok
-
Destroys this object, do not use object again
AUTHORS
<>