Skip to content

Latest commit

 

History

History
106 lines (45 loc) · 1.24 KB

File metadata and controls

106 lines (45 loc) · 1.24 KB

ColorButton

A button that opens a color palette popup.

UiColorButton example

var libui = require('libui');

var win = new libui.UiWindow('UiColorButton example', 640, 480, true);

var widget = new libui.UiColorButton();
win.setChild(widget);

win.onClosing(function () {
	win.close();
	libui.stopLoop();
});

win.show();

libui.startLoop();

Constructor

new libui.UiColorButton()

Create a new UiColorButton object.


Properties

See properties implementation for generic details on how properties are implemented.

color: Color

Return or set the currently selected color


Methods

destroy

Destroy and free the control.

setParent

Change the parent of the control

Arguments

  • parent: UiControl - the new parent of the widget or null to detach it.

toplevel

Return whether the control is a top level one or not.

setColor

Set the value of property color

Arguments

  • value: Color - The new value for color property.

getColor

Return the value of property color


Events

See events implementation for generic details on how events are implemented.

onChanged

Emitted whenever property color change.