2018-04-18 10:03:11 -07:00
|
|
|
import efl_ui;
|
|
|
|
|
2019-01-18 05:22:23 -08:00
|
|
|
class Efl.Ui.Layout extends Efl.Ui.Widget implements Efl.Container, Efl.File,
|
2019-01-31 03:59:19 -08:00
|
|
|
Efl.Ui.View, Efl.Ui.Property_Bind, Efl.Ui.Factory_Bind,
|
2017-12-04 22:29:07 -08:00
|
|
|
Efl.Layout.Calc, Efl.Layout.Signal,
|
2019-01-18 05:22:23 -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
|
2018-11-16 01:45:05 -08:00
|
|
|
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,
|
2018-01-07 20:55:35 -08:00
|
|
|
as in an @Efl.Ui.Widget.style. As a consequence this function can
|
2017-08-09 00:13:06 -07:00
|
|
|
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
|
|
|
]]
|
2018-11-19 20:56:37 -08:00
|
|
|
return: Efl.Ui.Theme_Apply_Result(0);
|
2017-08-09 00:13:06 -07:00
|
|
|
[[Whether the style was successfully applied or not, see
|
2018-11-19 20:56:37 -08:00
|
|
|
the values of @Efl.Ui.Theme_Apply_Result for more information.]]
|
2017-08-09 00:13:06 -07:00
|
|
|
}
|
|
|
|
/*
|
|
|
|
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 {
|
2018-06-26 09:21:54 -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;
|
2019-01-23 12:39:43 -08:00
|
|
|
Efl.Layout.Calc.calc_auto_update_hints { get; set; }
|
|
|
|
Efl.Layout.Calc.calc_size_min;
|
|
|
|
Efl.Layout.Calc.calc_parts_extends;
|
|
|
|
Efl.Layout.Calc.calc_force;
|
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; }
|
2018-01-15 00:27:10 -08:00
|
|
|
Efl.Layout.Group.part_exist { get; }
|
2018-01-07 20:55:35 -08:00
|
|
|
Efl.Ui.Widget.widget_sub_object_add;
|
|
|
|
Efl.Ui.Widget.theme_apply;
|
|
|
|
Efl.Ui.Widget.on_disabled_update;
|
|
|
|
Efl.Ui.Widget.widget_sub_object_del;
|
2018-01-19 00:25:47 -08:00
|
|
|
Efl.Ui.Focus.Object.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;
|
2018-05-03 16:34:17 -07:00
|
|
|
Efl.Part.part_get;
|
2017-01-31 12:17:58 -08:00
|
|
|
Efl.Ui.View.model { get; set; }
|
2019-01-31 03:59:19 -08:00
|
|
|
Efl.Ui.Property_Bind.property_bind;
|
|
|
|
Efl.Ui.Factory_Bind.factory_bind;
|
2014-03-16 06:43:07 -07:00
|
|
|
}
|
|
|
|
events {
|
efl: Add missing event types
Summary:
All events must have a type now, otherwise bindings don't know how to handle
the event_info field.
Most of the missing event types were actually "void" (no event_info present).
Some struct definitions had to be moved to eo instead of h files, so they
are available to bindings. Some have not, and are marked with FIXME.
Some namespaces have been fixed (like Efl_Event_Cb -> Efl.Event_Cb).
In general, there are hundreds of changed files, but mostly to add a type which
was not present before, so there's no harm done.
Also, A lot of FIXMEs have been added which should be, like, fixed.
For example, some events can send different types of event_info, which is
very inconvenient (and error prone).
Test Plan: make with c# bindings works, make check and make examples work too.
Reviewers: cedric, q66, lauromoura
Subscribers: zmike
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D6169
2018-05-11 08:20:40 -07:00
|
|
|
theme,changed: void; [[Called when theme changed]]
|
2014-03-16 06:43:07 -07:00
|
|
|
}
|
|
|
|
}
|