2014-06-03 03:35:28 -07:00
|
|
|
mixin Elm_Interface_Scrollable(Evas_Scrollable_Interface, Evas_Object_Smart)
|
2014-03-17 04:44:40 -07:00
|
|
|
{
|
2014-04-03 00:19:03 -07:00
|
|
|
legacy_prefix: null;
|
2014-03-17 04:44:40 -07:00
|
|
|
eo_prefix: elm_interface_scrollable;
|
|
|
|
data: Elm_Scrollable_Smart_Interface_Data;
|
|
|
|
properties {
|
|
|
|
gravity {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
double x;
|
|
|
|
double y;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
bounce_allow {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
Eina_Bool horiz;
|
|
|
|
Eina_Bool vert;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
wheel_disabled {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
Eina_Bool disabled;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
movement_block {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
Elm_Scroller_Movement_Block block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
momentum_animator_disabled {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
Eina_Bool disabled;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
policy {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
Elm_Scroller_Policy hbar;
|
|
|
|
Elm_Scroller_Policy vbar;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
content_region {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
Evas_Coord x;
|
|
|
|
Evas_Coord y;
|
|
|
|
Evas_Coord w;
|
|
|
|
Evas_Coord h;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
repeat_events {
|
|
|
|
set {
|
|
|
|
/*@ It decides whether the scrollable object propagates the events to content object or not. */
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@ It gets whether the scrollable object propagates the events to content object or not. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
Eina_Bool repeat_events;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
page_size {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
Evas_Coord x;
|
|
|
|
Evas_Coord y;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
bounce_animator_disabled {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
Eina_Bool disabled;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
page_scroll_limit {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
int page_limit_h;
|
|
|
|
int page_limit_v;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
page_snap_allow {
|
|
|
|
set {
|
|
|
|
/*@ Enable/disable page bouncing, for paged scrollers, on each axis. */
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@ Get wether page bouncing is enabled, for paged scrollers, on each axis. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
Eina_Bool horiz;
|
|
|
|
Eina_Bool vert;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
paging {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
double pagerel_h;
|
|
|
|
double pagerel_v;
|
|
|
|
Evas_Coord pagesize_h;
|
|
|
|
Evas_Coord pagesize_v;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
single_direction {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
Elm_Scroller_Single_Direction single_dir;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
step_size {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
Evas_Coord x;
|
|
|
|
Evas_Coord y;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
scroll_up_cb {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
Elm_Interface_Scrollable_Cb scroll_up_cb;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
hbar_drag_cb {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
Elm_Interface_Scrollable_Cb hbar_drag_cb;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
drag_start_cb {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
Elm_Interface_Scrollable_Cb drag_start_cb;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
freeze {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
Eina_Bool freeze;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
content_viewport_resize_cb {
|
|
|
|
set {
|
|
|
|
/*@ When the viewport is resized, the callback is called. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
Elm_Interface_Scrollable_Resize_Cb viewport_resize_cb;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
scroll_left_cb {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
Elm_Interface_Scrollable_Cb scroll_left_cb;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
vbar_press_cb {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
Elm_Interface_Scrollable_Cb vbar_press_cb;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
hbar_press_cb {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
Elm_Interface_Scrollable_Cb hbar_press_cb;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
hbar_unpress_cb {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
Elm_Interface_Scrollable_Cb hbar_unpress_cb;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
drag_stop_cb {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
Elm_Interface_Scrollable_Cb drag_stop_cb;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
extern_pan {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
Evas_Object *pan;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
page_change_cb {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
Elm_Interface_Scrollable_Cb page_change_cb;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
hold {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
Eina_Bool hold;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
animate_start_cb {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
Elm_Interface_Scrollable_Cb animate_start_cb;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
scroll_down_cb {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
Elm_Interface_Scrollable_Cb scroll_down_cb;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
page_relative {
|
|
|
|
set {
|
|
|
|
/*@ Set scroll page size relative to viewport size. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
double h_pagerel;
|
|
|
|
double v_pagerel;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
scroll_cb {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
Elm_Interface_Scrollable_Cb scroll_cb;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
animate_stop_cb {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
Elm_Interface_Scrollable_Cb animate_stop_cb;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
mirrored {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
Eina_Bool mirrored;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
content_min_limit_cb {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
Elm_Interface_Scrollable_Min_Limit_Cb min_limit_cb;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
scroll_right_cb {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
Elm_Interface_Scrollable_Cb scroll_right_cb;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
content {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
Evas_Object *content;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
edge_left_cb {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
Elm_Interface_Scrollable_Cb edge_left_cb;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
vbar_drag_cb {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
Elm_Interface_Scrollable_Cb vbar_drag_cb;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
vbar_unpress_cb {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
Elm_Interface_Scrollable_Cb vbar_unpress_cb;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
edge_bottom_cb {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
Elm_Interface_Scrollable_Cb edge_bottom_cb;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
edge_right_cb {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
Elm_Interface_Scrollable_Cb edge_right_cb;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
edge_top_cb {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
Elm_Interface_Scrollable_Cb edge_top_cb;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
objects {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
Evas_Object *edje_object;
|
|
|
|
Evas_Object *hit_rectangle;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
last_page {
|
|
|
|
get {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
int pagenumber_h;
|
|
|
|
int pagenumber_v;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
current_page {
|
|
|
|
get {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
int pagenumber_h;
|
|
|
|
int pagenumber_v;
|
|
|
|
}
|
|
|
|
}
|
entry: wrong viewport value calculation issue fix
Summary:
Issue: As entire scroller edje co-ordinates was being taken instead of the actual viewport value,
if in scroller edje more parts are added apart from just "elm.swallow.content", then the viewport value
set will be wrong. hence the selection handlers will not hide when they have to hide.
solution: Instead of taking scroller edje's geometry, get the actual viewport values.
To get viewport x,y a new scrollable interface is also added.
signed-off by: Shilpa Singh <shilpa.singh@samsung.com>
@fix
Test Plan: Selection handlers have to hide correctly when the text is scrolled in a scrolled entry, if the scroller edc of entry has more parts added other than elm.swallow.content, then when we scroll the selection handlers are not hidden correctly.
Reviewers: jaehwan, woohyun, seoz, Hermet, raster
CC: govi, rajeshps, thiepha
Differential Revision: https://phab.enlightenment.org/D674
2014-04-20 20:31:49 -07:00
|
|
|
content_viewport_geometry {
|
2014-03-17 04:44:40 -07:00
|
|
|
get {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
entry: wrong viewport value calculation issue fix
Summary:
Issue: As entire scroller edje co-ordinates was being taken instead of the actual viewport value,
if in scroller edje more parts are added apart from just "elm.swallow.content", then the viewport value
set will be wrong. hence the selection handlers will not hide when they have to hide.
solution: Instead of taking scroller edje's geometry, get the actual viewport values.
To get viewport x,y a new scrollable interface is also added.
signed-off by: Shilpa Singh <shilpa.singh@samsung.com>
@fix
Test Plan: Selection handlers have to hide correctly when the text is scrolled in a scrolled entry, if the scroller edc of entry has more parts added other than elm.swallow.content, then when we scroll the selection handlers are not hidden correctly.
Reviewers: jaehwan, woohyun, seoz, Hermet, raster
CC: govi, rajeshps, thiepha
Differential Revision: https://phab.enlightenment.org/D674
2014-04-20 20:31:49 -07:00
|
|
|
Evas_Coord x;
|
|
|
|
Evas_Coord y;
|
2014-03-17 04:44:40 -07:00
|
|
|
Evas_Coord w;
|
|
|
|
Evas_Coord h;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
content_size {
|
|
|
|
get {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
Evas_Coord w;
|
|
|
|
Evas_Coord h;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
methods {
|
|
|
|
content_pos_set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
params {
|
|
|
|
@in Evas_Coord x;
|
|
|
|
@in Evas_Coord y;
|
|
|
|
@in Eina_Bool sig;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
content_pos_get {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
params {
|
|
|
|
@out Evas_Coord x;
|
|
|
|
@out Evas_Coord y;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
page_show {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
params {
|
|
|
|
@in int pagenumber_h;
|
|
|
|
@in int pagenumber_v;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
region_bring_in {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
params {
|
|
|
|
@in Evas_Coord x;
|
|
|
|
@in Evas_Coord y;
|
|
|
|
@in Evas_Coord w;
|
|
|
|
@in Evas_Coord h;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
page_bring_in {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
params {
|
|
|
|
@in int pagenumber_h;
|
|
|
|
@in int pagenumber_v;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
content_region_show {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
params {
|
|
|
|
@in Evas_Coord x;
|
|
|
|
@in Evas_Coord y;
|
|
|
|
@in Evas_Coord w;
|
|
|
|
@in Evas_Coord h;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
content_min_limit {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
params {
|
|
|
|
@in Eina_Bool w;
|
|
|
|
@in Eina_Bool h;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
implements {
|
2014-06-20 02:47:39 -07:00
|
|
|
Eo_Base.constructor;
|
|
|
|
class.constructor;
|
|
|
|
Evas_Object_Smart.add;
|
|
|
|
Evas_Object_Smart.del;
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
events {
|
|
|
|
changed;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|