wxGraphicsContext.3erl

Langue: en

Autres versions - même langue

Version: 354868 (ubuntu - 24/10/10)

Section: 3 (Bibliothèques de fonctions)

NAME

wxGraphicsContext - See external documentation: wxGraphicsContext.

DESCRIPTION

See external documentation: wxGraphicsContext.

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

DATA TYPES



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


EXPORTS

create() -> wxGraphicsContext()


See external documentation.

create(Dc::wxWindowDC() (see module wxWindowDC) | wxWindow() (see module wxWindow)) -> wxGraphicsContext()


See external documentation.

createPen(This::wxGraphicsContext(), Pen::wxPen() (see module wxPen)) -> wxGraphicsPen() (see module wxGraphicsPen)


See external documentation.

createBrush(This::wxGraphicsContext(), Brush::wxBrush() (see module wxBrush)) -> wxGraphicsBrush() (see module wxGraphicsBrush)


See external documentation.

createRadialGradientBrush(This::wxGraphicsContext(), Xo::float(), Yo::float(), Xc::float(), Yc::float(), Radius::float(), OColor::colour() (see module wx), CColor::colour() (see module wx)) -> wxGraphicsBrush() (see module wxGraphicsBrush)


See external documentation.

createLinearGradientBrush(This::wxGraphicsContext(), X1::float(), Y1::float(), X2::float(), Y2::float(), C1::colour() (see module wx), C2::colour() (see module wx)) -> wxGraphicsBrush() (see module wxGraphicsBrush)


See external documentation.

createFont(This::wxGraphicsContext(), Font::wxFont() (see module wxFont)) -> wxGraphicsFont() (see module wxGraphicsFont)


Equivalent to createFont(This, Font, []).

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

Types
Option = {col, colour() (see module wx)}

See external documentation.

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


Equivalent to createMatrix(This, []).

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

Types
Option = {a, float()} | {b, float()} | {c, float()} | {d, float()} | {tx, float()} | {ty, float()}

See external documentation.

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


See external documentation.

clip(This::wxGraphicsContext(), Region::wxRegion() (see module wxRegion)) -> ok


See external documentation.

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


See external documentation.

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


See external documentation.

drawBitmap(This::wxGraphicsContext(), Bmp::wxBitmap() (see module wxBitmap), X::float(), Y::float(), W::float(), H::float()) -> ok


See external documentation.

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


See external documentation.

drawIcon(This::wxGraphicsContext(), Icon::wxIcon() (see module wxIcon), X::float(), Y::float(), W::float(), H::float()) -> ok


See external documentation.

drawLines(This::wxGraphicsContext(), N::integer(), Points::{X::float(), Y::float()}) -> ok


Equivalent to drawLines(This, N, Points, []).

drawLines(This::wxGraphicsContext(), N::integer(), Points::{X::float(), Y::float()}, Options::[Option]) -> ok

Types
Option = {fillStyle, integer()}

See external documentation.

drawPath(This::wxGraphicsContext(), Path::wxGraphicsPath() (see module wxGraphicsPath)) -> ok


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

drawPath(This::wxGraphicsContext(), Path::wxGraphicsPath() (see module wxGraphicsPath), Options::[Option]) -> ok

Types
Option = {fillStyle, integer()}

See external documentation.

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


See external documentation.

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


See external documentation.

drawText(This::wxGraphicsContext(), Str::string(), X::float(), Y::float()) -> ok


See external documentation.

drawText(This::wxGraphicsContext(), Str::string(), X::float(), Y::float(), X::float() | term()) -> ok


See external documentation. .br Alternatives:
drawText(This::wxGraphicsContext(), Str::string(), X::float(), Y::float(), Angle::float()) -> ok
drawText(This::wxGraphicsContext(), Str::string(), X::float(), Y::float(), BackgroundBrush::wxGraphicsBrush:wxGraphicsBrush()) -> ok

drawText(This::wxGraphicsContext(), Str::string(), X::float(), Y::float(), Angle::float(), BackgroundBrush::wxGraphicsBrush() (see module wxGraphicsBrush)) -> ok


See external documentation.

fillPath(This::wxGraphicsContext(), Path::wxGraphicsPath() (see module wxGraphicsPath)) -> ok


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

fillPath(This::wxGraphicsContext(), Path::wxGraphicsPath() (see module wxGraphicsPath), Options::[Option]) -> ok

Types
Option = {fillStyle, integer()}

See external documentation.

strokePath(This::wxGraphicsContext(), Path::wxGraphicsPath() (see module wxGraphicsPath)) -> ok


See external documentation.

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


See external documentation.

getPartialTextExtents(This::wxGraphicsContext(), Text::string(), Widths::[float()]) -> ok


See external documentation.

getTextExtent(This::wxGraphicsContext(), Text::string()) -> {Width::float(), Height::float(), Descent::float(), ExternalLeading::float()}


See external documentation.

rotate(This::wxGraphicsContext(), Angle::float()) -> ok


See external documentation.

scale(This::wxGraphicsContext(), XScale::float(), YScale::float()) -> ok


See external documentation.

translate(This::wxGraphicsContext(), Dx::float(), Dy::float()) -> ok


See external documentation.

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


See external documentation.

setTransform(This::wxGraphicsContext(), Matrix::wxGraphicsMatrix() (see module wxGraphicsMatrix)) -> ok


See external documentation.

concatTransform(This::wxGraphicsContext(), Matrix::wxGraphicsMatrix() (see module wxGraphicsMatrix)) -> ok


See external documentation.

setBrush(This::wxGraphicsContext(), Brush::wxGraphicsBrush() (see module wxGraphicsBrush) | wxBrush() (see module wxBrush)) -> ok


See external documentation.

setFont(This::wxGraphicsContext(), Font::wxGraphicsFont() (see module wxGraphicsFont)) -> ok


See external documentation.

setFont(This::wxGraphicsContext(), Font::wxFont() (see module wxFont), Colour::colour() (see module wx)) -> ok


See external documentation.

setPen(This::wxGraphicsContext(), Pen::wxPen() (see module wxPen) | wxGraphicsPen() (see module wxGraphicsPen)) -> ok


See external documentation.

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


See external documentation.

strokeLines(This::wxGraphicsContext(), N::integer(), Points::{X::float(), Y::float()}) -> ok


See external documentation.

strokeLines(This::wxGraphicsContext(), N::integer(), BeginPoints::{X::float(), Y::float()}, EndPoints::{X::float(), Y::float()}) -> ok


See external documentation.

AUTHORS

<>