aboutsummaryrefslogblamecommitdiffstats
path: root/widgets/misc/e-cursors.c
blob: b4eb2436ecf8652c96ef6ce899fdc1a50a34f597 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

                          
 










                                              
 








                                                                                   
                               
#ifndef GNUMERIC_CURSORS_H
#define GNUMERIC_CURSORS_H

typedef struct {
    GdkCursor *cursor;
    int       hot_x, hot_y;
    char      **xpm;
} GnumericCursorDef;

#define GNUMERIC_CURSOR_FAT_CROSS  0
#define GNUMERIC_CURSOR_THIN_CROSS 1
#define GNUMERIC_CURSOR_ARROW      2

extern GnumericCursorDef  gnumeric_cursors [];

void    cursors_init      (void);
void    cursors_shutdown  (void);

#define cursor_set(win,c) \
    gdk_window_set_cursor (win, gnumeric_cursors [c].cursor)

#define cursor_set_widget(w,c) \
    gdk_window_set_cursor (GTK_WIDGET (w)->window, gnumeric_cursors [c].cursor)

#endif /* GNUMERIC_CURSORS_H */