2005-02-07 05:51:09 -08:00
|
|
|
/*
|
|
|
|
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
|
|
|
|
*/
|
2005-01-12 08:03:09 -08:00
|
|
|
#ifdef E_TYPEDEFS
|
2005-08-16 18:35:48 -07:00
|
|
|
|
|
|
|
typedef struct _E_Pointer E_Pointer;
|
|
|
|
|
2005-01-12 08:03:09 -08:00
|
|
|
#else
|
2004-11-24 19:37:45 -08:00
|
|
|
#ifndef E_POINTER_H
|
|
|
|
#define E_POINTER_H
|
|
|
|
|
2005-08-16 18:35:48 -07:00
|
|
|
#define E_POINTER_TYPE 0xE0b01013
|
|
|
|
|
|
|
|
struct _E_Pointer
|
|
|
|
{
|
2005-08-23 21:22:52 -07:00
|
|
|
E_Object e_obj_inherit;
|
2005-10-08 13:38:07 -07:00
|
|
|
|
2005-10-09 01:54:24 -07:00
|
|
|
unsigned char e_cursor : 1;
|
|
|
|
unsigned char color : 1;
|
2007-11-03 21:13:59 -07:00
|
|
|
unsigned char idle : 1;
|
2005-10-09 01:54:24 -07:00
|
|
|
|
2005-08-23 21:22:52 -07:00
|
|
|
Evas *evas;
|
|
|
|
Evas_Object *pointer_object;
|
|
|
|
Evas_Object *hot_object;
|
|
|
|
int *pixels;
|
|
|
|
Ecore_X_Window win;
|
|
|
|
int w, h;
|
2007-11-03 21:13:59 -07:00
|
|
|
Ecore_Timer *idle_timer;
|
2008-01-10 23:33:57 -08:00
|
|
|
Ecore_Poller *idle_poller;
|
2007-11-03 21:13:59 -07:00
|
|
|
int x, y;
|
2005-10-08 13:38:07 -07:00
|
|
|
|
2006-03-02 04:03:48 -08:00
|
|
|
const char *type;
|
2005-10-09 11:02:17 -07:00
|
|
|
void *obj;
|
2005-10-08 13:38:07 -07:00
|
|
|
Evas_List *stack;
|
|
|
|
|
2005-08-23 21:22:52 -07:00
|
|
|
struct {
|
|
|
|
int x, y;
|
|
|
|
unsigned char update : 1;
|
|
|
|
} hot;
|
2005-08-16 18:35:48 -07:00
|
|
|
};
|
|
|
|
|
2007-11-03 21:13:59 -07:00
|
|
|
EAPI int e_pointer_init(void);
|
|
|
|
EAPI int e_pointer_shutdown(void);
|
2006-08-19 21:48:27 -07:00
|
|
|
EAPI E_Pointer *e_pointer_window_new(Ecore_X_Window win, int filled);
|
2008-09-29 07:01:30 -07:00
|
|
|
EAPI void e_pointer_hide(E_Pointer *p);
|
2005-10-09 11:02:17 -07:00
|
|
|
EAPI void e_pointer_type_push(E_Pointer *p, void *obj, const char *type);
|
|
|
|
EAPI void e_pointer_type_pop(E_Pointer *p, void *obj, const char *type);
|
2005-09-02 01:28:12 -07:00
|
|
|
EAPI void e_pointers_size_set(int size);
|
2005-08-16 18:35:48 -07:00
|
|
|
EAPI void e_pointer_idler_before(void);
|
|
|
|
|
2004-11-24 19:37:45 -08:00
|
|
|
#endif
|
2005-01-12 08:03:09 -08:00
|
|
|
#endif
|