Border
A rectangle visual that display a border
Instance Members
Position of the border relative to the rectangle bounds. Can be INSIDE, OUTSIDE, or CENTERED.
borderSize: FloatDefault size of all borders in pixels. Individual border sizes override this value.
borderTopSize: FloatSize of the top border in pixels. Set to -1 to use the default borderSize.
borderBottomSize: FloatSize of the bottom border in pixels. Set to -1 to use the default borderSize.
borderLeftSize: FloatSize of the left border in pixels. Set to -1 to use the default borderSize.
borderRightSize: FloatSize of the right border in pixels. Set to -1 to use the default borderSize.
borderColor: ColorDefault color for all borders. Individual border colors override this value.
borderTopColor: ColorColor of the top border. Set to Color.NONE to use the default borderColor.
borderBottomColor: ColorColor of the bottom border. Set to Color.NONE to use the default borderColor.
borderLeftColor: ColorColor of the left border. Set to Color.NONE to use the default borderColor.
borderRightColor: ColorColor of the right border. Set to Color.NONE to use the default borderColor.
new(): VoidCreate a new Border visual.
Private Members
computeColors(): VoidCompute and update the colors for each border segment. Uses individual border colors if set, otherwise falls back to borderColor.
computeVertices(): VoidCompute and update the vertices for the border mesh. Takes into account border sizes and position (inside, outside, centered).
Metadata
| Name | Parameters |
|---|---|
:build |
ceramic.macros.EntityMacro.buildForCompletion() |
:autoBuild |
ceramic.macros.EntityMacro.buildForCompletion() |
:build |
tracker.macros.EventsMacro.build() |
:autoBuild |
tracker.macros.EventsMacro.build() |