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: Float
Default size of all borders in pixels. Individual border sizes override this value.
borderTopSize: Float
Size of the top border in pixels. Set to -1 to use the default borderSize.
borderBottomSize: Float
Size of the bottom border in pixels. Set to -1 to use the default borderSize.
borderLeftSize: Float
Size of the left border in pixels. Set to -1 to use the default borderSize.
borderRightSize: Float
Size of the right border in pixels. Set to -1 to use the default borderSize.
borderColor: Color
Default color for all borders. Individual border colors override this value.
borderTopColor: Color
Color of the top border. Set to Color.NONE to use the default borderColor.
borderBottomColor: Color
Color of the bottom border. Set to Color.NONE to use the default borderColor.
borderLeftColor: Color
Color of the left border. Set to Color.NONE to use the default borderColor.
borderRightColor: Color
Color of the right border. Set to Color.NONE to use the default borderColor.
new(): Void
Create a new Border visual.
Private Members
computeColors(): Void
Compute and update the colors for each border segment. Uses individual border colors if set, otherwise falls back to borderColor.
computeVertices(): Void
Compute 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() |