Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UIMenuCheckboxItem

Hierarchy

Index

Constructors

constructor

  • new UIMenuCheckboxItem(text: string, check?: boolean, description?: string): UIMenuCheckboxItem

Properties

backColor

backColor: Color = UIMenuItem.defaultBackColor

checked

checked: boolean = false

description

description: string

enabled

enabled: boolean

foreColor

foreColor: Color = UIMenuItem.defaultForeColor

highlightedBackColor

highlightedBackColor: Color = UIMenuItem.defaultHighlightedBackColor

highlightedForeColor

highlightedForeColor: Color = UIMenuItem.defaultHighlightedForeColor

hovered

hovered: boolean

id

id: string = uuidv4()

leftBadge

leftBadge: BadgeStyle = BadgeStyle.None

offset

offset: Point

parent

parent: Menu

rightBadge

rightBadge: BadgeStyle = BadgeStyle.None

rightLabel

rightLabel: string = ""

selected

selected: boolean

Static defaultBackColor

defaultBackColor: Color = Color.empty

Static defaultForeColor

defaultForeColor: Color = Color.whiteSmoke

Static defaultHighlightedBackColor

defaultHighlightedBackColor: Color = Color.white

Static defaultHighlightedForeColor

defaultHighlightedForeColor: Color = Color.black

Accessors

Text

  • get Text(): string
  • set Text(v: string): void

checkedChanged

Methods

addEvent

  • addEvent(event: string, ...args: any[]): void

badgeToColor

badgeToSpriteLib

badgeToSpriteName

  • badgeToSpriteName(badge: BadgeStyle, selected: boolean): string

draw

  • draw(): void

fireEvent

  • fireEvent(): void

isBagdeWhiteSprite

setLeftBadge

setRightBadge

setRightLabel

  • setRightLabel(text: string): this

setVerticalPosition

  • setVerticalPosition(y: number): void

Generated using TypeDoc