|
Packit |
1e8aac |
#ifndef __GLADE_CURSOR_H__
|
|
Packit |
1e8aac |
#define __GLADE_CURSOR_H__
|
|
Packit |
1e8aac |
|
|
Packit |
1e8aac |
G_BEGIN_DECLS
|
|
Packit |
1e8aac |
|
|
Packit |
1e8aac |
/* GladeCursor is just a structures that has a pointer to all the cursors
|
|
Packit |
1e8aac |
* that we are going to use. The benefit of this struct is that once
|
|
Packit |
1e8aac |
* glade_cursor_init is called you just need to call glade_cursor_set
|
|
Packit |
1e8aac |
* with it's enumed value to set the window cursor.
|
|
Packit |
1e8aac |
*/
|
|
Packit |
1e8aac |
|
|
Packit |
1e8aac |
/* Has a pointer to the loaded GdkCursors. It is loaded when _init
|
|
Packit |
1e8aac |
* is called
|
|
Packit |
1e8aac |
*/
|
|
Packit |
1e8aac |
typedef struct _GladeCursor {
|
|
Packit |
1e8aac |
GdkCursor *selector;
|
|
Packit |
1e8aac |
GdkCursor *add_widget; /* fallback cursor if we cannot use widget_class->cursor */
|
|
Packit |
1e8aac |
GdkCursor *resize_top_left;
|
|
Packit |
1e8aac |
GdkCursor *resize_top_right;
|
|
Packit |
1e8aac |
GdkCursor *resize_bottom_left;
|
|
Packit |
1e8aac |
GdkCursor *resize_bottom_right;
|
|
Packit |
1e8aac |
GdkCursor *resize_left;
|
|
Packit |
1e8aac |
GdkCursor *resize_right;
|
|
Packit |
1e8aac |
GdkCursor *resize_top;
|
|
Packit |
1e8aac |
GdkCursor *resize_bottom;
|
|
Packit |
1e8aac |
GdkCursor *drag;
|
|
Packit |
1e8aac |
|
|
Packit |
1e8aac |
GdkPixbuf *add_widget_pixbuf; /* a pixbuf of the generic 'add' cursor */
|
|
Packit |
1e8aac |
} GladeCursor;
|
|
Packit |
1e8aac |
|
|
Packit |
1e8aac |
/* Enumed values for each of the cursors for GladeCursor. For every
|
|
Packit |
1e8aac |
* GdkCursor above there should be a enum here
|
|
Packit |
1e8aac |
*/
|
|
Packit |
1e8aac |
typedef enum {
|
|
Packit |
1e8aac |
GLADE_CURSOR_SELECTOR,
|
|
Packit |
1e8aac |
GLADE_CURSOR_ADD_WIDGET,
|
|
Packit |
1e8aac |
GLADE_CURSOR_RESIZE_TOP_LEFT,
|
|
Packit |
1e8aac |
GLADE_CURSOR_RESIZE_TOP_RIGHT,
|
|
Packit |
1e8aac |
GLADE_CURSOR_RESIZE_BOTTOM_LEFT,
|
|
Packit |
1e8aac |
GLADE_CURSOR_RESIZE_BOTTOM_RIGHT,
|
|
Packit |
1e8aac |
GLADE_CURSOR_RESIZE_LEFT,
|
|
Packit |
1e8aac |
GLADE_CURSOR_RESIZE_RIGHT,
|
|
Packit |
1e8aac |
GLADE_CURSOR_RESIZE_TOP,
|
|
Packit |
1e8aac |
GLADE_CURSOR_RESIZE_BOTTOM,
|
|
Packit |
1e8aac |
GLADE_CURSOR_DRAG
|
|
Packit |
1e8aac |
} GladeCursorType;
|
|
Packit |
1e8aac |
|
|
Packit |
1e8aac |
void glade_cursor_init (void);
|
|
Packit |
1e8aac |
void glade_cursor_set (GladeProject *project,
|
|
Packit |
1e8aac |
GdkWindow *window,
|
|
Packit |
1e8aac |
GladeCursorType type);
|
|
Packit |
1e8aac |
const GdkPixbuf* glade_cursor_get_add_widget_pixbuf (void);
|
|
Packit |
1e8aac |
|
|
Packit |
1e8aac |
G_END_DECLS
|
|
Packit |
1e8aac |
|
|
Packit |
1e8aac |
#endif /* __GLADE_CURSOR_H__ */
|