wxGraphicsContext
MODULE
MODULE SUMMARY
DESCRIPTION
See external documentation: wxGraphicsContext.
This class is derived (and can use functions) from:
wxGraphicsObject
DATA TYPES
EXPORTS
create() -> wxGraphicsContext()
create(Dc) -> wxGraphicsContext()
Types:
createPen(This, Pen) -> wxGraphicsPen:wxGraphicsPen()
createBrush(This, Brush) -> wxGraphicsBrush:wxGraphicsBrush()
createRadialGradientBrush(This, Xo, Yo, Xc, Yc, Radius, OColor, CColor) -> wxGraphicsBrush:wxGraphicsBrush()
Types:
This function is deprecated: deprecated function not available in wxWidgets-2.9 and later
createLinearGradientBrush(This, X1, Y1, X2, Y2, C1, C2) -> wxGraphicsBrush:wxGraphicsBrush()
Types:
This function is deprecated: deprecated function not available in wxWidgets-2.9 and later
createFont(This, Font) -> wxGraphicsFont:wxGraphicsFont()
Equivalent to createFont(This, Font, []).
createFont(This, Font, Options::[Option]) -> wxGraphicsFont:wxGraphicsFont()
createMatrix(This) -> wxGraphicsMatrix:wxGraphicsMatrix()
Types:
Equivalent to createMatrix(This, []).
createMatrix(This, Options::[Option]) -> wxGraphicsMatrix:wxGraphicsMatrix()
Types:
createPath(This) -> wxGraphicsPath:wxGraphicsPath()
Types:
Types:
drawBitmap(This, Bmp, X, Y, W, H) -> ok
Types:
drawEllipse(This, X, Y, W, H) -> ok
drawIcon(This, Icon, X, Y, W, H) -> ok
Types:
Equivalent to drawLines(This, Points, []).
drawLines(This, Points, Options::[Option]) -> ok
Types:
See external documentation.
FillStyle = integer
Equivalent to drawPath(This, Path, []).
drawPath(This, Path, Options::[Option]) -> ok
See external documentation.
FillStyle = integer
drawRectangle(This, X, Y, W, H) -> ok
drawRoundedRectangle(This, X, Y, W, H, Radius) -> ok
Types:
drawText(This, Str, X, Y) -> ok
drawText(This, Str, X, Y, Angle) -> ok
Types:
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:
Equivalent to fillPath(This, Path, []).
fillPath(This, Path, Options::[Option]) -> ok
See external documentation.
FillStyle = integer
getPartialTextExtents(This, Text) -> [number()]
getTextExtent(This, Text) -> Result
Types:
scale(This, XScale, YScale) -> ok
getTransform(This) -> wxGraphicsMatrix:wxGraphicsMatrix()
Types:
setTransform(This, Matrix) -> ok
concatTransform(This, Matrix) -> ok
setFont(This, Font, Colour) -> ok
strokeLine(This, X1, Y1, X2, Y2) -> ok
strokeLines(This, Points) -> ok
destroy(This::wxGraphicsContext()) -> ok