LPColorArea:
Filter:
Classes (extension) | Launchpad

LPColorArea
ExtensionExtension

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

Description

A Lauchpad-GUI-Element (LPView subclass) which has a color but no action.

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

.led

a LPLED which defines the color of the area.

.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.

Inherited instance methods

Examples

Creates a LPColorArea of 4 buttons in the third row of the Launchpad.