2014-12-09 10:41:16 -08:00
|
|
|
|
2016-07-26 14:21:02 -07:00
|
|
|
var efl = require('efl');
|
2014-12-09 10:41:16 -08:00
|
|
|
|
2017-05-18 17:23:58 -07:00
|
|
|
win = new efl.Efl.Ui.Win(null, "Efl JS Example", efl.Efl.Ui.Win.Type.BASIC, "hw");
|
2016-07-26 14:21:02 -07:00
|
|
|
win.setText("Bg Plain");
|
2014-12-09 10:41:16 -08:00
|
|
|
win.setAutohide(true);
|
|
|
|
|
2016-07-26 14:21:02 -07:00
|
|
|
bg = new efl.Elm.Bg(win);
|
2019-12-24 06:23:14 -08:00
|
|
|
bg.setColor(255, 0,0,255);
|
2016-07-26 14:21:02 -07:00
|
|
|
bg.setHintWeight(1.0, 1.0);
|
2016-12-07 09:49:43 -08:00
|
|
|
win.setContent(bg);
|
2014-12-09 10:41:16 -08:00
|
|
|
bg.setVisible(true);
|
|
|
|
|
|
|
|
win.setSize(320,320);
|
|
|
|
win.setVisible(true);
|
|
|
|
|