wxGraphicsContext

See external documentation: wxGraphicsContext.

See external documentation: wxGraphicsContext.

This class is derived (and can use functions) from:
wxGraphicsObject

Functions


create() -> wxGraphicsContext()

See external documentation.

create(Dc) -> wxGraphicsContext()

See external documentation.

createPen(This, Pen) -> wxGraphicsPen:wxGraphicsPen()

See external documentation.

createBrush(This, Brush) -> wxGraphicsBrush:wxGraphicsBrush()

See external documentation.

createRadialGradientBrush(This, Xo, Yo, Xc, Yc, Radius, OColor, CColor) -> wxGraphicsBrush:wxGraphicsBrush()

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()

This function is deprecated: deprecated function not available in wxWidgets-2.9 and later

See external documentation.

createFont(This, Font, Options::[Option]) -> wxGraphicsFont:wxGraphicsFont()

See external documentation.

createMatrix(This, Options::[Option]) -> wxGraphicsMatrix:wxGraphicsMatrix()

  • This = wxGraphicsContext()
  • Option = {a, number()} | {b, number()} | {c, number()} | {d, number()} | {tx, number()} | {ty, number()}

See external documentation.

createPath(This) -> wxGraphicsPath:wxGraphicsPath()

See external documentation.

clip(This, Region) -> ok

See external documentation.

clip(This, X, Y, W, H) -> ok

See external documentation.

resetClip(This) -> ok

See external documentation.

drawBitmap(This, Bmp, X, Y, W, H) -> ok

See external documentation.

drawEllipse(This, X, Y, W, H) -> ok

See external documentation.

drawIcon(This, Icon, X, Y, W, H) -> ok

See external documentation.

drawLines(This, Points) -> ok

drawLines(This, Points, Options::[Option]) -> ok

See external documentation.
FillStyle = integer

drawPath(This, Path) -> ok

Equivalent to drawPath(This, Path, []).

drawPath(This, Path, Options::[Option]) -> ok

See external documentation.
FillStyle = integer

drawRectangle(This, X, Y, W, H) -> ok

See external documentation.

drawRoundedRectangle(This, X, Y, W, H, Radius) -> ok

See external documentation.

drawText(This, Str, X, Y) -> ok

See external documentation.

drawText(This, Str, X, Y, Angle) -> ok

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

See external documentation.

fillPath(This, Path) -> ok

Equivalent to fillPath(This, Path, []).

fillPath(This, Path, Options::[Option]) -> ok

See external documentation.
FillStyle = integer

strokePath(This, Path) -> ok

See external documentation.

getPartialTextExtents(This, Text) -> [number()]

See external documentation.

getTextExtent(This, Text) -> Result

See external documentation.

rotate(This, Angle) -> ok

See external documentation.

scale(This, XScale, YScale) -> ok

See external documentation.

translate(This, Dx, Dy) -> ok

See external documentation.

getTransform(This) -> wxGraphicsMatrix:wxGraphicsMatrix()

See external documentation.

setTransform(This, Matrix) -> ok

See external documentation.

concatTransform(This, Matrix) -> ok

See external documentation.

setBrush(This, Brush) -> ok

See external documentation.

setFont(This, Font) -> ok

See external documentation.

setFont(This, Font, Colour) -> ok

See external documentation.

setPen(This, Pen) -> ok

See external documentation.

strokeLine(This, X1, Y1, X2, Y2) -> ok

See external documentation.

strokeLines(This, Points) -> ok

See external documentation.

destroy(This::wxGraphicsContext()) -> ok

Destroys this object, do not use object again