2014-06-27 15:36:05 -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;
|
2014-10-13 07:07:24 -07:00
|
|
|
data: Elm_Scrollable_Smart_Interface_Data;
|
2014-03-17 04:44:40 -07:00
|
|
|
properties {
|
|
|
|
gravity {
|
|
|
|
set {
|
2014-10-13 07:07:24 -07:00
|
|
|
/*@ Set scrolling gravity on the scrollable
|
|
|
|
|
|
|
|
The gravity defines how the scroller will adjust its view
|
|
|
|
when the size of the scroller contents increases.
|
|
|
|
|
|
|
|
The scroller will adjust the view to glue itself as follows.
|
|
|
|
|
|
|
|
x=0.0, for staying where it is relative to the left edge of the content
|
|
|
|
x=1.0, for staying where it is relative to the rigth edge of the content
|
|
|
|
y=0.0, for staying where it is relative to the top edge of the content
|
|
|
|
y=1.0, for staying where it is relative to the bottom edge of the content
|
|
|
|
|
|
|
|
Default values for x and y are 0.0
|
|
|
|
|
|
|
|
@ingroup Widget
|
|
|
|
*/
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
get {
|
2014-10-13 07:07:24 -07:00
|
|
|
/*@ Get scrolling gravity on the scrollable
|
|
|
|
|
|
|
|
The gravity defines how the scroller will adjust its view
|
|
|
|
when the size of the scroller contents increases.
|
|
|
|
|
|
|
|
The scroller will adjust the view to glue itself as follows.
|
|
|
|
|
|
|
|
x=0.0, for staying where it is relative to the left edge of the content
|
|
|
|
x=1.0, for staying where it is relative to the rigth edge of the content
|
|
|
|
y=0.0, for staying where it is relative to the top edge of the content
|
|
|
|
y=1.0, for staying where it is relative to the bottom edge of the content
|
|
|
|
|
|
|
|
Default values for x and y are 0.0
|
|
|
|
|
|
|
|
@ingroup Widget
|
|
|
|
*/
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
values {
|
2014-10-13 07:07:24 -07:00
|
|
|
double x; /*@ Horizontal scrolling gravity */
|
|
|
|
double y; /*@ Vertical scrolling gravity */
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
bounce_allow {
|
2014-10-13 07:07:24 -07:00
|
|
|
/* @brief Bouncing behavior
|
|
|
|
*
|
|
|
|
* When scrolling, the scroller may "bounce" when reaching an edge of the
|
|
|
|
* content object. This is a visual way to indicate the end has been reached.
|
|
|
|
* This is enabled by default for both axis. This API will set if it is enabled
|
|
|
|
* for the given axis with the boolean parameters for each axis.
|
|
|
|
*
|
|
|
|
* @ingroup Widget
|
|
|
|
*/
|
2014-03-17 04:44:40 -07:00
|
|
|
set {
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2014-10-13 07:07:24 -07:00
|
|
|
bool horiz; /*@ Horizontal bounce policy. */
|
|
|
|
bool vert; /*@ Vertical bounce policy. */
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
wheel_disabled {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
2014-07-11 06:44:47 -07:00
|
|
|
bool disabled;
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
movement_block {
|
2014-10-13 07:07:24 -07:00
|
|
|
/*@
|
|
|
|
* @brief Blocking of scrolling (per axis)
|
|
|
|
*
|
|
|
|
* This function will block scrolling movement (by input of a user) in
|
|
|
|
* a given direction. One can disable movements in the X axis, the Y
|
|
|
|
* axis or both. The default value is #ELM_SCROLLER_MOVEMENT_NO_BLOCK,
|
|
|
|
* where movements are allowed in both directions.
|
|
|
|
*
|
|
|
|
* What makes this function different from
|
|
|
|
* freeze_push(), hold_push() and lock_x_set() (or lock_y_set())
|
|
|
|
* is that it @b doesn't propagate its effects to any parent or child
|
|
|
|
* widget of @a obj. Only the target scrollable widget will be locked
|
|
|
|
* with regard to scrolling.
|
|
|
|
*
|
|
|
|
* @since 1.8
|
|
|
|
*
|
|
|
|
* @ingroup Widget
|
|
|
|
*/
|
2014-03-17 04:44:40 -07:00
|
|
|
set {
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2014-10-13 07:07:24 -07:00
|
|
|
Elm_Scroller_Movement_Block block; /*@ Which axis (or axes) to block */
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
momentum_animator_disabled {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
2014-07-11 06:44:47 -07:00
|
|
|
bool disabled;
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
policy {
|
2014-10-13 07:07:24 -07:00
|
|
|
/*@
|
|
|
|
* @brief Scrollbar visibility policy
|
|
|
|
*
|
|
|
|
* #ELM_SCROLLER_POLICY_AUTO means the scrollbar is made visible if it is
|
|
|
|
* needed, and otherwise kept hidden. #ELM_SCROLLER_POLICY_ON turns it on all
|
|
|
|
* the time, and #ELM_SCROLLER_POLICY_OFF always keeps it off. This applies
|
|
|
|
* respectively for the horizontal and vertical scrollbars.
|
|
|
|
*
|
|
|
|
* @ingroup Widget
|
|
|
|
*/
|
2014-03-17 04:44:40 -07:00
|
|
|
set {
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2014-10-13 07:07:24 -07:00
|
|
|
Elm_Scroller_Policy hbar; /*@ Horizontal scrollbar policy */
|
|
|
|
Elm_Scroller_Policy vbar; /*@ Vertical scrollbar policy */
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
content_region {
|
2014-10-13 07:07:24 -07:00
|
|
|
/*@
|
|
|
|
* @brief Currently visible content region
|
|
|
|
*
|
|
|
|
* This gets the current region in the content object that is visible through
|
|
|
|
* the scroller. The region co-ordinates are returned in the @p x, @p y, @p
|
|
|
|
* w, @p h values pointed to.
|
|
|
|
*
|
|
|
|
* @note All coordinates are relative to the content.
|
|
|
|
*
|
|
|
|
* @see elm_scroller_region_show()
|
|
|
|
*
|
|
|
|
* @ingroup Widget
|
|
|
|
*/
|
2014-03-17 04:44:40 -07:00
|
|
|
set {
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2014-10-13 07:07:24 -07:00
|
|
|
Evas_Coord x; /*@ X coordinate of the region */
|
|
|
|
Evas_Coord y; /*@ Y coordinate of the region */
|
|
|
|
Evas_Coord w; /*@ Width of the region */
|
|
|
|
Evas_Coord h; /*@ Height of the region */
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
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 {
|
2014-07-11 06:44:47 -07:00
|
|
|
bool repeat_events;
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
page_size {
|
2014-10-13 07:07:24 -07:00
|
|
|
/*@
|
|
|
|
* @brief Scroll page size relative to viewport size.
|
|
|
|
*
|
|
|
|
* The scroller is capable of limiting scrolling by the user to "pages". That
|
|
|
|
* is to jump by and only show a "whole page" at a time as if the continuous
|
|
|
|
* area of the scroller content is split into page sized pieces. This sets
|
|
|
|
* the size of a page relative to the viewport of the scroller. 1.0 is "1
|
|
|
|
* viewport" is size (horizontally or vertically). 0.0 turns it off in that
|
|
|
|
* axis. This is mutually exclusive with page size
|
|
|
|
* (see elm_scroller_page_size_set() for more information). Likewise 0.5
|
|
|
|
* is "half a viewport". Sane usable values are normally between 0.0 and 1.0
|
|
|
|
* including 1.0. If you only want 1 axis to be page "limited", use 0.0 for
|
|
|
|
* the other axis.
|
|
|
|
*
|
|
|
|
* @ingroup Widget
|
|
|
|
*/
|
2014-03-17 04:44:40 -07:00
|
|
|
set {
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2014-10-13 07:07:24 -07:00
|
|
|
Evas_Coord x; /*@ The horizontal page relative size */
|
|
|
|
Evas_Coord y; /*@ The vertical page relative size */
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
bounce_animator_disabled {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
2014-07-11 06:44:47 -07:00
|
|
|
bool disabled;
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
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 {
|
2014-10-13 07:07:24 -07:00
|
|
|
/*@
|
|
|
|
* @brief Page snapping behavior
|
|
|
|
*
|
|
|
|
* When scrolling, if a scroller is paged (see
|
|
|
|
* elm_scroller_page_size_set() and elm_scroller_page_relative_set()),
|
|
|
|
* the scroller may snap to pages when being scrolled, i.e., even if
|
|
|
|
* it had momentum to scroll further, it will stop at the next page
|
|
|
|
* boundaries. This is @b disabled, by default, for both axis. This
|
|
|
|
* function will set if it that is enabled or not, for each axis.
|
|
|
|
*
|
|
|
|
* @note If @a obj is not set to have pages, nothing will happen after
|
|
|
|
* this call.
|
|
|
|
*
|
|
|
|
* @since 1.8
|
|
|
|
*
|
|
|
|
* @ingroup Widget
|
|
|
|
*/
|
2014-03-17 04:44:40 -07:00
|
|
|
set {
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2014-10-13 07:07:24 -07:00
|
|
|
bool horiz; /*@ Allow snap horizontally */
|
|
|
|
bool vert; /*@ Allow snap vertically */
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
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 {
|
2014-10-13 07:07:24 -07:00
|
|
|
/*@
|
|
|
|
* @brief Single direction scroll configuration
|
|
|
|
*
|
|
|
|
* This makes it possible to restrict scrolling to a single direction,
|
|
|
|
* with a "soft" or "hard" behavior.
|
|
|
|
*
|
|
|
|
* The hard behavior restricts the scrolling to a single direction all
|
|
|
|
* of the time while the soft one will restrict depending on factors
|
|
|
|
* such as the movement angle. If the user scrolls roughly in one
|
|
|
|
* direction only, it will only move according to it while if the move
|
|
|
|
* was clearly wanted on both axes, it will happen on both of them.
|
|
|
|
*
|
|
|
|
* @since 1.8
|
|
|
|
*
|
|
|
|
* @ingroup Widget
|
|
|
|
*/
|
2014-03-17 04:44:40 -07:00
|
|
|
set {
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2014-10-13 07:07:24 -07:00
|
|
|
Elm_Scroller_Single_Direction single_dir; /*@ The single direction scroll policy */
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
step_size {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
Evas_Coord x;
|
|
|
|
Evas_Coord y;
|
|
|
|
}
|
|
|
|
}
|
2015-01-23 19:01:03 -08:00
|
|
|
loop {
|
|
|
|
set {
|
|
|
|
/*@ Sets an infinite loop for a scroller.
|
|
|
|
|
|
|
|
This sets an infinite loop for a scroller.
|
|
|
|
|
|
|
|
@since 1.14
|
|
|
|
|
|
|
|
@ingroup Widget
|
|
|
|
*/
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@ Gets an infinite loop for a scroller.
|
|
|
|
|
|
|
|
This gets an infinite loop for a scroller.
|
|
|
|
|
|
|
|
@since 1.14
|
|
|
|
|
|
|
|
@ingroup Widget
|
|
|
|
*/
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
Eina_Bool loop_h; /*@ The scrolling horizontal loop */
|
|
|
|
Eina_Bool loop_v; /*@ The scrolling vertical loop */
|
|
|
|
}
|
|
|
|
}
|
2014-03-17 04:44:40 -07:00
|
|
|
scroll_up_cb {
|
|
|
|
set {
|
2014-10-13 07:07:24 -07:00
|
|
|
/*@ Set the callback to run when the content has been moved up.
|
|
|
|
|
|
|
|
@ingroup Widget
|
|
|
|
|
|
|
|
*/
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
values {
|
2014-10-13 07:07:24 -07:00
|
|
|
Elm_Interface_Scrollable_Cb scroll_up_cb; /*@ The callback */
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
hbar_drag_cb {
|
|
|
|
set {
|
2014-10-13 07:07:24 -07:00
|
|
|
/*@ Set the callback to run when the horizontal scrollbar is dragged.
|
|
|
|
|
|
|
|
@ingroup Widget
|
|
|
|
|
|
|
|
*/
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
values {
|
2014-10-13 07:07:24 -07:00
|
|
|
Elm_Interface_Scrollable_Cb hbar_drag_cb; /*@ The callback */
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
drag_start_cb {
|
|
|
|
set {
|
2014-10-13 07:07:24 -07:00
|
|
|
/*@ Set the callback to run when dragging of the contents has started.
|
|
|
|
|
|
|
|
@ingroup Widget
|
|
|
|
|
|
|
|
*/
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
values {
|
2014-10-13 07:07:24 -07:00
|
|
|
Elm_Interface_Scrollable_Cb drag_start_cb; /*@ The callback */
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
freeze {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
2014-07-11 06:44:47 -07:00
|
|
|
bool freeze;
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
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 {
|
2014-10-13 07:07:24 -07:00
|
|
|
/*@ Set the callback to run when the content has been moved to the left
|
|
|
|
|
|
|
|
@ingroup Widget
|
|
|
|
|
|
|
|
*/
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
values {
|
2014-10-13 07:07:24 -07:00
|
|
|
Elm_Interface_Scrollable_Cb scroll_left_cb; /*@ The callback */
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
vbar_press_cb {
|
|
|
|
set {
|
2014-10-13 07:07:24 -07:00
|
|
|
/*@ Set the callback to run when the vertical scrollbar is pressed.
|
|
|
|
|
|
|
|
@ingroup Widget
|
|
|
|
|
|
|
|
*/
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
values {
|
2014-10-13 07:07:24 -07:00
|
|
|
Elm_Interface_Scrollable_Cb vbar_press_cb; /*@ The callback */
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
hbar_press_cb {
|
|
|
|
set {
|
2014-10-13 07:07:24 -07:00
|
|
|
/*@ Set the callback to run when the horizontal scrollbar is pressed.
|
|
|
|
|
|
|
|
@ingroup Widget
|
|
|
|
|
|
|
|
*/
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
values {
|
2014-10-13 07:07:24 -07:00
|
|
|
Elm_Interface_Scrollable_Cb hbar_press_cb; /*@ The callback */
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
hbar_unpress_cb {
|
|
|
|
set {
|
2014-10-13 07:07:24 -07:00
|
|
|
/*@ Set the callback to run when the horizontal scrollbar is unpressed.
|
|
|
|
|
|
|
|
@ingroup Widget
|
|
|
|
|
|
|
|
*/
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
values {
|
2014-10-13 07:07:24 -07:00
|
|
|
Elm_Interface_Scrollable_Cb hbar_unpress_cb; /*@ The callback */
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
drag_stop_cb {
|
|
|
|
set {
|
2014-10-13 07:07:24 -07:00
|
|
|
/*@ Set the callback to run when dragging of the contents has stopped.
|
|
|
|
*
|
|
|
|
|
|
|
|
@ingroup Widget
|
|
|
|
|
|
|
|
*/
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
values {
|
2014-10-13 07:07:24 -07:00
|
|
|
Elm_Interface_Scrollable_Cb drag_stop_cb; /*@ The callback */
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
extern_pan {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
Evas_Object *pan;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
page_change_cb {
|
|
|
|
set {
|
2014-10-13 07:07:24 -07:00
|
|
|
/*@ Set the callback to run when the visible page changes.
|
|
|
|
|
|
|
|
@ingroup Widget
|
|
|
|
|
|
|
|
*/
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
values {
|
2014-10-13 07:07:24 -07:00
|
|
|
Elm_Interface_Scrollable_Cb page_change_cb; /*@ The callback */
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
hold {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
2014-07-11 06:44:47 -07:00
|
|
|
bool hold;
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
animate_start_cb {
|
|
|
|
set {
|
2014-10-13 07:07:24 -07:00
|
|
|
/*@ Set the callback to run when the scrolling animation has started.
|
|
|
|
|
|
|
|
@ingroup Widget
|
|
|
|
|
|
|
|
*/
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
values {
|
2014-10-13 07:07:24 -07:00
|
|
|
Elm_Interface_Scrollable_Cb animate_start_cb; /*@ The callback */
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
scroll_down_cb {
|
|
|
|
set {
|
2014-10-13 07:07:24 -07:00
|
|
|
/*@ Set the callback to run when the content has been moved down.
|
|
|
|
|
|
|
|
@ingroup Widget
|
|
|
|
|
|
|
|
*/
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
values {
|
2014-10-13 07:07:24 -07:00
|
|
|
Elm_Interface_Scrollable_Cb scroll_down_cb; /*@ The callback */
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
page_relative {
|
|
|
|
set {
|
|
|
|
/*@ Set scroll page size relative to viewport size. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
double h_pagerel;
|
|
|
|
double v_pagerel;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
scroll_cb {
|
|
|
|
set {
|
2014-10-13 07:07:24 -07:00
|
|
|
/*@ Set the callback to run when the content has been moved.
|
|
|
|
|
|
|
|
@ingroup Widget
|
|
|
|
|
|
|
|
*/
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
values {
|
2014-10-13 07:07:24 -07:00
|
|
|
Elm_Interface_Scrollable_Cb scroll_cb; /*@ The callback */
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
animate_stop_cb {
|
|
|
|
set {
|
2014-10-13 07:07:24 -07:00
|
|
|
/*@ Set the callback to run when the scrolling animation has stopped.
|
|
|
|
|
|
|
|
@ingroup Widget
|
|
|
|
|
|
|
|
*/
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
values {
|
2014-10-13 07:07:24 -07:00
|
|
|
Elm_Interface_Scrollable_Cb animate_stop_cb; /*@ The callback */
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
mirrored {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
2014-07-11 06:44:47 -07:00
|
|
|
bool mirrored;
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
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 {
|
2014-10-13 07:07:24 -07:00
|
|
|
/*@ Set the callback to run when the content has been moved to the right.
|
|
|
|
|
|
|
|
@ingroup Widget
|
|
|
|
|
|
|
|
*/
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
values {
|
2014-10-13 07:07:24 -07:00
|
|
|
Elm_Interface_Scrollable_Cb scroll_right_cb; /*@ The callback */
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
content {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
Evas_Object *content;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
edge_left_cb {
|
|
|
|
set {
|
2014-10-13 07:07:24 -07:00
|
|
|
/*@ Set the callback to run when the left edge of the content has been reached.
|
|
|
|
|
|
|
|
@ingroup Widget
|
|
|
|
|
|
|
|
*/
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
values {
|
2014-10-13 07:07:24 -07:00
|
|
|
Elm_Interface_Scrollable_Cb edge_left_cb; /*@ The callback */
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
vbar_drag_cb {
|
|
|
|
set {
|
2014-10-13 07:07:24 -07:00
|
|
|
/*@ Set the callback to run when the horizontal scrollbar is dragged.
|
|
|
|
|
|
|
|
@ingroup Widget
|
|
|
|
|
|
|
|
*/
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
values {
|
2014-10-13 07:07:24 -07:00
|
|
|
Elm_Interface_Scrollable_Cb vbar_drag_cb; /*@ The callback */
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
vbar_unpress_cb {
|
|
|
|
set {
|
2014-10-13 07:07:24 -07:00
|
|
|
/*@ Set the callback to run when the horizontal scrollbar is unpressed.
|
|
|
|
|
|
|
|
@ingroup Widget
|
|
|
|
|
|
|
|
*/
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
values {
|
2014-10-13 07:07:24 -07:00
|
|
|
Elm_Interface_Scrollable_Cb vbar_unpress_cb; /*@ The callback */
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
edge_bottom_cb {
|
|
|
|
set {
|
2014-10-13 07:07:24 -07:00
|
|
|
/*@ Set the callback to run when the bottom edge of the content has been reached.
|
|
|
|
|
|
|
|
@ingroup Widget
|
|
|
|
|
|
|
|
*/
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
values {
|
2014-10-13 07:07:24 -07:00
|
|
|
Elm_Interface_Scrollable_Cb edge_bottom_cb; /*@ The callback */
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
edge_right_cb {
|
|
|
|
set {
|
2014-10-13 07:07:24 -07:00
|
|
|
/*@ Set the callback to run when the right edge of the content has been reached.
|
|
|
|
|
|
|
|
@ingroup Widget
|
|
|
|
|
|
|
|
*/
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
values {
|
2014-10-13 07:07:24 -07:00
|
|
|
Elm_Interface_Scrollable_Cb edge_right_cb; /*@ The callback */
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
edge_top_cb {
|
|
|
|
set {
|
2014-10-13 07:07:24 -07:00
|
|
|
/*@ Set the callback to run when the top edge of the content has been reached.
|
|
|
|
|
|
|
|
@ingroup Widget
|
|
|
|
|
|
|
|
*/
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
values {
|
2014-10-13 07:07:24 -07:00
|
|
|
Elm_Interface_Scrollable_Cb edge_top_cb; /*@ The callback */
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
objects {
|
|
|
|
set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
Evas_Object *edje_object;
|
|
|
|
Evas_Object *hit_rectangle;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
last_page {
|
|
|
|
get {
|
2014-10-13 07:07:24 -07:00
|
|
|
/*@ Get scroll last page number.
|
|
|
|
|
|
|
|
The page number starts from 0. 0 is the first page.
|
|
|
|
This returns the last page number among the pages.
|
|
|
|
|
|
|
|
@see elm_scroller_current_page_get()
|
|
|
|
@see elm_scroller_page_show()
|
|
|
|
@see elm_scroller_page_bring_in()
|
|
|
|
|
|
|
|
@ingroup Widget
|
|
|
|
*/
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
values {
|
2014-10-13 07:07:24 -07:00
|
|
|
int pagenumber_h; /*@ The horizontal page number */
|
|
|
|
int pagenumber_v; /*@ The vertical page number */
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
current_page {
|
|
|
|
get {
|
2014-10-13 07:07:24 -07:00
|
|
|
/*@ Get scroll current page number.
|
|
|
|
|
|
|
|
The page number starts from 0. 0 is the first page.
|
|
|
|
Current page means the page which meets the top-left of the viewport.
|
|
|
|
If there are two or more pages in the viewport, it returns the number of the page
|
|
|
|
which meets the top-left of the viewport.
|
|
|
|
|
|
|
|
@see elm_scroller_last_page_get()
|
|
|
|
@see elm_scroller_page_show()
|
|
|
|
@see elm_scroller_page_bring_in()
|
|
|
|
|
|
|
|
@ingroup Widget
|
|
|
|
*/
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
values {
|
2014-10-13 07:07:24 -07:00
|
|
|
int pagenumber_h; /*@ The horizontal page number */
|
|
|
|
int pagenumber_v; /*@ The vertical page number */
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
}
|
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 {
|
2014-10-13 07:07:24 -07:00
|
|
|
/*@ Get the size of the content object
|
|
|
|
|
|
|
|
This gets the size of the content object of the scroller.
|
|
|
|
|
|
|
|
@ingroup Scroller
|
|
|
|
*/
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
values {
|
2014-10-13 07:07:24 -07:00
|
|
|
Evas_Coord w; /*@ Width of the content object. */
|
|
|
|
Evas_Coord h; /*@ Height of the content object. */
|
|
|
|
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
methods {
|
|
|
|
content_pos_set {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
params {
|
|
|
|
@in Evas_Coord x;
|
|
|
|
@in Evas_Coord y;
|
2014-07-11 06:44:47 -07:00
|
|
|
@in bool sig;
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
content_pos_get {
|
|
|
|
/*@ No description supplied by the EAPI. */
|
|
|
|
params {
|
|
|
|
@out Evas_Coord x;
|
|
|
|
@out Evas_Coord y;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
page_show {
|
2014-10-13 07:07:24 -07:00
|
|
|
/*@ Show a specific virtual region within the scroller content object by page number.
|
|
|
|
|
|
|
|
0, 0 of the indicated page is located at the top-left of the viewport.
|
|
|
|
This will jump to the page directly without animation.
|
|
|
|
|
|
|
|
@see elm_scroller_page_bring_in()
|
|
|
|
|
|
|
|
@ingroup Widget
|
|
|
|
*/
|
2014-03-17 04:44:40 -07:00
|
|
|
params {
|
2014-10-13 07:07:24 -07:00
|
|
|
@in int pagenumber_h; /*@ The horizontal page number */
|
|
|
|
@in int pagenumber_v; /*@ The vertical page number */
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
region_bring_in {
|
2014-10-13 07:07:24 -07:00
|
|
|
/*@ Show a specific virtual region within the scroller content object.
|
|
|
|
|
|
|
|
This will ensure all (or part if it does not fit) of the designated
|
|
|
|
region in the virtual content object (0, 0 starting at the top-left of the
|
|
|
|
virtual content object) is shown within the scroller. Unlike
|
|
|
|
elm_scroller_region_show(), this allows the scroller to "smoothly slide"
|
|
|
|
to this location (if configuration in general calls for transitions). It
|
|
|
|
may not jump immediately to the new location and make take a while and
|
|
|
|
show other content along the way.
|
|
|
|
|
|
|
|
@see elm_scroller_region_show()
|
|
|
|
|
|
|
|
@ingroup Widget
|
|
|
|
*/
|
2014-03-17 04:44:40 -07:00
|
|
|
params {
|
2014-10-13 07:07:24 -07:00
|
|
|
@in Evas_Coord x; /*@ X coordinate of the region */
|
|
|
|
@in Evas_Coord y; /*@ Y coordinate of the region */
|
|
|
|
@in Evas_Coord w; /*@ Width of the region */
|
|
|
|
@in Evas_Coord h; /*@ Height of the region */
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
page_bring_in {
|
2014-10-13 07:07:24 -07:00
|
|
|
/*@ Show a specific virtual region within the scroller content object by page number.
|
|
|
|
|
|
|
|
0, 0 of the indicated page is located at the top-left of the viewport.
|
|
|
|
This will slide to the page with animation.
|
|
|
|
|
|
|
|
@see elm_scroller_page_show()
|
|
|
|
|
|
|
|
@ingroup Scroller
|
|
|
|
*/
|
2014-03-17 04:44:40 -07:00
|
|
|
params {
|
2014-10-13 07:07:24 -07:00
|
|
|
@in int pagenumber_h; /*@ The horizontal page number */
|
|
|
|
@in int pagenumber_v; /*@ The vertical page number */
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
content_region_show {
|
2014-10-13 07:07:24 -07:00
|
|
|
/*@ Show a specific virtual region within the scroller content object
|
|
|
|
|
|
|
|
This will ensure all (or part if it does not fit) of the designated
|
|
|
|
region in the virtual content object (0, 0 starting at the top-left of the
|
|
|
|
virtual content object) is shown within the scroller.
|
|
|
|
|
|
|
|
@ingroup Widget
|
|
|
|
*/
|
2014-03-17 04:44:40 -07:00
|
|
|
params {
|
2014-10-13 07:07:24 -07:00
|
|
|
@in Evas_Coord x; /*@ X coordinate of the region */
|
|
|
|
@in Evas_Coord y; /*@ Y coordinate of the region */
|
|
|
|
@in Evas_Coord w; /*@ Width of the region */
|
|
|
|
@in Evas_Coord h; /*@ Height of the region */
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
content_min_limit {
|
2014-10-13 07:07:24 -07:00
|
|
|
/*@ Prevent the scrollable from being smaller than the minimum size of the content.
|
|
|
|
|
|
|
|
By default the scroller will be as small as its design allows,
|
|
|
|
irrespective of its content. This will make the scroller minimum size the
|
|
|
|
right size horizontally and/or vertically to perfectly fit its content in
|
|
|
|
that direction.
|
|
|
|
|
|
|
|
@ingroup Widget
|
|
|
|
*/
|
2014-03-17 04:44:40 -07:00
|
|
|
params {
|
2014-10-13 07:07:24 -07:00
|
|
|
@in bool w; /*@ whether to limit the minimum horizontal size */
|
|
|
|
@in bool h; /*@ whether to limit the minimum vertical size */
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
implements {
|
2014-06-27 15:36:05 -07:00
|
|
|
Eo.Base.constructor;
|
2014-06-20 02:47:39 -07:00
|
|
|
class.constructor;
|
2014-06-27 15:36:05 -07:00
|
|
|
Evas.Object_Smart.add;
|
|
|
|
Evas.Object_Smart.del;
|
2014-03-17 04:44:40 -07:00
|
|
|
}
|
|
|
|
events {
|
|
|
|
changed;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|