Add atoms & functions to set/get if illume dragging is enabled on a given

window.



SVN revision: 44511
This commit is contained in:
Christopher Michael 2009-12-16 19:43:53 +00:00
parent 67ade18c0f
commit b785c6bdc6
5 changed files with 25 additions and 2 deletions

View File

@ -1546,6 +1546,8 @@ EAPI void ecore_x_e_illume_back_send(Ecore_X_Window win);
EAPI void ecore_x_e_illume_close_send(Ecore_X_Window win);
EAPI void ecore_x_e_illume_drag_set(Ecore_X_Window win, unsigned int drag);
EAPI int ecore_x_e_illume_drag_get(Ecore_X_Window win);
EAPI void ecore_x_e_illume_drag_locked_set(Ecore_X_Window win, unsigned int is_locked);
EAPI int ecore_x_e_illume_drag_locked_get(Ecore_X_Window win);
EAPI void ecore_x_e_illume_drag_start_send(Ecore_X_Window win);
EAPI void ecore_x_e_illume_drag_end_send(Ecore_X_Window win);

View File

@ -203,7 +203,7 @@ EAPI extern Ecore_X_Atom ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_URL;
EAPI extern Ecore_X_Atom ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_KEYPAD;
EAPI extern Ecore_X_Atom ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_J2ME;
/* atom to determine if an app is illume compliant */
/* Illume specific atoms */
EAPI extern Ecore_X_Atom ECORE_X_ATOM_E_ILLUME_CONFORMANT;
EAPI extern Ecore_X_Atom ECORE_X_ATOM_E_ILLUME_MODE;
EAPI extern Ecore_X_Atom ECORE_X_ATOM_E_ILLUME_MODE_SINGLE;
@ -211,6 +211,7 @@ EAPI extern Ecore_X_Atom ECORE_X_ATOM_E_ILLUME_MODE_DUAL;
EAPI extern Ecore_X_Atom ECORE_X_ATOM_E_ILLUME_BACK;
EAPI extern Ecore_X_Atom ECORE_X_ATOM_E_ILLUME_CLOSE;
EAPI extern Ecore_X_Atom ECORE_X_ATOM_E_ILLUME_DRAG;
EAPI extern Ecore_X_Atom ECORE_X_ATOM_E_ILLUME_DRAG_LOCKED;
EAPI extern Ecore_X_Atom ECORE_X_ATOM_E_ILLUME_DRAG_START;
EAPI extern Ecore_X_Atom ECORE_X_ATOM_E_ILLUME_DRAG_END;

View File

@ -234,5 +234,6 @@ EAPI Ecore_X_Atom ECORE_X_ATOM_E_ILLUME_MODE_DUAL = 0;
EAPI Ecore_X_Atom ECORE_X_ATOM_E_ILLUME_BACK = 0;
EAPI Ecore_X_Atom ECORE_X_ATOM_E_ILLUME_CLOSE = 0;
EAPI Ecore_X_Atom ECORE_X_ATOM_E_ILLUME_DRAG = 0;
EAPI Ecore_X_Atom ECORE_X_ATOM_E_ILLUME_DRAG_LOCKED = 0;
EAPI Ecore_X_Atom ECORE_X_ATOM_E_ILLUME_DRAG_START = 0;
EAPI Ecore_X_Atom ECORE_X_ATOM_E_ILLUME_DRAG_END = 0;

View File

@ -224,6 +224,7 @@ _ecore_x_atoms_init(void)
{ "_E_ILLUME_MODE_DUAL", &ECORE_X_ATOM_E_ILLUME_MODE_DUAL },
{ "_E_ILLUME_BACK", &ECORE_X_ATOM_E_ILLUME_BACK },
{ "_E_ILLUME_DRAG", &ECORE_X_ATOM_E_ILLUME_DRAG },
{ "_E_ILLUME_DRAG_LOCKED", &ECORE_X_ATOM_E_ILLUME_DRAG_LOCKED },
{ "_E_ILLUME_DRAG_START", &ECORE_X_ATOM_E_ILLUME_DRAG_START },
{ "_E_ILLUME_DRAG_END", &ECORE_X_ATOM_E_ILLUME_DRAG_END }
};

View File

@ -203,7 +203,7 @@ ecore_x_e_illume_close_send(Ecore_X_Window win)
EAPI void
ecore_x_e_illume_drag_set(Ecore_X_Window win, unsigned int drag)
{
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_E_ILLUME_DRAG,&drag, 1);
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_E_ILLUME_DRAG, &drag, 1);
}
EAPI int
@ -216,6 +216,24 @@ ecore_x_e_illume_drag_get(Ecore_X_Window win)
return val;
}
EAPI void
ecore_x_e_illume_drag_locked_set(Ecore_X_Window win, unsigned int is_locked)
{
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_E_ILLUME_DRAG_LOCKED,
&is_locked, 1);
}
EAPI int
ecore_x_e_illume_drag_locked_get(Ecore_X_Window win)
{
unsigned int val = 0;
if (!ecore_x_window_prop_card32_get(win, ECORE_X_ATOM_E_ILLUME_DRAG_LOCKED,
&val, 1))
return 0;
return val;
}
EAPI void
ecore_x_e_illume_drag_start_send(Ecore_X_Window win)
{