Skip to content
CShift0.45

UiCommand

Struct · namespace System.Ui · Since 0.32

struct UiCommand

One drawing operation of a frame, recorded when a Ui draws with commands instead of pixels (Ui.BeginCommands, Ui.Commands): for windows that draw themselves (the one of AmigaOS draws with graphics.library). Which fields count depends on Kind.

Name Description
Kind What it draws.
Rect The rectangle (or the position) of it.
Radius The radius of the corners.
Width The thickness of an outline.
Color The color.
X0 The center of a circle, the start of a line: in 1/16 pixels (integers, so that a renderer needs no floating point, which is software on a 68000).
Y0 The center of a circle, the start of a line, in 1/16 pixels.
X1 The end of a line, in 1/16 pixels.
Y1 The end of a line, in 1/16 pixels.
Size The radius of a circle, the thickness of a line, in 1/16 pixels.
Text The text (UTF-8).
Image The image.
Source The part of the image that UiCommandKind.ImagePart draws.
UiCommandKind Kind

What it draws.

Rect Rect

The rectangle (or the position) of it.

int Radius

The radius of the corners.

int Width

The thickness of an outline.

Color Color

The color.

int X0

The center of a circle, the start of a line: in 1/16 pixels (integers, so that a renderer needs no floating point, which is software on a 68000).

int Y0

The center of a circle, the start of a line, in 1/16 pixels.

int X1

The end of a line, in 1/16 pixels.

int Y1

The end of a line, in 1/16 pixels.

int Size

The radius of a circle, the thickness of a line, in 1/16 pixels.

string Text

The text (UTF-8).

Image Image

The image.

Rect Source

The part of the image that UiCommandKind.ImagePart draws.

Since 0.34