2017-08-07 19:48:31 -07:00
|
|
|
class Efl.Ui.Layout (Elm.Widget, Efl.Part, Efl.Container, Efl.File,
|
2017-08-07 21:28:50 -07:00
|
|
|
Efl.Ui.View, Efl.Ui.Model.Connect, Efl.Ui.Model.Factory.Connect,
|
2017-12-04 22:29:07 -08:00
|
|
|
Efl.Layout.Calc, Efl.Layout.Signal,
|
2017-12-04 23:00:08 -08:00
|
|
|
Efl.Layout.Group)
|
2014-03-16 06:43:07 -07:00
|
|
|
{
|
2016-11-21 08:54:12 -08:00
|
|
|
[[Elementary layout class]]
|
2015-05-07 09:32:53 -07:00
|
|
|
methods {
|
|
|
|
@property theme {
|
2017-08-02 19:28:29 -07:00
|
|
|
[[The theme of this widget, defines which edje group will be used.
|
|
|
|
|
|
|
|
Based on the type of widget ($klass), a given $group and a
|
|
|
|
$style (usually "default"), the edje group name will be formed
|
|
|
|
for this object.
|
2017-08-08 23:40:44 -07:00
|
|
|
|
|
|
|
Widgets that inherit from this class will call this function
|
|
|
|
automatically so it should not be called by applications, unless
|
|
|
|
you are dealing directly with a @Efl.Ui.Layout object.
|
2017-08-02 19:28:29 -07:00
|
|
|
]]
|
2014-03-16 06:43:07 -07:00
|
|
|
set {
|
2017-08-02 19:28:29 -07:00
|
|
|
[[Sets the edje group from the elementary theme that will be used
|
2017-08-09 00:13:06 -07:00
|
|
|
as layout. Note that $style will be the new style of this object,
|
|
|
|
as in an @Elm.Widget.style. As a consequence this function can
|
|
|
|
only be called during construction of the object, before finalize.
|
2017-08-02 19:28:29 -07:00
|
|
|
|
|
|
|
If this returns $false the widget is very likely to become
|
|
|
|
non-functioning.
|
2015-08-13 06:21:49 -07:00
|
|
|
]]
|
2017-08-09 00:13:06 -07:00
|
|
|
return: Efl.Ui.Theme.Apply(0);
|
|
|
|
[[Whether the style was successfully applied or not, see
|
|
|
|
the values of @Efl.Ui.Theme.Apply for more information.]]
|
|
|
|
}
|
|
|
|
/*
|
|
|
|
TODO:
|
|
|
|
get {
|
|
|
|
[[Get information about the current theme in use.]]
|
2014-03-16 06:43:07 -07:00
|
|
|
}
|
2017-08-09 00:13:06 -07:00
|
|
|
*/
|
2014-03-16 06:43:07 -07:00
|
|
|
values {
|
2017-08-02 19:28:29 -07:00
|
|
|
klass: string; [[The class of the group, eg. "button".]]
|
|
|
|
group: string("base"); [[The group, eg. "base".]]
|
2017-08-09 00:13:06 -07:00
|
|
|
style: string("default"); [[The style to use, eg "default".]]
|
2014-03-16 06:43:07 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
implements {
|
2014-06-20 02:47:39 -07:00
|
|
|
class.constructor;
|
2016-08-10 07:23:04 -07:00
|
|
|
Efl.Object.constructor;
|
2017-11-14 03:38:49 -08:00
|
|
|
Efl.Object.finalize;
|
2016-12-27 10:15:41 -08:00
|
|
|
Efl.File.file { get; set; }
|
|
|
|
Efl.File.mmap { get; set; }
|
2016-06-17 01:26:08 -07:00
|
|
|
Efl.Canvas.Group.group_calculate;
|
2017-12-04 22:29:07 -08:00
|
|
|
Efl.Layout.Calc.calc_freeze;
|
|
|
|
Efl.Layout.Calc.calc_thaw;
|
2017-12-04 21:39:20 -08:00
|
|
|
Efl.Layout.Signal.signal_callback_add;
|
|
|
|
Efl.Layout.Signal.signal_callback_del;
|
|
|
|
Efl.Layout.Signal.signal_emit;
|
|
|
|
Efl.Layout.Signal.message_send;
|
|
|
|
Efl.Layout.Signal.signal_process;
|
2017-12-04 23:00:08 -08:00
|
|
|
Efl.Layout.Group.group_data { get; }
|
|
|
|
Efl.Layout.Group.group_size_min { get; }
|
|
|
|
Efl.Layout.Group.group_size_max { get; }
|
2017-08-23 04:41:37 -07:00
|
|
|
Elm.Widget.widget_sub_object_add;
|
2015-04-22 04:33:10 -07:00
|
|
|
Elm.Widget.theme_apply;
|
2017-08-23 22:06:32 -07:00
|
|
|
Elm.Widget.on_disabled_update;
|
2017-08-23 04:41:37 -07:00
|
|
|
Elm.Widget.widget_sub_object_del;
|
2017-08-30 23:20:33 -07:00
|
|
|
Elm.Widget.on_focus_update;
|
2016-04-19 22:55:26 -07:00
|
|
|
Efl.Container.content_count;
|
2016-04-25 03:53:51 -07:00
|
|
|
Efl.Container.content_remove;
|
2016-04-19 22:55:26 -07:00
|
|
|
Efl.Container.content_iterate;
|
2016-05-24 04:40:18 -07:00
|
|
|
Efl.Part.part;
|
2017-01-31 12:17:58 -08:00
|
|
|
Efl.Ui.View.model { get; set; }
|
|
|
|
Efl.Ui.Model.Connect.connect;
|
|
|
|
Efl.Ui.Model.Factory.Connect.connect;
|
2014-03-16 06:43:07 -07:00
|
|
|
}
|
|
|
|
events {
|
2016-11-21 08:54:12 -08:00
|
|
|
theme,changed; [[Called when theme changed]]
|
2014-03-16 06:43:07 -07:00
|
|
|
}
|
|
|
|
}
|