summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_layout.eo
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-08-09 16:13:06 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-08-09 17:08:24 +0900
commitdee61f40973071bab093f2f81109a7f2d5ff4097 (patch)
treedca04a67936902fbaadd4e3add4abeb928d1cc3a /src/lib/elementary/efl_ui_layout.eo
parentf60c2083a463d6e134b6fb34b5d640fe36c25ad9 (diff)
elm: Cleanup theme and style set functions
This makes efl_ui_layout_theme_set() return a Theme_Apply error code. The type is now public as Efl.Ui.Theme.Apply. Ref T5329 Ref T5363
Diffstat (limited to 'src/lib/elementary/efl_ui_layout.eo')
-rw-r--r--src/lib/elementary/efl_ui_layout.eo20
1 files changed, 13 insertions, 7 deletions
diff --git a/src/lib/elementary/efl_ui_layout.eo b/src/lib/elementary/efl_ui_layout.eo
index 22c65fcfea..7c6519900f 100644
--- a/src/lib/elementary/efl_ui_layout.eo
+++ b/src/lib/elementary/efl_ui_layout.eo
@@ -4,7 +4,6 @@ class Efl.Ui.Layout (Elm.Widget, Efl.Part, Efl.Container, Efl.File,
4 Efl.Canvas.Layout_Group) 4 Efl.Canvas.Layout_Group)
5{ 5{
6 [[Elementary layout class]] 6 [[Elementary layout class]]
7 legacy_prefix: elm_layout;
8 methods { 7 methods {
9 @property theme { 8 @property theme {
10 [[The theme of this widget, defines which edje group will be used. 9 [[The theme of this widget, defines which edje group will be used.
@@ -19,20 +18,27 @@ class Efl.Ui.Layout (Elm.Widget, Efl.Part, Efl.Container, Efl.File,
19 ]] 18 ]]
20 set { 19 set {
21 [[Sets the edje group from the elementary theme that will be used 20 [[Sets the edje group from the elementary theme that will be used
22 as layout. 21 as layout. Note that $style will be the new style of this object,
23 22 as in an @Elm.Widget.style. As a consequence this function can
24 Note that $style will be the new style of this object, as in an 23 only be called during construction of the object, before finalize.
25 @Elm.Widget.style.
26 24
27 If this returns $false the widget is very likely to become 25 If this returns $false the widget is very likely to become
28 non-functioning. 26 non-functioning.
29 ]] 27 ]]
30 return: bool; [[$true on success, $false otherwise]] 28 return: Efl.Ui.Theme.Apply(0);
29 [[Whether the style was successfully applied or not, see
30 the values of @Efl.Ui.Theme.Apply for more information.]]
31 }
32 /*
33 TODO:
34 get {
35 [[Get information about the current theme in use.]]
31 } 36 }
37 */
32 values { 38 values {
33 klass: string; [[The class of the group, eg. "button".]] 39 klass: string; [[The class of the group, eg. "button".]]
34 group: string("base"); [[The group, eg. "base".]] 40 group: string("base"); [[The group, eg. "base".]]
35 style: string("default"); [[The style to used, eg "default".]] 41 style: string("default"); [[The style to use, eg "default".]]
36 } 42 }
37 } 43 }
38 } 44 }