Graphics

Graphics wrapper for components.

Constructors

this
this()

Creates a new graphics wrapper.

Members

Functions

finalizeGradientHorizontal
void finalizeGradientHorizontal(Point position, Size size, Paint fromPaint, Paint toPaint)

Finalizes horizontal gradient inputs for the graphics.

finalizeGradientVertical
void finalizeGradientVertical(Point position, Size size, Paint fromPaint, Paint toPaint)

Finalizes vertical gradient inputs for the graphics.

finalizePaint
void finalizePaint(Point position, Size size, Paint paint)

Finalizes paint inputs for the graphics.

renderSub
void renderSub(Point position, Size size)

Renders the sub rectangles for the graphics elements.

Properties

backgroundPaint
Paint backgroundPaint [@property getter]

Gets the background paint.

backgroundPaint
Paint backgroundPaint [@property setter]

Sets the background paint.

backgroundPicture
Picture backgroundPicture [@property getter]

Gets the background picture.

backgroundPicture
Picture backgroundPicture [@property setter]

Sets the background picture.

backgroundRect
RectangleShape backgroundRect [@property getter]

Gets the low-level background rectangle.

displayableBackgroundPicture
bool displayableBackgroundPicture [@property getter]

Gets a boolean determining whether the background picture is displayable.

displayableBackgroundRect
bool displayableBackgroundRect [@property getter]

Gets a boolean determining whether the background rectangle is displayable.

font
Font font [@property getter]

Gets the font.

font
Font font [@property setter]

Sets the font.

fontSize
uint fontSize [@property getter]

Gets the font size.

fontSize
uint fontSize [@property setter]

Sets the font size.

foregroundPaint
Paint foregroundPaint [@property getter]

Gets the foreground paint.

foregroundPaint
Paint foregroundPaint [@property setter]

Sets the foreground paint.

hasPosition
bool hasPosition [@property getter]

Gets a boolean determining whether the graphics has a position or not.

hasPosition
bool hasPosition [@property setter]

Sets a boolean determining whether the graphics has a position or not.

hasSize
bool hasSize [@property getter]

Gets a boolean determining whether the graphics has a size or not.

hasSize
bool hasSize [@property setter]

Sets a boolean determining whether the graphics has a size or not.

position
Point position [@property setter]

Sets the position of the graphics.

position
Point position [@property getter]

Gets the position of the graphics. Use hasPosition before using this.

size
Size size [@property setter]

Sets the size of the graphics.

size
Size size [@property getter]

Gets the size of the graphics. Use hasSize before using this.

Meta