aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/pager/gadget/pager.h
blob: b75c53bb7dc29d89f76b74dc7d0478f8c5816627 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef PAGER_H
#define PAGER_H

#include "e.h"

E_API void *e_modapi_gadget_init(E_Module *m);
E_API int   e_modapi_gadget_shutdown(E_Module *m);
E_API int   e_modapi_gadget_save(E_Module *m);

typedef struct _Config Config;
struct _Config
{
   unsigned int popup;
   double       popup_speed;
   unsigned int popup_urgent;
   unsigned int popup_urgent_stick;
   unsigned int popup_urgent_focus;
   double       popup_urgent_speed;
   unsigned int show_desk_names;
   int          popup_act_height;
   int          popup_height;
   unsigned int drag_resist;
   unsigned int btn_drag;
   unsigned int btn_noplace;
   unsigned int btn_desk;
   unsigned int flip_desk;
};

EINTERN Evas_Object    *pager_create(Evas_Object *parent, int *id, E_Gadget_Site_Orient orient);
EINTERN Evas_Object    *config_pager(E_Zone *zone);
EINTERN void           pager_init(void);
EINTERN void           _pager_cb_config_gadget_updated(void);
EINTERN void           _pager_cb_config_updated(void);

extern Config          *pager_config;
extern E_Module        *gmodule;
extern Evas_Object     *cfg_dialog;
extern Eina_List       *ginstances, *ghandlers;
/**
 * @addtogroup Optional_Gadgets
 * @{
 *
 * @defgroup Module_Pager Virtual Desktop Pager
 *
 * Shows the grid of virtual desktops and allows changing between
 * them.
 *
 * @}
 */
#endif