Class: Control

Control

Control

new GOWN.Control()

Base for all UI controls. Based on pixi-DisplayContainer that supports adding children, so all controls are container.

Extends

  • PIXI.Container

Members

enabledBoolean

Enables/Disables the control. (not implemented yet)

Methods

mousePos(){PIXI.Point}

Get the local mouse position from PIXI.InteractionData
Returns:
Type Description
PIXI.Point

setTheme(theme)

Change the theme (every control can have a theme, even if it does not inherit Skinable, e.g. if there is only some color in the skin that will be taken or if it has some skinable components as children)
Name Type Description
theme GOWN.Theme the new theme