js: Fix some js examples usage of orient API

This was not tested. How to test js?
This commit is contained in:
Jean-Philippe Andre 2017-08-23 13:39:10 +09:00
parent 6a5216930c
commit ce534a75bd
5 changed files with 12 additions and 12 deletions

View File

@ -27,8 +27,8 @@ win.setContent(bigbox);
bx = new efl.Efl.Ui.Box(win); bx = new efl.Efl.Ui.Box(win);
bx.setHintWeight(1.0, 1.0); bx.setHintWeight(1.0, 1.0);
bx_orient = bx.cast("Efl.Orientation"); bx_orient = bx.cast("Efl.Ui.Direction");
bx_orient.setOrientation(efl.Efl.Orient.VERTICAL); bx_orient.setOrientation(efl.Efl.Ui.Dir.VERTICAL);
bigbox.packEnd(bx); bigbox.packEnd(bx);
bx.setVisible(true); bx.setVisible(true);
@ -47,8 +47,8 @@ bt.on('clicked', _clear_cb);
bx = new efl.Efl.Ui.Box(win) bx = new efl.Efl.Ui.Box(win)
bx.setHintWeight(1.0, 1.0); bx.setHintWeight(1.0, 1.0);
bx.setHintAlign(-1.0, -1.0); bx.setHintAlign(-1.0, -1.0);
bx_orient = bx.cast("Efl.Orientation"); bx_orient = bx.cast("Efl.Ui.Direction");
bx_orient.setOrientation(efl.Efl.Orient.HORIZONTAL); bx_orient.setDirection(efl.Efl.Ui.Dir.HORIZONTAL);
bigbox.packEnd(bx); bigbox.packEnd(bx);
bx.setVisible(true); bx.setVisible(true);

View File

@ -89,7 +89,7 @@ win.setContent(box);
box.setVisible(true); box.setVisible(true);
box_initial = new efl.Efl.Ui.Box(win); box_initial = new efl.Efl.Ui.Box(win);
box_initial.cast("Efl.Orientation").setOrientation(efl.Efl.Orient.HORIZONTAL); box_initial.cast("Efl.Ui.Direction").setDirection(efl.Efl.Ui.Dir.HORIZONTAL);
box_initial.setHintWeight(1.0, 0.0); box_initial.setHintWeight(1.0, 0.0);
box.packEnd(box_initial); box.packEnd(box_initial);
box_initial.setVisible(true); box_initial.setVisible(true);
@ -114,7 +114,7 @@ btn3.setVisible(true);
btn3.on('clicked', _btn_options_cb); btn3.on('clicked', _btn_options_cb);
box_gap = new efl.Efl.Ui.Box(win); box_gap = new efl.Efl.Ui.Box(win);
box_gap.cast("Efl.Orientation").setOrientation(efl.Efl.Orient.HORIZONTAL); box_gap.cast("Efl.Ui.Direction").setDirection(efl.Efl.Ui.Dir.HORIZONTAL);
box_gap.setHintWeight(1.0, 0.0); box_gap.setHintWeight(1.0, 0.0);
box.packEnd(box_gap); box.packEnd(box_gap);
box_gap.setVisible(true); box_gap.setVisible(true);
@ -151,7 +151,7 @@ icon_up.setIcon("arrow_up");
setIcon(up, icon_up); setIcon(up, icon_up);
box_inferior = new efl.Efl.Ui.Box(win); box_inferior = new efl.Efl.Ui.Box(win);
box_inferior.cast("Efl.Orientation").setOrientation(efl.Efl.Orient.HORIZONTAL); box_inferior.cast("Efl.Ui.Direction").setDirection(efl.Efl.Ui.Dir.HORIZONTAL);
box_inferior.setHintWeight(1.0, 1.0); box_inferior.setHintWeight(1.0, 1.0);
box_inferior.setHintAlign(-1.0, -1.0); box_inferior.setHintAlign(-1.0, -1.0);
box.packEnd(box_inferior); box.packEnd(box_inferior);

View File

@ -10,7 +10,7 @@ win.setText("Radio");
win.setAutohide(true); win.setAutohide(true);
bx = new efl.Efl.Ui.Box(win); bx = new efl.Efl.Ui.Box(win);
bx.cast("Efl.Orientation").setOrientation(efl.Efl.Orient.HORIZONTAL); bx.cast("Efl.Ui.Direction").setDirection(efl.Efl.Ui.Dir.HORIZONTAL);
bx.setHintWeight(1.0, 1.0); bx.setHintWeight(1.0, 1.0);
win.setContent(bx); win.setContent(bx);
bx.setVisible(true); bx.setVisible(true);

View File

@ -6,7 +6,7 @@ win.setText("Slider Example");
win.setAutohide(true); win.setAutohide(true);
bx = new efl.Efl.Ui.Box(win); bx = new efl.Efl.Ui.Box(win);
bx.cast("Efl.Orientation").setOrientation(efl.Efl.Orient.HORIZONTAL); bx.cast("Efl.Ui.Direction").setDirection(efl.Efl.Ui.Dir.HORIZONTAL);
bx.setHintWeight(1.0, 1.0); bx.setHintWeight(1.0, 1.0);
win.setContent(bx); win.setContent(bx);
bx.setVisible(true); bx.setVisible(true);
@ -66,7 +66,7 @@ sl.setVisible(true);
/* vertical with indicator format func */ /* vertical with indicator format func */
sl = new efl.Elm.Slider(win); sl = new efl.Elm.Slider(win);
sl.cast("Efl.Orientation").setOrientation(efl.Efl.Orient.VERTICAL); sl.cast("Efl.Ui.Direction").setDirection(efl.Efl.Ui.Dir.VERTICAL);
//indicator_format = function() //indicator_format = function()
// { // {
// indicator = new char[32]; // indicator = new char[32];

View File

@ -34,8 +34,8 @@ tweet_box.setHintAlign(-1.0, -1.0);
tweet_box.setPackPadding(0.0, 30.0, true); tweet_box.setPackPadding(0.0, 30.0, true);
box.packEnd(tweet_box); box.packEnd(tweet_box);
tweet_box_orient = tweet_box.cast("Efl.Orientation"); tweet_box_orient = tweet_box.cast("Efl.Ui.Direction");
tweet_box_orient.setOrientation(efl.Efl.Orient.VERTICAL); tweet_box_orient.setOrientation(efl.Efl.Ui.Dir.VERTICAL);
icon_array = new Array(); icon_array = new Array();