2015-05-13 07:27:04 -07:00
|
|
|
enum Elm.Panel.Orient
|
|
|
|
{
|
2015-06-11 08:39:33 -07:00
|
|
|
[[Panel orientation mode]]
|
2015-05-13 07:27:04 -07:00
|
|
|
|
2015-06-11 08:39:33 -07:00
|
|
|
top, [[Panel (dis)appears from the top]]
|
|
|
|
bottom, [[Panel (dis)appears from the bottom]]
|
|
|
|
left, [[Panel (dis)appears from the left]]
|
|
|
|
right [[Panel (dis)appears from the right]]
|
2015-05-13 07:27:04 -07:00
|
|
|
}
|
|
|
|
|
2019-01-18 05:22:23 -08:00
|
|
|
class Elm.Panel extends Efl.Ui.Layout implements Efl.Ui.Focus.Layer, Elm.Interface_Scrollable,
|
|
|
|
Efl.Access.Widget.Action, Efl.Ui.Legacy
|
2014-03-24 01:38:01 -07:00
|
|
|
{
|
2016-11-24 05:55:50 -08:00
|
|
|
[[Elementary panel class]]
|
2016-05-12 09:06:04 -07:00
|
|
|
legacy_prefix: elm_panel;
|
2014-03-24 01:38:01 -07:00
|
|
|
eo_prefix: elm_obj_panel;
|
2016-07-31 23:38:50 -07:00
|
|
|
event_prefix: elm_panel;
|
2015-05-07 09:32:53 -07:00
|
|
|
methods {
|
|
|
|
@property orient {
|
2014-03-24 01:38:01 -07:00
|
|
|
set {
|
2015-07-31 07:17:40 -07:00
|
|
|
[[Set the orientation of the panel
|
2014-03-24 01:38:01 -07:00
|
|
|
|
2015-07-31 07:17:40 -07:00
|
|
|
Set from where the panel will (dis)appear.
|
|
|
|
]]
|
2014-03-24 01:38:01 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-07-31 07:17:40 -07:00
|
|
|
[[Get the orientation of the panel.]]
|
2014-03-24 01:38:01 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-07-31 07:17:40 -07:00
|
|
|
orient: Elm.Panel.Orient(Elm.Panel.Orient.left); [[The panel orientation.]]
|
2014-03-24 01:38:01 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property hidden {
|
2014-03-24 01:38:01 -07:00
|
|
|
set {
|
2015-07-31 07:17:40 -07:00
|
|
|
[[Set the state of the panel.]]
|
2014-03-24 01:38:01 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-07-31 07:17:40 -07:00
|
|
|
[[Get the state of the panel.]]
|
2014-03-24 01:38:01 -07:00
|
|
|
}
|
|
|
|
values {
|
2016-11-24 05:55:50 -08:00
|
|
|
hidden: bool; [[If $true, the panel will run the animation to disappear.]]
|
2014-03-24 01:38:01 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property scrollable {
|
2014-07-06 23:08:45 -07:00
|
|
|
set {
|
2015-07-31 07:17:40 -07:00
|
|
|
[[Set the scrollability of the panel.]]
|
2014-07-06 23:08:45 -07:00
|
|
|
}
|
2014-10-05 20:11:05 -07:00
|
|
|
get {
|
2015-07-31 07:17:40 -07:00
|
|
|
[[Get the state of the scrollability.
|
2014-10-05 20:11:05 -07:00
|
|
|
|
2015-07-31 07:17:40 -07:00
|
|
|
@since 1.12
|
|
|
|
]]
|
2014-10-05 20:11:05 -07:00
|
|
|
}
|
2014-07-06 23:08:45 -07:00
|
|
|
values {
|
2015-07-31 07:17:40 -07:00
|
|
|
scrollable: bool; [[The scrollable state.]]
|
2014-07-06 23:08:45 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property scrollable_content_size {
|
2014-07-06 23:08:45 -07:00
|
|
|
set {
|
2015-07-31 07:17:40 -07:00
|
|
|
[[Set the size of the scrollable panel.]]
|
2014-07-06 23:08:45 -07:00
|
|
|
}
|
2017-01-04 17:26:29 -08:00
|
|
|
get {
|
|
|
|
[[Get the size of the scrollable panel.
|
|
|
|
|
|
|
|
@since 1.19
|
|
|
|
]]
|
|
|
|
}
|
2014-07-06 23:08:45 -07:00
|
|
|
values {
|
2016-11-24 05:55:50 -08:00
|
|
|
ratio: double; [[Size ratio]]
|
2014-07-06 23:08:45 -07:00
|
|
|
}
|
|
|
|
}
|
2014-03-24 01:38:01 -07:00
|
|
|
toggle {
|
2015-07-31 07:17:40 -07:00
|
|
|
[[Toggle the hidden state of the panel from code]]
|
2014-03-24 01:38:01 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
implements {
|
2014-06-20 02:47:39 -07:00
|
|
|
class.constructor;
|
2016-08-10 07:23:04 -07:00
|
|
|
Efl.Object.constructor;
|
2018-04-05 01:47:26 -07:00
|
|
|
Efl.Gfx.Entity.position { set; }
|
|
|
|
Efl.Gfx.Entity.size { set; }
|
2016-06-17 01:26:08 -07:00
|
|
|
Efl.Canvas.Group.group_member_add;
|
2018-01-07 20:55:35 -08:00
|
|
|
Efl.Ui.Widget.theme_apply;
|
|
|
|
Efl.Ui.Widget.on_disabled_update;
|
|
|
|
Efl.Ui.Widget.on_access_update;
|
|
|
|
Efl.Ui.Widget.widget_event;
|
|
|
|
Efl.Ui.Widget.interest_region { get; }
|
2017-11-15 18:31:26 -08:00
|
|
|
Efl.Access.Widget.Action.elm_actions { get; }
|
2018-12-21 14:13:40 -08:00
|
|
|
Efl.Ui.I18n.mirrored { set; }
|
2018-05-03 16:34:17 -07:00
|
|
|
Efl.Part.part_get;
|
2014-03-24 01:38:01 -07:00
|
|
|
}
|
2016-07-31 23:38:50 -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
|
|
|
toggled: void; [[Called when the hidden state was toggled]]
|
2016-07-31 23:38:50 -07:00
|
|
|
}
|
2014-03-24 01:38:01 -07:00
|
|
|
}
|