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