mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-23 04:51:44 +00:00
17335326d5
2001-02-24 Michael Natterer <mitch@gimp.org> * TODO.xml: updated. * app/appenums.h * app/apptypes.h: prefixed the cursor stuff with "Gimp", added the new stock tool cursor enum. Removed the old ToolType enum. * app/cursorutil.[ch] * app/gdisplay.[ch]: removed the old ToolType enum and prefixed the functions with "gimp_". Also stripped all "toggle cursor" stuff from the cursor code, so the new API is easier and not depending on the tool system. All existing tool cursors can be used via the new stock tool cursor enum, so no tool has to fiddle around with bitmap cursors. There will be an cursorutil function for registering stock tool cursor types on the fly. * app/disp_callbacks.c * app/scroll.[ch]: moved the display scrollbar callbacks from scroll.[ch] to disp_callbacks.c. Removed some crap from scroll.h * app/tools/tool.[ch]: removed the BitmapCursor pointers from the tool class struct and add cursor and toggle cursor IDs to the GimpTool struct. Work in progress. * app/dialog_handler.c * app/tools/bezier_select.c * app/tools/blend.c * app/tools/bucket_fill.c * app/tools/by_color_select.c * app/tools/clone.c * app/tools/color_picker.c * app/tools/convolve.c * app/tools/crop.c * app/tools/dodgeburn.c * app/tools/edit_selection.c * app/tools/ellipse_select.c * app/tools/flip_tool.c * app/tools/free_select.c * app/tools/fuzzy_select.c * app/tools/ink.c * app/tools/iscissors.c * app/tools/magnify.c * app/tools/measure.c * app/tools/move.c * app/tools/paint_core.[ch] * app/tools/perspective_tool.c * app/tools/rect_select.c * app/tools/rotate_tool.c * app/tools/scale_tool.c * app/tools/shear_tool.c * app/tools/text_tool.c * app/tools/transform_core.[ch]: changed accordingly. Did this "blind" for most tools because they don't compile. The changes are minimal, so there should be no conflicts.
66 lines
1.9 KiB
C
66 lines
1.9 KiB
C
/* The GIMP -- an image manipulation program
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
*/
|
|
|
|
#ifndef __CURSORUTIL_H__
|
|
#define __CURSORUTIL_H__
|
|
|
|
|
|
struct _GimpBitmapCursor
|
|
{
|
|
guchar *bits;
|
|
guchar *mask_bits;
|
|
gint width, height;
|
|
gint x_hot, y_hot;
|
|
GdkBitmap *bitmap;
|
|
GdkBitmap *mask;
|
|
GdkCursor *cursor;
|
|
};
|
|
|
|
|
|
typedef enum
|
|
{
|
|
GIMP_MOUSE_CURSOR = (GDK_LAST_CURSOR + 2),
|
|
GIMP_CROSSHAIR_CURSOR,
|
|
GIMP_CROSSHAIR_SMALL_CURSOR,
|
|
GIMP_BAD_CURSOR,
|
|
GIMP_ZOOM_CURSOR,
|
|
GIMP_COLOR_PICKER_CURSOR,
|
|
GIMP_LAST_CURSOR_ENTRY
|
|
} GimpCursorType;
|
|
|
|
|
|
/* FIXME: gimp_busy HACK */
|
|
extern gboolean gimp_busy;
|
|
|
|
|
|
void gimp_change_win_cursor (GdkWindow *win,
|
|
GdkCursorType curtype,
|
|
GimpToolCursorType tool_cursor,
|
|
GimpCursorModifier modifier);
|
|
void gimp_unset_win_cursor (GdkWindow *win);
|
|
|
|
void gimp_add_busy_cursors_until_idle (void);
|
|
void gimp_add_busy_cursors (void);
|
|
gint gimp_remove_busy_cursors (gpointer data);
|
|
|
|
gboolean gtkutil_compress_motion (GtkWidget *widget,
|
|
gdouble *lastmotion_x,
|
|
gdouble *lastmotion_y);
|
|
|
|
#endif /* __CURSORUTIL_H__ */
|