#ifdef E_TYPEDEFS

typedef enum _E_Focus_Method
{
   E_FOCUS_METHOD_NO_INPUT,
   E_FOCUS_METHOD_LOCALLY_ACTIVE,
   E_FOCUS_METHOD_GLOBALLY_ACTIVE,
   E_FOCUS_METHOD_PASSIVE
} E_Focus_Method;

#else
#ifndef E_GRABINPUT_H
#define E_GRABINPUT_H

EINTERN int            e_grabinput_init(void);
EINTERN int            e_grabinput_shutdown(void);
EAPI int            e_grabinput_get(Ecore_X_Window mouse_win, int confine_mouse, Ecore_X_Window key_win);
EAPI void           e_grabinput_release(Ecore_X_Window mouse_win, Ecore_X_Window key_win);
EAPI void           e_grabinput_focus(Ecore_X_Window win, E_Focus_Method method);
EAPI double         e_grabinput_last_focus_time_get(void);
    
#endif
#endif
