Objects when inside a scroller can scroll, but this may not always be desirable in certain situations. More...
Functions | |
void | elm_object_scroll_hold_push (Evas_Object *obj) |
Push the scroll hold by 1. More... | |
void | elm_object_scroll_hold_pop (Evas_Object *obj) |
Pop the scroll hold by 1. More... | |
int | elm_object_scroll_hold_get (const Evas_Object *obj) |
Get the scroll hold by 1. More... | |
void | elm_object_scroll_freeze_push (Evas_Object *obj) |
Push the scroll freeze by 1. More... | |
void | elm_object_scroll_freeze_pop (Evas_Object *obj) |
Pop the scroll freeze by 1. More... | |
int | elm_object_scroll_freeze_get (const Evas_Object *obj) |
Get the scroll freeze by 1. More... | |
void | elm_object_scroll_lock_x_set (Evas_Object *obj, Eina_Bool lock) |
Lock the scrolling of the given widget (and thus all parents) More... | |
void | elm_object_scroll_lock_y_set (Evas_Object *obj, Eina_Bool lock) |
Lock the scrolling of the given widget (and thus all parents) More... | |
Eina_Bool | elm_object_scroll_lock_x_get (const Evas_Object *obj) |
Get the scrolling lock of the given widget. More... | |
Eina_Bool | elm_object_scroll_lock_y_get (const Evas_Object *obj) |
Get the scrolling lock of the given widget. More... | |
void | elm_object_scroll_item_loop_enabled_set (Evas_Object *obj, Eina_Bool enable) |
Enable item loop feature of the given widget. More... | |
Eina_Bool | elm_object_scroll_item_loop_enabled_get (const Evas_Object *obj) |
Get the item loop enable status of the given widget. More... | |
Objects when inside a scroller can scroll, but this may not always be desirable in certain situations.
This allows an object to hint to itself and parents to "not scroll" in one of 2 ways. If any child object of a scroller has pushed a scroll freeze or hold then it affects all parent scrollers until all children have released them.
void elm_object_scroll_hold_push | ( | Evas_Object * | obj | ) |
Push the scroll hold by 1.
This increments the scroll hold count by one. If it is more than 0 it will take effect on the parents of the indicated object.
obj | The object |
References EINA_SAFETY_ON_NULL_RETURN.
void elm_object_scroll_hold_pop | ( | Evas_Object * | obj | ) |
Pop the scroll hold by 1.
This decrements the scroll hold count by one. If it is more than 0 it will take effect on the parents of the indicated object.
obj | The object |
References EINA_SAFETY_ON_NULL_RETURN.
int elm_object_scroll_hold_get | ( | const Evas_Object * | obj | ) |
Get the scroll hold by 1.
This gets the scroll hold count by one.
obj | The object |
References EINA_SAFETY_ON_NULL_RETURN_VAL.
void elm_object_scroll_freeze_push | ( | Evas_Object * | obj | ) |
Push the scroll freeze by 1.
This increments the scroll freeze count by one. If it is more than 0 it will take effect on the parents of the indicated object.
obj | The object |
References EINA_SAFETY_ON_NULL_RETURN.
void elm_object_scroll_freeze_pop | ( | Evas_Object * | obj | ) |
Pop the scroll freeze by 1.
This decrements the scroll freeze count by one. If it is more than 0 it will take effect on the parents of the indicated object.
obj | The object |
References EINA_SAFETY_ON_NULL_RETURN.
int elm_object_scroll_freeze_get | ( | const Evas_Object * | obj | ) |
Get the scroll freeze by 1.
This gets the scroll freeze count by one.
obj | The object |
References EINA_SAFETY_ON_NULL_RETURN_VAL.
void elm_object_scroll_lock_x_set | ( | Evas_Object * | obj, |
Eina_Bool | lock | ||
) |
Lock the scrolling of the given widget (and thus all parents)
This locks the given object from scrolling in the X axis (and implicitly also locks all parent scrollers too from doing the same).
obj | The object |
lock | The lock state (1 == locked, 0 == unlocked) |
References EINA_SAFETY_ON_NULL_RETURN.
void elm_object_scroll_lock_y_set | ( | Evas_Object * | obj, |
Eina_Bool | lock | ||
) |
Lock the scrolling of the given widget (and thus all parents)
This locks the given object from scrolling in the Y axis (and implicitly also locks all parent scrollers too from doing the same).
obj | The object |
lock | The lock state (1 == locked, 0 == unlocked) |
References EINA_SAFETY_ON_NULL_RETURN.
Eina_Bool elm_object_scroll_lock_x_get | ( | const Evas_Object * | obj | ) |
Get the scrolling lock of the given widget.
This gets the lock for X axis scrolling.
obj | The object |
References EINA_FALSE, and EINA_SAFETY_ON_NULL_RETURN_VAL.
Eina_Bool elm_object_scroll_lock_y_get | ( | const Evas_Object * | obj | ) |
Get the scrolling lock of the given widget.
This gets the lock for Y axis scrolling.
obj | The object |
References EINA_FALSE, and EINA_SAFETY_ON_NULL_RETURN_VAL.
void elm_object_scroll_item_loop_enabled_set | ( | Evas_Object * | obj, |
Eina_Bool | enable | ||
) |
Enable item loop feature of the given widget.
If enable
is EINA_TRUE
, item selection/focus will loop internally. This means if arrow keys are pressed at end of scroller's item, screen is moved to opposite side.
obj | The object |
enable | item loop feature (EINA_TRUE == enable, EINA_FALSE == disable) |
References EINA_SAFETY_ON_NULL_RETURN.
Eina_Bool elm_object_scroll_item_loop_enabled_get | ( | const Evas_Object * | obj | ) |
Get the item loop enable status of the given widget.
This gets the item loop enabled status.
obj | The object |
References EINA_FALSE, and EINA_SAFETY_ON_NULL_RETURN_VAL.