switching to XML DocBook
[dia.git] / app / cursor.h
blob872ad43839ef243cbaf6bf05a1d9db3f2f8db930
1 /* Dia -- an diagram creation/manipulation program
2 * Copyright (C) 1998 Alexander Larsson
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 /* Definitions for creating cursors */
20 /* Collected here so that it will be easier to use cursors provided
21 by a toolkit */
23 typedef enum {
24 CURSOR_POINT,
25 CURSOR_SCROLL,
26 CURSOR_GRAB,
27 CURSOR_GRABBING,
28 CURSOR_ZOOM_OUT,
29 CURSOR_ZOOM_IN,
30 CURSOR_CONNECT,
31 MAX_CURSORS
32 } DiaCursorType;
34 /* Preferred way to get a cursor */
35 GdkCursor *get_cursor(DiaCursorType ctype);
36 GdkCursor *create_cursor(GdkWindow *window,
37 const gchar *data, int width, int height,
38 const gchar *mask, int hot_x, int hot_y);