2019-01-18 05:22:23 -08:00
|
|
|
class Elm.Scroller extends Efl.Ui.Layout implements Elm.Interface_Scrollable,
|
2017-11-15 18:31:26 -08:00
|
|
|
Efl.Access.Widget.Action,
|
2019-01-18 05:22:23 -08:00
|
|
|
Efl.Ui.Scrollable, Efl.Content, Efl.Ui.Legacy
|
2014-03-26 01:54:49 -07:00
|
|
|
{
|
2016-11-23 04:23:26 -08:00
|
|
|
[[Elementary scroller class]]
|
2016-05-12 09:06:04 -07:00
|
|
|
legacy_prefix: elm_scroller;
|
2014-03-26 01:54:49 -07:00
|
|
|
eo_prefix: elm_obj_scroller;
|
2016-05-17 09:14:47 -07:00
|
|
|
event_prefix: elm_scroller;
|
2015-05-07 09:32:53 -07:00
|
|
|
methods {
|
|
|
|
@property custom_widget_base_theme {
|
2014-03-26 01:54:49 -07:00
|
|
|
set {
|
2015-07-03 07:12:48 -07:00
|
|
|
[[Set custom theme elements for the scroller]]
|
2014-03-26 01:54:49 -07:00
|
|
|
}
|
|
|
|
values {
|
2016-11-23 04:23:26 -08:00
|
|
|
klass: string; [[Klass name]]
|
|
|
|
group: string; [[Group name]]
|
2014-03-26 01:54:49 -07:00
|
|
|
}
|
|
|
|
}
|
2014-07-22 09:13:52 -07:00
|
|
|
page_scroll_limit_set @const {
|
2015-07-03 07:12:48 -07:00
|
|
|
[[Set the maximum of the movable page at a flicking.
|
2014-03-26 01:54:49 -07:00
|
|
|
|
2015-07-03 07:12:48 -07:00
|
|
|
The value of maximum movable page should be more than 1.
|
2014-03-26 01:54:49 -07:00
|
|
|
|
2015-07-03 07:12:48 -07:00
|
|
|
@since 1.8
|
|
|
|
]]
|
2014-03-26 01:54:49 -07:00
|
|
|
params {
|
2015-07-03 07:12:48 -07:00
|
|
|
@in page_limit_h: int; [[The maximum of the movable horizontal page]]
|
|
|
|
@in page_limit_v: int; [[The maximum of the movable vertical page]]
|
2014-03-26 01:54:49 -07:00
|
|
|
}
|
|
|
|
}
|
2014-07-22 09:13:52 -07:00
|
|
|
page_scroll_limit_get @const {
|
2015-07-03 07:12:48 -07:00
|
|
|
[[Get the maximum of the movable page at a flicking.
|
2014-03-26 01:54:49 -07:00
|
|
|
|
2015-07-03 07:12:48 -07:00
|
|
|
@since 1.8
|
|
|
|
]]
|
2014-03-26 01:54:49 -07:00
|
|
|
params {
|
2016-11-10 06:43:15 -08:00
|
|
|
@in page_limit_h: ptr(int); [[The maximum of the movable horizontal page]]
|
|
|
|
@in page_limit_v: ptr(int); [[The maximum of the movable vertical page]]
|
2014-03-26 01:54:49 -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;
|
2017-11-19 22:41:07 -08:00
|
|
|
Efl.Content.content { get; set; }
|
|
|
|
Efl.Content.content_unset;
|
2018-01-07 20:55:35 -08:00
|
|
|
Efl.Ui.Widget.theme_apply;
|
|
|
|
Efl.Ui.Widget.on_access_activate;
|
|
|
|
Efl.Ui.Widget.widget_sub_object_del;
|
|
|
|
Efl.Ui.Widget.widget_event;
|
2016-12-27 10:15:41 -08:00
|
|
|
Elm.Interface_Scrollable.page_size { set; }
|
|
|
|
Elm.Interface_Scrollable.policy { set; }
|
2017-01-11 07:35:03 -08:00
|
|
|
Elm.Interface_Scrollable.single_direction { get; set; }
|
2017-11-15 18:31:26 -08:00
|
|
|
Efl.Access.Widget.Action.elm_actions { get; }
|
2018-05-03 16:34:17 -07:00
|
|
|
Efl.Part.part_get;
|
2018-01-07 20:55:35 -08:00
|
|
|
Efl.Ui.Widget.focus_state_apply;
|
2014-03-26 01:54:49 -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
|
|
|
scroll,page,changed: void; [[Called when scroll page changed]]
|
|
|
|
hbar,unpress: void; [[Called when horizontal bar is no longer pressed]]
|
|
|
|
hbar,press: void; [[Called when horizontal bar is pressed]]
|
|
|
|
hbar,drag: void; [[Called when horizontal bar is dragged]]
|
|
|
|
vbar,unpress: void; [[Called when vertical bar is no longer pressed]]
|
|
|
|
vbar,press: void; [[Called when vertical bar is pressed]]
|
|
|
|
vbar,drag: void; [[Called when vertical bar is dragged]]
|
|
|
|
scroll,left: void; [[Called when scrolling to left]]
|
|
|
|
scroll,right: void; [[Called when scrolling to right]]
|
|
|
|
scroll,up: void; [[Called scrolled upwards]]
|
|
|
|
scroll,down: void; [[Called when scrolled downwards]]
|
|
|
|
edge,left: void; [[Called when hitting the left edge]]
|
|
|
|
edge,right: void; [[Called when hitting the right edge]]
|
|
|
|
edge,top: void; [[Called when hitting the top edge]]
|
|
|
|
edge,bottom: void; [[Called when hitting the bottom edge]]
|
2014-03-26 01:54:49 -07:00
|
|
|
}
|
|
|
|
}
|