UiCommand
Struct · namespace System.Ui · Since 0.32
struct UiCommandOne 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.
Fields
Section titled “Fields”| 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 KindWhat it draws.
Rect RectThe rectangle (or the position) of it.
Radius
Section titled “Radius”int RadiusThe radius of the corners.
int WidthThe thickness of an outline.
Color ColorThe color.
int X0The 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 Y0The center of a circle, the start of a line, in 1/16 pixels.
int X1The end of a line, in 1/16 pixels.
int Y1The end of a line, in 1/16 pixels.
int SizeThe radius of a circle, the thickness of a line, in 1/16 pixels.
string TextThe text (UTF-8).
Image ImageThe image.
Source
Section titled “Source”Rect SourceThe part of the image that UiCommandKind.ImagePart draws.
Since 0.34