get/set x cursor size.

SVN revision: 17378
This commit is contained in:
sebastid 2005-10-10 07:50:10 +00:00 committed by sebastid
parent 315c2a045b
commit f0e54c13f7
2 changed files with 17 additions and 3 deletions

View File

@ -1001,8 +1001,7 @@ EAPI void ecore_x_window_configure(Ecore_X_Window win,
int border_width,
Ecore_X_Window sibling,
int stack_mode);
EAPI void ecore_x_window_cursor_set(Ecore_X_Window win,
Ecore_X_Cursor c);
EAPI void ecore_x_window_cursor_set(Ecore_X_Window win, Ecore_X_Cursor c);
EAPI void ecore_x_window_del(Ecore_X_Window win);
EAPI void ecore_x_window_ignore_set(Ecore_X_Window win, int ignore);
EAPI Ecore_X_Window *ecore_x_window_ignore_list(int *num);
@ -1322,6 +1321,9 @@ EAPI int ecore_x_cursor_color_supported_get(void);
EAPI Ecore_X_Cursor ecore_x_cursor_new(Ecore_X_Window win, int *pixels, int w, int h, int hot_x, int hot_y);
EAPI void ecore_x_cursor_free(Ecore_X_Cursor c);
EAPI Ecore_X_Cursor ecore_x_cursor_shape_get(int shape);
EAPI void ecore_x_cursor_size_set(int size);
EAPI int ecore_x_cursor_size_get(void);
EAPI int ecore_x_pointer_grab(Ecore_X_Window win);
EAPI int ecore_x_pointer_confine_grab(Ecore_X_Window win);

View File

@ -1103,7 +1103,7 @@ ecore_x_cursor_color_supported_get(void)
Ecore_X_Cursor
ecore_x_cursor_new(Ecore_X_Window win, int *pixels, int w, int h, int hot_x, int hot_y)
{
#ifdef ECORE_XCURSOR
#ifdef ECORE_XCURSOR
if (_ecore_x_xcursor)
{
Cursor c;
@ -1295,6 +1295,18 @@ ecore_x_cursor_shape_get(int shape)
return XCreateFontCursor(_ecore_x_disp, shape);
}
void
ecore_x_cursor_size_set(int size)
{
XcursorSetDefaultSize(_ecore_x_disp, size);
}
int
ecore_x_cursor_size_get(void)
{
return XcursorGetDefaultSize(_ecore_x_disp);
}
int
ecore_x_pointer_grab(Ecore_X_Window win)
{