[][src]Module sciter::graphics

Sciter's platform independent graphics interface.

Used in custom behaviors / event handlers to draw on element's surface in native code. Essentially this mimics Graphics scripting object as close as possible.

Structs

Graphics

Graphics object. Represents graphic surface of the element.

Image

Graphics image object.

Path

Graphics path object.

State

A graphics state guard.

Text

Text layout object.

TextMetrics

Metrics of a text layout object.

Enums

DRAW_PATH

Path drawing mode.

GRAPHIN_RESULT

Type of the result value for Sciter Graphics functions.

LINE_CAP

Line drawing cap mode.

LINE_JOIN

Line drawing join mode.

SaveImageEncoding

Supported image encodings for Image.save().

Functions

rgb

Construct a color value (in RGBA form) from the red, green and blue components.

rgba

Construct a color value (in RGBA form) from the red, green, blue and opacity components.

Type Definitions

Angle

Angle type (in radians).

Color

Color type in the RGBA form.

Dim

Dimension type.

HGFX

Graphics native handle.

Pos

Position on a surface in (x, y) form.

Result

A specialized Result type for graphics operations.

Size

Size in (width, height) form.