gimp/app/devices.h

78 lines
2.3 KiB
C
Raw Normal View History

/* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef __DEVICES_H__
#define __DEVICES_H__
#include "tools.h"
1999-10-27 02:27:27 +08:00
typedef enum
{
DEVICE_MODE = 1 << 0,
DEVICE_AXES = 1 << 1,
DEVICE_KEYS = 1 << 2,
DEVICE_TOOL = 1 << 3,
DEVICE_FOREGROUND = 1 << 4,
DEVICE_BACKGROUND = 1 << 5,
DEVICE_BRUSH = 1 << 6,
DEVICE_PATTERN = 1 << 7,
DEVICE_GRADIENT = 1 << 8
} DeviceValues;
1999-10-27 02:27:27 +08:00
/* Initialize the input devices */
void devices_init (void);
1999-10-27 02:27:27 +08:00
/* Restores device settings from rc file */
void devices_restore (void);
1999-10-27 02:27:27 +08:00
/* Create device info dialog */
void input_dialog_create (void);
1999-10-27 02:27:27 +08:00
/* Create the device status dialog */
void device_status_create (void);
1999-10-27 02:27:27 +08:00
/* Returns TRUE, and makes necessary global changes
* event is not for current_device
*/
gint devices_check_change (GdkEvent *event);
1999-10-27 02:27:27 +08:00
/* Loads stored device settings (tool, cursor, ...) */
void select_device (guint32 device);
/* Add information about one tool from rc file */
1999-10-27 02:27:27 +08:00
void devices_rc_update (gchar *name,
DeviceValues values,
GdkInputMode mode,
gint num_axes,
GdkAxisUse *axes,
gint num_keys,
GdkDeviceKey *keys,
ToolType tool,
guchar foreground[],
guchar background[],
gchar *brush_name,
gchar *pattern_name,
gchar *gradient_name);
1999-10-27 02:27:27 +08:00
/* Free device status (only for session-managment) */
void device_status_free (void);
1998-08-13 23:25:41 +08:00
1999-10-27 02:27:27 +08:00
/* Current device id */
extern gint current_device;
#endif /* __DEVICES_H__ */