A button that opens a color palette popup.
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();new libui.UiColorButton()
Create a new UiColorButton object.
See properties implementation for generic details on how properties are implemented.
Return or set the currently selected color
Destroy and free the control.
Change the parent of the control
Arguments
- parent: UiControl - the new parent of the widget or null to detach it.
Return whether the control is a top level one or not.
Set the value of property color
Arguments
- value: Color - The new value for
colorproperty.
Return the value of property color
See events implementation for generic details on how events are implemented.
Emitted whenever property color change.
