Atlas Engine
API Referencegraphite

UIStyleVariant

Optional style overrides for one state; setter methods support chaining.

Module: graphite

Optional style overrides for one state; setter methods support chaining.

Declaration

export class UIStyleVariant { ... }

Properties

paddingValue

paddingValue?: number;

cornerRadiusValue

cornerRadiusValue?: number;

borderWidthValue

borderWidthValue?: number;

backgroundColorValue

backgroundColorValue?: Color;

borderColorValue

borderColorValue?: Color;

foregroundColorValue

foregroundColorValue?: Color;

tintColorValue

tintColorValue?: Color;

fontValue

fontValue?: Font;

fontSizeValue

fontSizeValue?: number;

Methods

padding

padding(value: Size2d): UIStyleVariant;

cornerRadius

cornerRadius(value: number): UIStyleVariant;

borderWidth

borderWidth(value: number): UIStyleVariant;

backgroundColor

backgroundColor(value: Color): UIStyleVariant;

borderColor

borderColor(value: Color): UIStyleVariant;

foregroundColor

foregroundColor(value: Color): UIStyleVariant;

tintColor

tintColor(value: Color): UIStyleVariant;

font

font(value: Font): UIStyleVariant;

fontSize

fontSize(value: number): UIStyleVariant;

On this page