.TH wxGraphicsContext 3erl "wx 1.8" "" "Erlang Module Definition" .SH NAME wxGraphicsContext \- See external documentation: wxGraphicsContext. .SH DESCRIPTION .LP See external documentation: wxGraphicsContext\&. .LP This class is derived (and can use functions) from: .br \fBwxGraphicsObject\fR\& .SH "DATA TYPES" .RS 2 .TP 2 .B wxGraphicsContext(): .RS 2 .LP 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\&. .RE .RE .SH EXPORTS .LP .B create() -> \fBwxGraphicsContext()\fR\& .br .RS .LP See external documentation\&. .RE .LP .B create(Dc) -> \fBwxGraphicsContext()\fR\& .br .RS .LP Types: .RS 3 Dc = \fBwxWindowDC:wxWindowDC()\fR\& | \fBwxWindow:wxWindow()\fR\& .br .RE .RE .RS .LP See external documentation\&. .RE .LP .B createPen(This, Pen) -> \fBwxGraphicsPen:wxGraphicsPen()\fR\& .br .RS .LP Types: .RS 3 This = \fBwxGraphicsContext()\fR\& .br Pen = \fBwxPen:wxPen()\fR\& .br .RE .RE .RS .LP See external documentation\&. .RE .LP .B createBrush(This, Brush) -> \fBwxGraphicsBrush:wxGraphicsBrush()\fR\& .br .RS .LP Types: .RS 3 This = \fBwxGraphicsContext()\fR\& .br Brush = \fBwxBrush:wxBrush()\fR\& .br .RE .RE .RS .LP See external documentation\&. .RE .LP .B createRadialGradientBrush(This, Xo, Yo, Xc, Yc, Radius, OColor, CColor) -> \fBwxGraphicsBrush:wxGraphicsBrush()\fR\& .br .RS .LP Types: .RS 3 This = \fBwxGraphicsContext()\fR\& .br Xo = number() .br Yo = number() .br Xc = number() .br Yc = number() .br Radius = number() .br OColor = \fBwx:wx_colour()\fR\& .br CColor = \fBwx:wx_colour()\fR\& .br .RE .RE .RS .LP \fIThis function is deprecated: \fR\&deprecated function not available in wxWidgets-2\&.9 and later .LP See external documentation\&. .RE .LP .B createLinearGradientBrush(This, X1, Y1, X2, Y2, C1, C2) -> \fBwxGraphicsBrush:wxGraphicsBrush()\fR\& .br .RS .LP Types: .RS 3 This = \fBwxGraphicsContext()\fR\& .br X1 = number() .br Y1 = number() .br X2 = number() .br Y2 = number() .br C1 = \fBwx:wx_colour()\fR\& .br C2 = \fBwx:wx_colour()\fR\& .br .RE .RE .RS .LP \fIThis function is deprecated: \fR\&deprecated function not available in wxWidgets-2\&.9 and later .LP See external documentation\&. .RE .LP .B createFont(This, Font) -> \fBwxGraphicsFont:wxGraphicsFont()\fR\& .br .RS .LP Types: .RS 3 This = \fBwxGraphicsContext()\fR\& .br Font = \fBwxFont:wxFont()\fR\& .br .RE .RE .RS .LP Equivalent to \fBcreateFont(This, Font, [])\fR\&\&. .RE .LP .B createFont(This, Font, Options::[Option]) -> \fBwxGraphicsFont:wxGraphicsFont()\fR\& .br .RS .LP Types: .RS 3 This = \fBwxGraphicsContext()\fR\& .br Font = \fBwxFont:wxFont()\fR\& .br Option = {col, \fBwx:wx_colour()\fR\&} .br .RE .RE .RS .LP See external documentation\&. .RE .LP .B createMatrix(This) -> \fBwxGraphicsMatrix:wxGraphicsMatrix()\fR\& .br .RS .LP Types: .RS 3 This = \fBwxGraphicsContext()\fR\& .br .RE .RE .RS .LP Equivalent to \fBcreateMatrix(This, [])\fR\&\&. .RE .LP .B createMatrix(This, Options::[Option]) -> \fBwxGraphicsMatrix:wxGraphicsMatrix()\fR\& .br .RS .LP Types: .RS 3 This = \fBwxGraphicsContext()\fR\& .br Option = {a, number()} | {b, number()} | {c, number()} | {d, number()} | {tx, number()} | {ty, number()} .br .RE .RE .RS .LP See external documentation\&. .RE .LP .B createPath(This) -> \fBwxGraphicsPath:wxGraphicsPath()\fR\& .br .RS .LP Types: .RS 3 This = \fBwxGraphicsContext()\fR\& .br .RE .RE .RS .LP See external documentation\&. .RE .LP .B clip(This, Region) -> ok .br .RS .LP Types: .RS 3 This = \fBwxGraphicsContext()\fR\& .br Region = \fBwxRegion:wxRegion()\fR\& .br .RE .RE .RS .LP See external documentation\&. .RE .LP .B clip(This, X, Y, W, H) -> ok .br .RS .LP Types: .RS 3 This = \fBwxGraphicsContext()\fR\& .br X = number() .br Y = number() .br W = number() .br H = number() .br .RE .RE .RS .LP See external documentation\&. .RE .LP .B resetClip(This) -> ok .br .RS .LP Types: .RS 3 This = \fBwxGraphicsContext()\fR\& .br .RE .RE .RS .LP See external documentation\&. .RE .LP .B drawBitmap(This, Bmp, X, Y, W, H) -> ok .br .RS .LP Types: .RS 3 This = \fBwxGraphicsContext()\fR\& .br Bmp = \fBwxBitmap:wxBitmap()\fR\& .br X = number() .br Y = number() .br W = number() .br H = number() .br .RE .RE .RS .LP See external documentation\&. .RE .LP .B drawEllipse(This, X, Y, W, H) -> ok .br .RS .LP Types: .RS 3 This = \fBwxGraphicsContext()\fR\& .br X = number() .br Y = number() .br W = number() .br H = number() .br .RE .RE .RS .LP See external documentation\&. .RE .LP .B drawIcon(This, Icon, X, Y, W, H) -> ok .br .RS .LP Types: .RS 3 This = \fBwxGraphicsContext()\fR\& .br Icon = \fBwxIcon:wxIcon()\fR\& .br X = number() .br Y = number() .br W = number() .br H = number() .br .RE .RE .RS .LP See external documentation\&. .RE .LP .B drawLines(This, Points) -> ok .br .RS .LP Types: .RS 3 This = \fBwxGraphicsContext()\fR\& .br Points = [{X::float(), Y::float()}] .br .RE .RE .RS .LP Equivalent to \fBdrawLines(This, Points, [])\fR\&\&. .RE .LP .B drawLines(This, Points, Options::[Option]) -> ok .br .RS .LP Types: .RS 3 This = \fBwxGraphicsContext()\fR\& .br Points = [{X::float(), Y::float()}] .br Option = {fillStyle, \fBwx:wx_enum()\fR\&} .br .RE .RE .RS .LP See external documentation\&. .br FillStyle = integer .RE .LP .B drawPath(This, Path) -> ok .br .RS .LP Types: .RS 3 This = \fBwxGraphicsContext()\fR\& .br Path = \fBwxGraphicsPath:wxGraphicsPath()\fR\& .br .RE .RE .RS .LP Equivalent to \fBdrawPath(This, Path, [])\fR\&\&. .RE .LP .B drawPath(This, Path, Options::[Option]) -> ok .br .RS .LP Types: .RS 3 This = \fBwxGraphicsContext()\fR\& .br Path = \fBwxGraphicsPath:wxGraphicsPath()\fR\& .br Option = {fillStyle, \fBwx:wx_enum()\fR\&} .br .RE .RE .RS .LP See external documentation\&. .br FillStyle = integer .RE .LP .B drawRectangle(This, X, Y, W, H) -> ok .br .RS .LP Types: .RS 3 This = \fBwxGraphicsContext()\fR\& .br X = number() .br Y = number() .br W = number() .br H = number() .br .RE .RE .RS .LP See external documentation\&. .RE .LP .B drawRoundedRectangle(This, X, Y, W, H, Radius) -> ok .br .RS .LP Types: .RS 3 This = \fBwxGraphicsContext()\fR\& .br X = number() .br Y = number() .br W = number() .br H = number() .br Radius = number() .br .RE .RE .RS .LP See external documentation\&. .RE .LP .B drawText(This, Str, X, Y) -> ok .br .RS .LP Types: .RS 3 This = \fBwxGraphicsContext()\fR\& .br Str = \fBunicode:chardata()\fR\& .br X = number() .br Y = number() .br .RE .RE .RS .LP See external documentation\&. .RE .LP .B drawText(This, Str, X, Y, Angle) -> ok .br .RS .LP Types: .RS 3 This = \fBwxGraphicsContext()\fR\& .br Str = \fBunicode:chardata()\fR\& .br X = number() .br Y = number() .br Angle = number() .br .RE .RE .RS .LP See external documentation\&. .br Also: .br drawText(This, Str, X, Y, BackgroundBrush) -> \&'ok\&' when .br This::wxGraphicsContext(), Str::unicode:chardata(), X::number(), Y::number(), BackgroundBrush::wxGraphicsBrush:wxGraphicsBrush()\&. .br .RE .LP .B drawText(This, Str, X, Y, Angle, BackgroundBrush) -> ok .br .RS .LP Types: .RS 3 This = \fBwxGraphicsContext()\fR\& .br Str = \fBunicode:chardata()\fR\& .br X = number() .br Y = number() .br Angle = number() .br BackgroundBrush = \fBwxGraphicsBrush:wxGraphicsBrush()\fR\& .br .RE .RE .RS .LP See external documentation\&. .RE .LP .B fillPath(This, Path) -> ok .br .RS .LP Types: .RS 3 This = \fBwxGraphicsContext()\fR\& .br Path = \fBwxGraphicsPath:wxGraphicsPath()\fR\& .br .RE .RE .RS .LP Equivalent to \fBfillPath(This, Path, [])\fR\&\&. .RE .LP .B fillPath(This, Path, Options::[Option]) -> ok .br .RS .LP Types: .RS 3 This = \fBwxGraphicsContext()\fR\& .br Path = \fBwxGraphicsPath:wxGraphicsPath()\fR\& .br Option = {fillStyle, \fBwx:wx_enum()\fR\&} .br .RE .RE .RS .LP See external documentation\&. .br FillStyle = integer .RE .LP .B strokePath(This, Path) -> ok .br .RS .LP Types: .RS 3 This = \fBwxGraphicsContext()\fR\& .br Path = \fBwxGraphicsPath:wxGraphicsPath()\fR\& .br .RE .RE .RS .LP See external documentation\&. .RE .LP .B getPartialTextExtents(This, Text) -> [number()] .br .RS .LP Types: .RS 3 This = \fBwxGraphicsContext()\fR\& .br Text = \fBunicode:chardata()\fR\& .br .RE .RE .RS .LP See external documentation\&. .RE .LP .B getTextExtent(This, Text) -> Result .br .RS .LP Types: .RS 3 Result = {Width::number(), Height::number(), Descent::number(), ExternalLeading::number()} .br This = \fBwxGraphicsContext()\fR\& .br Text = \fBunicode:chardata()\fR\& .br .RE .RE .RS .LP See external documentation\&. .RE .LP .B rotate(This, Angle) -> ok .br .RS .LP Types: .RS 3 This = \fBwxGraphicsContext()\fR\& .br Angle = number() .br .RE .RE .RS .LP See external documentation\&. .RE .LP .B scale(This, XScale, YScale) -> ok .br .RS .LP Types: .RS 3 This = \fBwxGraphicsContext()\fR\& .br XScale = number() .br YScale = number() .br .RE .RE .RS .LP See external documentation\&. .RE .LP .B translate(This, Dx, Dy) -> ok .br .RS .LP Types: .RS 3 This = \fBwxGraphicsContext()\fR\& .br Dx = number() .br Dy = number() .br .RE .RE .RS .LP See external documentation\&. .RE .LP .B getTransform(This) -> \fBwxGraphicsMatrix:wxGraphicsMatrix()\fR\& .br .RS .LP Types: .RS 3 This = \fBwxGraphicsContext()\fR\& .br .RE .RE .RS .LP See external documentation\&. .RE .LP .B setTransform(This, Matrix) -> ok .br .RS .LP Types: .RS 3 This = \fBwxGraphicsContext()\fR\& .br Matrix = \fBwxGraphicsMatrix:wxGraphicsMatrix()\fR\& .br .RE .RE .RS .LP See external documentation\&. .RE .LP .B concatTransform(This, Matrix) -> ok .br .RS .LP Types: .RS 3 This = \fBwxGraphicsContext()\fR\& .br Matrix = \fBwxGraphicsMatrix:wxGraphicsMatrix()\fR\& .br .RE .RE .RS .LP See external documentation\&. .RE .LP .B setBrush(This, Brush) -> ok .br .RS .LP Types: .RS 3 This = \fBwxGraphicsContext()\fR\& .br Brush = \fBwxGraphicsBrush:wxGraphicsBrush()\fR\& | \fBwxBrush:wxBrush()\fR\& .br .RE .RE .RS .LP See external documentation\&. .RE .LP .B setFont(This, Font) -> ok .br .RS .LP Types: .RS 3 This = \fBwxGraphicsContext()\fR\& .br Font = \fBwxGraphicsFont:wxGraphicsFont()\fR\& .br .RE .RE .RS .LP See external documentation\&. .RE .LP .B setFont(This, Font, Colour) -> ok .br .RS .LP Types: .RS 3 This = \fBwxGraphicsContext()\fR\& .br Font = \fBwxFont:wxFont()\fR\& .br Colour = \fBwx:wx_colour()\fR\& .br .RE .RE .RS .LP See external documentation\&. .RE .LP .B setPen(This, Pen) -> ok .br .RS .LP Types: .RS 3 This = \fBwxGraphicsContext()\fR\& .br Pen = \fBwxPen:wxPen()\fR\& | \fBwxGraphicsPen:wxGraphicsPen()\fR\& .br .RE .RE .RS .LP See external documentation\&. .RE .LP .B strokeLine(This, X1, Y1, X2, Y2) -> ok .br .RS .LP Types: .RS 3 This = \fBwxGraphicsContext()\fR\& .br X1 = number() .br Y1 = number() .br X2 = number() .br Y2 = number() .br .RE .RE .RS .LP See external documentation\&. .RE .LP .B strokeLines(This, Points) -> ok .br .RS .LP Types: .RS 3 This = \fBwxGraphicsContext()\fR\& .br Points = [{X::float(), Y::float()}] .br .RE .RE .RS .LP See external documentation\&. .RE .LP .B destroy(This::\fBwxGraphicsContext()\fR\&) -> ok .br .RS .LP Destroys this object, do not use object again .RE .SH AUTHORS .LP .I <>