2016-01-11 02:38:57 -08:00
|
|
|
class Elm.Scroller (Elm.Layout, Elm.Interface_Scrollable,
|
2016-05-12 03:37:43 -07:00
|
|
|
Elm.Interface.Atspi_Widget_Action,
|
2015-05-10 01:50:37 -07:00
|
|
|
Evas.Scrollable_Interface)
|
2014-03-26 01:54:49 -07:00
|
|
|
{
|
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;
|
2015-05-07 09:32:53 -07:00
|
|
|
methods {
|
|
|
|
@property propagate_events {
|
2014-03-26 01:54:49 -07:00
|
|
|
set {
|
2015-07-03 07:12:48 -07:00
|
|
|
[[Set event propagation on a scroller
|
2014-03-26 01:54:49 -07:00
|
|
|
|
2015-07-03 07:12:48 -07:00
|
|
|
This enables or disables event propagation from the scroller
|
|
|
|
content to the scroller and its parent. By default event
|
|
|
|
propagation is enabled.
|
|
|
|
]]
|
2014-03-26 01:54:49 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-07-03 07:12:48 -07:00
|
|
|
[[Get event propagation for a scroller
|
2014-03-26 01:54:49 -07:00
|
|
|
|
2015-07-03 07:12:48 -07:00
|
|
|
This gets the event propagation for a scroller.
|
|
|
|
]]
|
2014-03-26 01:54:49 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-07-03 07:12:48 -07:00
|
|
|
propagation: bool; [[The propagation state]]
|
2014-03-26 01:54:49 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@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 {
|
2015-05-18 08:16:08 -07:00
|
|
|
klass: const(char)*;
|
|
|
|
group: const(char)*;
|
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 {
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
implements {
|
2014-06-20 02:47:39 -07:00
|
|
|
class.constructor;
|
2014-06-27 15:36:05 -07:00
|
|
|
Eo.Base.constructor;
|
2016-05-12 03:12:08 -07:00
|
|
|
Evas.Object.Smart.move;
|
|
|
|
Evas.Object.Smart.add;
|
|
|
|
Evas.Object.Smart.member_add;
|
|
|
|
Evas.Object.Smart.resize;
|
2015-04-22 04:33:10 -07:00
|
|
|
Elm.Widget.theme_apply;
|
|
|
|
Elm.Widget.activate;
|
|
|
|
Elm.Widget.focus_next_manager_is;
|
|
|
|
Elm.Widget.focus_direction_manager_is;
|
|
|
|
Elm.Widget.focus_next;
|
2015-09-24 23:34:34 -07:00
|
|
|
Elm.Widget.focus_direction;
|
2015-04-22 04:33:10 -07:00
|
|
|
Elm.Widget.sub_object_del;
|
|
|
|
Elm.Widget.event;
|
2016-04-19 22:55:26 -07:00
|
|
|
Efl.Container.content.get;
|
|
|
|
Efl.Container.content.set;
|
|
|
|
Efl.Container.content_unset;
|
2015-04-22 04:37:40 -07:00
|
|
|
Elm.Layout.sizing_eval;
|
2016-01-11 02:38:57 -08:00
|
|
|
Elm.Interface_Scrollable.page_size.set;
|
|
|
|
Elm.Interface_Scrollable.policy.set;
|
|
|
|
Elm.Interface_Scrollable.single_direction;
|
2016-05-12 03:37:43 -07:00
|
|
|
Elm.Interface.Atspi_Widget_Action.elm_actions.get;
|
2014-03-26 01:54:49 -07:00
|
|
|
}
|
|
|
|
events {
|
2015-05-10 01:50:37 -07:00
|
|
|
scroll,page,changed;
|
|
|
|
hbar,unpress;
|
|
|
|
hbar,press;
|
|
|
|
hbar,drag;
|
|
|
|
vbar,unpress;
|
|
|
|
vbar,press;
|
|
|
|
vbar,drag;
|
|
|
|
scroll,left;
|
|
|
|
scroll,right;
|
|
|
|
scroll,up;
|
|
|
|
scroll,down;
|
|
|
|
edge,left;
|
|
|
|
edge,right;
|
|
|
|
edge,top;
|
|
|
|
edge,bottom;
|
2014-03-26 01:54:49 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|