LPPushStepButton:
Filter:
Classes (extension) | Launchpad

LPPushStepButton
ExtensionExtension

a Launchpad-GUI-Element (LPView subclass)
Location: NOT INSTALLED!

Description

A Lauchpad-GUI-Element (LPView subclass) which is a combination of the LPPushButton and the LPButton.

Class Methods

.new

creates a new LPView need to be initialized further for use.

Arguments:

range

A LPRange you will get from Lauchpad.

onfront

A function which will be called when the view put on the front of the Lauchpad.

onhide

A function which will be called when the view is removed from the Lauchpad.

Returns:

a LPView

Inherited class methods

Instance Methods

.onPushLED

A LPLED that describes the color the state of push.

.onPushFunction

Function called when the Button is pushed.

.onReleaseFunction

Function called when the Button is released.

.mode

Instance variable that defines how a button push affects the counting through the states. The following modes can be set through by using a symbol

\forward \backward \stuck \reset

Forward counts upwards. Backward counts downwards. Stuck does not change the state. Reset sets and keeps the state at 0.

.states

The Array of LPLEDs describes the color of the different states of the LPButton.

.action

A function that is called when the Button on the Launchpad is pushed. The function gets as first argument the LPButton itself.

.front

put the LPView onto the front of the lauchpad. (like open a window).

Arguments:

... args

arguments which will forwarded to the onfront-function.

.hide

remove the LPView from the Lauchpad. (like close a window)

Arguments:

updateLEDs

bolean to decide if the LEDs realy have to be updated. this might be helpful when a view is removed and another view will called immediately after this which will cover the same range.

... args

arguments which will forwarded to the onhide-function.

.onfront

Function that is called on front.

.onhide

Function that is called on hide.

.value

State of the LPView usually a integer.

Inherited instance methods

Examples