GPU T2 Box Draw Call

This struct contains the necessary information to draw a box onto the GPU T2.

Properties

color : Struct<Color>

The fill color of the rectangle, or the tint of the image drawn.

Details
Flags RuntimeSync RuntimeParallel

Display Name

Color

hasCenteredOrigin : Bool

If set to false, the position will give the left upper corner of the box and rotation will happen around this point. If set to true, the position will give the center point of box and the rotation will happen around this center point.

Details
Flags RuntimeSync RuntimeParallel

Display Name

Has Centered Origin

hasOutline : Bool

True if the box has a colorful (inward) outline.

Details
Flags RuntimeSync RuntimeParallel

Display Name

Has Outline

horizontalTiling : Bool

True if the image should be tiled horizontally.

Details
Flags RuntimeSync RuntimeParallel

Display Name

Horizontal Tiling

image : String

If not empty, should be a image reference to the image that should be drawn inside the rectangle.

Details
Flags RuntimeSync RuntimeParallel

Display Name

Image

imageSize : Struct<Vector2D>

The size of the internal image drawn, necessary for proper scaling, antialising and tiling.

Details
Flags RuntimeSync RuntimeParallel

Display Name

Image Size

isBorder : Bool

If true, the margin values provide a way to specify a fixed sized border thicknesses the boxes images will use (use the image as 9-patch).

Details
Flags RuntimeSync RuntimeParallel

Display Name

Is Border

isRounded : Bool

True if the box can have rounded borders.

Details
Flags RuntimeSync RuntimeParallel

Display Name

Is Rounded

margin : Struct<Margin>

The margin values of the 9-patch (border).

Details
Flags RuntimeSync RuntimeParallel

Display Name

Margin

outlineColor : Struct<Color>

The color of the outline around the box.

Details
Flags RuntimeSync RuntimeParallel

Display Name

Outline Color

outlineThickness : Float

The uniform thickness of the outline around the box.

Details
Flags RuntimeSync RuntimeParallel

Display Name

Outline Thickness

position : Struct<Vector2D>

The drawn local position of the rectangle.

Details
Flags RuntimeSync RuntimeParallel

Display Name

Position

radii : Struct<Vector4>

The rounded border radii used if isRounded is set to true. The Vector4 corner mapping in order: Top Left, Top Right, Bottom Right & Bottom Left.

Details
Flags RuntimeSync RuntimeParallel

Display Name

Radii

rotation : Float

The draw rotation of the rectangle.

Details
Flags RuntimeSync RuntimeParallel

Display Name

Rotation

size : Struct<Vector2D>

The drawn size of the rectangle.

Details
Flags RuntimeSync RuntimeParallel

Display Name

Size

verticalTiling : Bool

True if the image should be tiled vertically.

Details
Flags RuntimeSync RuntimeParallel

Display Name

Vertical Tiling