Class UIElementStateStyle

Specific texture and text color used in a particular UI element style.

Constructors

Properties

_contentOffset: RectOffset
_font: Font
_shape: Shape
_textColor: Color
_texture: Image
_tintColor: Color

Accessors

  • get contentOffset(): RectOffset
  • Additional offset to the content, that doesn't effect the bounds. Controls like UIButton use this value to apply an offset to it's icon and text when the button is in active state.

    Returns RectOffset

  • set contentOffset(value): void
  • Parameters

    Returns void

  • get font(): Font
  • Font to use for all text within the UI element when this state state. If empty, default style font is used.

    Returns Font

  • set font(value): void
  • Parameters

    Returns void

  • get shape(): Shape
  • Returns Shape

  • set shape(value): void
  • Parameters

    Returns void

  • get texture(): Image
  • Returns Image

  • set texture(value): void
  • Parameters

    Returns void

  • get tintColor(): Color
  • A tint color that will be used by the element.

    Returns Color

  • set tintColor(value): void
  • Parameters

    Returns void

Methods