efl/legacy/elementary/src/lib/elm_scroller.eo

136 lines
3.6 KiB
Plaintext
Raw Normal View History

enum Elm.Scroller.Policy
{
2015-06-11 08:39:33 -07:00
[[Type that controls when scrollbars should appear.
See also @Elm_Interface_Scrollable.policy.set.
2015-06-11 08:39:33 -07:00
]]
auto = 0, [[Show scrollbars as needed]]
on, [[Always show scrollbars]]
off, [[Never show scrollbars]]
last
}
enum Elm.Scroller.Single_Direction
{
2015-06-11 08:39:33 -07:00
[[Type that controls how the content is scrolled.
See also @Elm_Interface_Scrollable.single_direction.set.
2015-06-11 08:39:33 -07:00
]]
none = 0, [[Scroll every direction]]
soft, [[Scroll single direction if the direction is certain]]
hard, [[Scroll only single direction]]
last
}
enum Elm.Scroller.Movement_Block
{
2015-06-11 08:39:33 -07:00
[[Type that blocks the scroll movement in one or more direction.
2015-06-11 08:39:33 -07:00
@since 1.8
]]
legacy: elm_scroller_movement;
no_block = 1 << 0, [[Do not block movements]]
block_vertical = 1 << 1, [[Block vertical movements]]
block_horizontal = 1 << 2 [[Block horizontal movements]]
}
class Elm.Scroller (Elm.Layout, Elm_Interface_Scrollable,
Elm_Interface_Atspi_Widget_Action,
Evas.Scrollable_Interface)
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 {
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 {
class.constructor;
Eo.Base.constructor;
Evas.Object_Smart.move;
Evas.Object_Smart.add;
Evas.Object_Smart.member_add;
Evas.Object_Smart.resize;
Elm.Widget.theme_apply;
Elm.Widget.activate;
Elm.Widget.focus_next_manager_is;
Elm.Widget.focus_direction_manager_is;
Elm.Widget.focus_next;
Elm.Widget.sub_object_del;
Elm.Widget.event;
Elm.Container.content_get;
Elm.Container.content_set;
Elm.Container.content_unset;
Elm.Layout.sizing_eval;
Elm_Interface_Scrollable.page_size.set;
Elm_Interface_Scrollable.policy.set;
Elm_Interface_Scrollable.single_direction;
Elm_Interface_Atspi_Widget_Action.elm_actions.get;
2014-03-26 01:54:49 -07:00
}
events {
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
}
}