aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/elementary/efl_ui_widget_scroll_manager.h
blob: 070cb5e75d4b6f76e02c6ee19ed08743c9c65f37 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef EFL_UI_WIDGET_SCROLL_MANAGER_H
#define EFL_UI_WIDGET_SCROLL_MANAGER_H

#include "Elementary.h"

typedef struct _Efl_Ui_Scroll_Manager_Data
{
   Evas_Coord                  prev_x, prev_y;

   struct {
      Evas_Object             *obj;
      Evas_Coord               x, y, w, h;
   } edje_obj;

   struct {
      Evas_Object             *obj;
      Evas_Coord               w, h;
   } content;

   struct {
      Evas_Coord               x, y;   //mouse cursor
      Evas_Coord               cx, cy; //content position
      Eina_Bool                on : 1;
   } down;

   Eo                         *parent;

   Evas_Object                *event_obj;
   Evas_Object                *pan_obj;

} Efl_Ui_Scroll_Manager_Data;

#endif