A simple button with simple premade 4 states. Based on openfl.display.SimpleButton design.

Constructor

new (w:Int, h:Int, idle:Object, hover:Object, press:Object, ?disabled:Object, ?parent:Object, ?shape:Collider)

Variables

@:value(true)enabled:Bool = true

Button availability state. If false, does not Interact with mouse and showns disabled state.

Methods

Inherited Variables

Defined by EventInteractive

@:value(new EventSignal1())onCheckEvent:EventSignal1<Event> = new EventSignal1()

@:value(new EventSignal1())onClickEvent:EventSignal1<Event> = new EventSignal1()

@:value(new EventSignal1())onFocusEvent:EventSignal1<Event> = new EventSignal1()

@:value(new EventSignal1())onFocusLostEvent:EventSignal1<Event> = new EventSignal1()

@:value(new EventSignal1())onKeyDownEvent:EventSignal1<Event> = new EventSignal1()

@:value(new EventSignal1())onKeyUpEvent:EventSignal1<Event> = new EventSignal1()

@:value(new EventSignal1())onMoveEvent:EventSignal1<Event> = new EventSignal1()

@:value(new EventSignal1())onOutEvent:EventSignal1<Event> = new EventSignal1()

@:value(new EventSignal1())onOverEvent:EventSignal1<Event> = new EventSignal1()

@:value(new EventSignal1())onPushEvent:EventSignal1<Event> = new EventSignal1()

@:value(new EventSignal1())onReleaseEvent:EventSignal1<Event> = new EventSignal1()

@:value(new EventSignal1())onReleaseOutsideEvent:EventSignal1<Event> = new EventSignal1()

@:value(new EventSignal1())onTextInputEvent:EventSignal1<Event> = new EventSignal1()

@:value(new EventSignal1())onWheelEvent:EventSignal1<Event> = new EventSignal1()

Inherited Methods