wxGraphicsContext

See external documentation: wxGraphicsContext.

See external documentation: wxGraphicsContext.

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

Types


wxGraphicsContext() = wx:wx_object()

Functions


create() -> wxGraphicsContext()

See external documentation.

create(Dc) -> wxGraphicsContext()

  • Dc = wxWindowDC() (see module wxWindowDC) | wxWindow() (see module wxWindow)

See external documentation.

createPen(This, Pen) -> wxGraphicsPen() (see module wxGraphicsPen)

  • This = wxGraphicsContext()
  • Pen = wxPen() (see module wxPen)

See external documentation.

createBrush(This, Brush) -> wxGraphicsBrush() (see module wxGraphicsBrush)

  • This = wxGraphicsContext()
  • Brush = wxBrush() (see module wxBrush)

See external documentation.

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

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

  • This = wxGraphicsContext()
  • X1 = number()
  • Y1 = number()
  • X2 = number()
  • Y2 = number()
  • C1 = wx_colour() (see module wx)
  • C2 = wx_colour() (see module wx)

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

See external documentation.

createFont(This, Font) -> wxGraphicsFont() (see module wxGraphicsFont)

  • This = wxGraphicsContext()
  • Font = wxFont() (see module wxFont)

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

  • This = wxGraphicsContext()
  • Font = wxFont() (see module wxFont)
  • Option = {col, wx_colour() (see module wx)}

See external documentation.

createMatrix(This) -> wxGraphicsMatrix() (see module wxGraphicsMatrix)

  • This = wxGraphicsContext()

Equivalent to createMatrix(This, []).

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

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

See external documentation.

createPath(This) -> wxGraphicsPath() (see module wxGraphicsPath)

  • This = wxGraphicsContext()

See external documentation.

clip(This, Region) -> ok

  • This = wxGraphicsContext()
  • Region = wxRegion() (see module wxRegion)

See external documentation.

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

  • This = wxGraphicsContext()
  • X = number()
  • Y = number()
  • W = number()
  • H = number()

See external documentation.

resetClip(This) -> ok

  • This = wxGraphicsContext()

See external documentation.

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

  • This = wxGraphicsContext()
  • Bmp = wxBitmap() (see module wxBitmap)
  • X = number()
  • Y = number()
  • W = number()
  • H = number()

See external documentation.

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

  • This = wxGraphicsContext()
  • X = number()
  • Y = number()
  • W = number()
  • H = number()

See external documentation.

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

  • This = wxGraphicsContext()
  • Icon = wxIcon() (see module wxIcon)
  • X = number()
  • Y = number()
  • W = number()
  • H = number()

See external documentation.

drawLines(This, Points) -> ok

  • This = wxGraphicsContext()
  • Points = [{X::float(), Y::float()}]

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

  • This = wxGraphicsContext()
  • Points = [{X::float(), Y::float()}]
  • Option = {fillStyle, wx_enum() (see module wx)}

See external documentation.
FillStyle = integer

drawPath(This, Path) -> ok

  • This = wxGraphicsContext()
  • Path = wxGraphicsPath() (see module wxGraphicsPath)

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

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

  • This = wxGraphicsContext()
  • Path = wxGraphicsPath() (see module wxGraphicsPath)
  • Option = {fillStyle, wx_enum() (see module wx)}

See external documentation.
FillStyle = integer

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

  • This = wxGraphicsContext()
  • X = number()
  • Y = number()
  • W = number()
  • H = number()

See external documentation.

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

  • This = wxGraphicsContext()
  • X = number()
  • Y = number()
  • W = number()
  • H = number()
  • Radius = number()

See external documentation.

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

  • This = wxGraphicsContext()
  • Str = chardata() (see module unicode)
  • X = number()
  • Y = number()

See external documentation.

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

  • This = wxGraphicsContext()
  • Str = chardata() (see module unicode)
  • 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

  • This = wxGraphicsContext()
  • Str = chardata() (see module unicode)
  • X = number()
  • Y = number()
  • Angle = number()
  • BackgroundBrush = wxGraphicsBrush() (see module wxGraphicsBrush)

See external documentation.

fillPath(This, Path) -> ok

  • This = wxGraphicsContext()
  • Path = wxGraphicsPath() (see module wxGraphicsPath)

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

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

  • This = wxGraphicsContext()
  • Path = wxGraphicsPath() (see module wxGraphicsPath)
  • Option = {fillStyle, wx_enum() (see module wx)}

See external documentation.
FillStyle = integer

strokePath(This, Path) -> ok

  • This = wxGraphicsContext()
  • Path = wxGraphicsPath() (see module wxGraphicsPath)

See external documentation.

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

  • This = wxGraphicsContext()
  • Text = chardata() (see module unicode)

See external documentation.

getTextExtent(This, Text) -> Result

  • Result = {Width::number(), Height::number(), Descent::number(), ExternalLeading::number()}
  • This = wxGraphicsContext()
  • Text = chardata() (see module unicode)

See external documentation.

rotate(This, Angle) -> ok

  • This = wxGraphicsContext()
  • Angle = number()

See external documentation.

scale(This, XScale, YScale) -> ok

  • This = wxGraphicsContext()
  • XScale = number()
  • YScale = number()

See external documentation.

translate(This, Dx, Dy) -> ok

  • This = wxGraphicsContext()
  • Dx = number()
  • Dy = number()

See external documentation.

getTransform(This) -> wxGraphicsMatrix() (see module wxGraphicsMatrix)

  • This = wxGraphicsContext()

See external documentation.

setTransform(This, Matrix) -> ok

  • This = wxGraphicsContext()
  • Matrix = wxGraphicsMatrix() (see module wxGraphicsMatrix)

See external documentation.

concatTransform(This, Matrix) -> ok

  • This = wxGraphicsContext()
  • Matrix = wxGraphicsMatrix() (see module wxGraphicsMatrix)

See external documentation.

setBrush(This, Brush) -> ok

  • This = wxGraphicsContext()
  • Brush = wxGraphicsBrush() (see module wxGraphicsBrush) | wxBrush() (see module wxBrush)

See external documentation.

setFont(This, Font) -> ok

  • This = wxGraphicsContext()
  • Font = wxGraphicsFont() (see module wxGraphicsFont)

See external documentation.

setFont(This, Font, Colour) -> ok

  • This = wxGraphicsContext()
  • Font = wxFont() (see module wxFont)
  • Colour = wx_colour() (see module wx)

See external documentation.

setPen(This, Pen) -> ok

  • This = wxGraphicsContext()
  • Pen = wxPen() (see module wxPen) | wxGraphicsPen() (see module wxGraphicsPen)

See external documentation.

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

  • This = wxGraphicsContext()
  • X1 = number()
  • Y1 = number()
  • X2 = number()
  • Y2 = number()

See external documentation.

strokeLines(This, Points) -> ok

  • This = wxGraphicsContext()
  • Points = [{X::float(), Y::float()}]

See external documentation.

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

Destroys this object, do not use object again