A button that opens a font chooser.
var libui = require('libui');
var win = new libui.UiWindow('UiFontButton example', 640, 480, true);
var widget = new libui.UiFontButton();
win.setChild(widget);
win.onClosing(function () {
win.close();
libui.stopLoop();
});
win.show();
libui.startLoop();new libui.UiFontButton()
Create a new UiFontButton object.
See properties implementation for generic details on how properties are implemented.
Return or set the currently selected font (see FontDescriptor
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.
Return the value of property font
See events implementation for generic details on how events are implemented.
Emitted whenever property font change.
