mirror of
https://github.com/kusti8/proton-native.git
synced 2026-05-15 14:15:50 -06:00
21 lines
No EOL
366 B
JavaScript
21 lines
No EOL
366 B
JavaScript
var libui = require('libui-node');
|
|
|
|
libui.Ui.init();
|
|
|
|
var win = new libui.UiWindow('Example window', 640, 480, true);
|
|
var font = new libui.UiFontButton();
|
|
font.onChanged(function() {
|
|
console.log(font.getFont());
|
|
});
|
|
win.setChild(font);
|
|
win.onClosing(function() {
|
|
//libui.stopLoop();
|
|
});
|
|
|
|
win.show();
|
|
|
|
libui.Ui.mainSteps()
|
|
|
|
while (true) {
|
|
libui.Ui.mainStep(1)
|
|
} |