Class GenericClickHelper

An aggregate helper class for widgets that can be clicked, in the general sense that the widget is/has a button or is clickable. This does not mean that the widget is only clickable with a pointer; it could also be "clicked" with a keyboard.

Keeps its current click state as well as its last click state, and whether the last click state change resulted in an actual click.

Hierarchy

Implements

Constructors

Properties

clickState: ClickState = ClickState.Released
clickStateChanged: boolean = false
lastClickState: ClickState = ClickState.Released
wasClick: boolean = false
widget: Widget

Methods

  • Reset the click helper to its default state. Only call this if absolutely necessary, such as when the owner Widget is re-activated (this way, hover states don't linger when a Widget is disabled).

    Returns void

Generated using TypeDoc