mirror of https://github.com/GNOME/gimp.git
282 lines
7.5 KiB
C
282 lines
7.5 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 __WIDGETS_ENUMS_H__
|
|
#define __WIDGETS_ENUMS_H__
|
|
|
|
|
|
/*
|
|
* these enums that are registered with the type system
|
|
*/
|
|
|
|
#define GIMP_TYPE_ACTIVE_COLOR (gimp_active_color_get_type ())
|
|
|
|
GType gimp_active_color_get_type (void) G_GNUC_CONST;
|
|
|
|
typedef enum
|
|
{
|
|
GIMP_ACTIVE_COLOR_FOREGROUND, /*< desc="Foreground" >*/
|
|
GIMP_ACTIVE_COLOR_BACKGROUND /*< desc="Background" >*/
|
|
} GimpActiveColor;
|
|
|
|
|
|
#define GIMP_TYPE_ASPECT_TYPE (gimp_aspect_type_get_type ())
|
|
|
|
GType gimp_aspect_type_get_type (void) G_GNUC_CONST;
|
|
|
|
typedef enum
|
|
{
|
|
GIMP_ASPECT_SQUARE,
|
|
GIMP_ASPECT_PORTRAIT, /*< desc="Portrait" >*/
|
|
GIMP_ASPECT_LANDSCAPE /*< desc="Landscape" >*/
|
|
} GimpAspectType;
|
|
|
|
|
|
#define GIMP_TYPE_COLOR_FRAME_MODE (gimp_color_frame_mode_get_type ())
|
|
|
|
GType gimp_color_frame_mode_get_type (void) G_GNUC_CONST;
|
|
|
|
typedef enum
|
|
{
|
|
GIMP_COLOR_FRAME_MODE_PIXEL, /*< desc="Pixel Values" >*/
|
|
GIMP_COLOR_FRAME_MODE_RGB, /*< desc="RGB" >*/
|
|
GIMP_COLOR_FRAME_MODE_HSV, /*< desc="HSV" >*/
|
|
GIMP_COLOR_FRAME_MODE_CMYK /*< desc="CMYK" >*/
|
|
} GimpColorFrameMode;
|
|
|
|
|
|
#define GIMP_TYPE_CURSOR_FORMAT (gimp_cursor_format_get_type ())
|
|
|
|
GType gimp_cursor_format_get_type (void) G_GNUC_CONST;
|
|
|
|
typedef enum
|
|
{
|
|
GIMP_CURSOR_FORMAT_BITMAP, /*< desc="Black & White" >*/
|
|
GIMP_CURSOR_FORMAT_PIXBUF /*< desc="Fancy" >*/
|
|
} GimpCursorFormat;
|
|
|
|
|
|
#define GIMP_TYPE_HELP_BROWSER_TYPE (gimp_help_browser_type_get_type ())
|
|
|
|
GType gimp_help_browser_type_get_type (void) G_GNUC_CONST;
|
|
|
|
typedef enum
|
|
{
|
|
GIMP_HELP_BROWSER_GIMP, /*< desc="Internal" >*/
|
|
GIMP_HELP_BROWSER_WEB_BROWSER /*< desc="Web Browser" >*/
|
|
} GimpHelpBrowserType;
|
|
|
|
|
|
#define GIMP_TYPE_HISTOGRAM_SCALE (gimp_histogram_scale_get_type ())
|
|
|
|
GType gimp_histogram_scale_get_type (void) G_GNUC_CONST;
|
|
|
|
typedef enum
|
|
{
|
|
GIMP_HISTOGRAM_SCALE_LINEAR, /*< desc="Linear" >*/
|
|
GIMP_HISTOGRAM_SCALE_LOGARITHMIC /*< desc="Logarithmic" >*/
|
|
} GimpHistogramScale;
|
|
|
|
|
|
#define GIMP_TYPE_TAB_STYLE (gimp_tab_style_get_type ())
|
|
|
|
GType gimp_tab_style_get_type (void) G_GNUC_CONST;
|
|
|
|
typedef enum
|
|
{
|
|
GIMP_TAB_STYLE_ICON, /*< desc="Icon" >*/
|
|
GIMP_TAB_STYLE_PREVIEW, /*< desc="Current Status" >*/
|
|
GIMP_TAB_STYLE_NAME, /*< desc="Text" >*/
|
|
GIMP_TAB_STYLE_BLURB, /*< desc="Description" >*/
|
|
GIMP_TAB_STYLE_ICON_NAME, /*< desc="Icon & Text" >*/
|
|
GIMP_TAB_STYLE_ICON_BLURB, /*< desc="Icon & Desc" >*/
|
|
GIMP_TAB_STYLE_PREVIEW_NAME, /*< desc="Status & Text" >*/
|
|
GIMP_TAB_STYLE_PREVIEW_BLURB /*< desc="Status & Desc" >*/
|
|
} GimpTabStyle;
|
|
|
|
|
|
#define GIMP_TYPE_VIEW_TYPE (gimp_view_type_get_type ())
|
|
|
|
GType gimp_view_type_get_type (void) G_GNUC_CONST;
|
|
|
|
typedef enum
|
|
{
|
|
GIMP_VIEW_TYPE_LIST, /*< desc="View as List" >*/
|
|
GIMP_VIEW_TYPE_GRID /*< desc="View as Grid" >*/
|
|
} GimpViewType;
|
|
|
|
|
|
#define GIMP_TYPE_WINDOW_HINT (gimp_window_hint_get_type ())
|
|
|
|
GType gimp_window_hint_get_type (void) G_GNUC_CONST;
|
|
|
|
typedef enum
|
|
{
|
|
GIMP_WINDOW_HINT_NORMAL, /*< desc="Normal Window" >*/
|
|
GIMP_WINDOW_HINT_UTILITY, /*< desc="Utility Window" >*/
|
|
GIMP_WINDOW_HINT_KEEP_ABOVE /*< desc="Keep Above" >*/
|
|
} GimpWindowHint;
|
|
|
|
|
|
#define GIMP_TYPE_ZOOM_TYPE (gimp_zoom_type_get_type ())
|
|
|
|
GType gimp_zoom_type_get_type (void) G_GNUC_CONST;
|
|
|
|
typedef enum
|
|
{
|
|
GIMP_ZOOM_IN, /*< desc="Zoom in" >*/
|
|
GIMP_ZOOM_OUT, /*< desc="Zoom out" >*/
|
|
GIMP_ZOOM_TO /*< skip >*/
|
|
} GimpZoomType;
|
|
|
|
|
|
/*
|
|
* non-registered enums; register them if needed
|
|
*/
|
|
|
|
typedef enum /*< skip >*/
|
|
{
|
|
GIMP_PREVIEW_BG_CHECKS,
|
|
GIMP_PREVIEW_BG_WHITE
|
|
} GimpPreviewBG;
|
|
|
|
typedef enum /*< skip >*/
|
|
{
|
|
GIMP_PREVIEW_BORDER_BLACK,
|
|
GIMP_PREVIEW_BORDER_WHITE,
|
|
GIMP_PREVIEW_BORDER_RED,
|
|
GIMP_PREVIEW_BORDER_GREEN,
|
|
} GimpPreviewBorderType;
|
|
|
|
typedef enum /*< skip >*/
|
|
{
|
|
GIMP_DND_TYPE_NONE = 0,
|
|
GIMP_DND_TYPE_URI_LIST = 1,
|
|
GIMP_DND_TYPE_TEXT_PLAIN = 2,
|
|
GIMP_DND_TYPE_NETSCAPE_URL = 3,
|
|
GIMP_DND_TYPE_COLOR = 4,
|
|
GIMP_DND_TYPE_SVG = 5,
|
|
GIMP_DND_TYPE_SVG_XML = 6,
|
|
GIMP_DND_TYPE_IMAGE = 7,
|
|
GIMP_DND_TYPE_LAYER = 8,
|
|
GIMP_DND_TYPE_CHANNEL = 9,
|
|
GIMP_DND_TYPE_LAYER_MASK = 10,
|
|
GIMP_DND_TYPE_COMPONENT = 11,
|
|
GIMP_DND_TYPE_VECTORS = 12,
|
|
GIMP_DND_TYPE_BRUSH = 13,
|
|
GIMP_DND_TYPE_PATTERN = 14,
|
|
GIMP_DND_TYPE_GRADIENT = 15,
|
|
GIMP_DND_TYPE_PALETTE = 16,
|
|
GIMP_DND_TYPE_FONT = 17,
|
|
GIMP_DND_TYPE_BUFFER = 18,
|
|
GIMP_DND_TYPE_IMAGEFILE = 19,
|
|
GIMP_DND_TYPE_TEMPLATE = 20,
|
|
GIMP_DND_TYPE_TOOL = 21,
|
|
GIMP_DND_TYPE_DIALOG = 22,
|
|
|
|
GIMP_DND_TYPE_LAST = GIMP_DND_TYPE_DIALOG
|
|
} GimpDndType;
|
|
|
|
typedef enum /*< skip >*/
|
|
{
|
|
GIMP_DROP_NONE,
|
|
GIMP_DROP_ABOVE,
|
|
GIMP_DROP_BELOW
|
|
} GimpDropType;
|
|
|
|
typedef enum /*< skip >*/
|
|
{
|
|
GIMP_CURSOR_NONE = 1024, /* (GDK_LAST_CURSOR + 2) yes, this is insane */
|
|
GIMP_CURSOR_MOUSE,
|
|
GIMP_CURSOR_CROSSHAIR,
|
|
GIMP_CURSOR_CROSSHAIR_SMALL,
|
|
GIMP_CURSOR_BAD,
|
|
GIMP_CURSOR_ZOOM,
|
|
GIMP_CURSOR_COLOR_PICKER,
|
|
GIMP_CURSOR_LAST
|
|
} GimpCursorType;
|
|
|
|
typedef enum /*< skip >*/
|
|
{
|
|
GIMP_TOOL_CURSOR_NONE,
|
|
GIMP_TOOL_CURSOR_RECT_SELECT,
|
|
GIMP_TOOL_CURSOR_ELLIPSE_SELECT,
|
|
GIMP_TOOL_CURSOR_FREE_SELECT,
|
|
GIMP_TOOL_CURSOR_FUZZY_SELECT,
|
|
GIMP_TOOL_CURSOR_PATHS,
|
|
GIMP_TOOL_CURSOR_ISCISSORS,
|
|
GIMP_TOOL_CURSOR_MOVE,
|
|
GIMP_TOOL_CURSOR_ZOOM,
|
|
GIMP_TOOL_CURSOR_CROP,
|
|
GIMP_TOOL_CURSOR_RESIZE,
|
|
GIMP_TOOL_CURSOR_ROTATE,
|
|
GIMP_TOOL_CURSOR_SHEAR,
|
|
GIMP_TOOL_CURSOR_PERSPECTIVE,
|
|
GIMP_TOOL_CURSOR_FLIP_HORIZONTAL,
|
|
GIMP_TOOL_CURSOR_FLIP_VERTICAL,
|
|
GIMP_TOOL_CURSOR_TEXT,
|
|
GIMP_TOOL_CURSOR_COLOR_PICKER,
|
|
GIMP_TOOL_CURSOR_BUCKET_FILL,
|
|
GIMP_TOOL_CURSOR_BLEND,
|
|
GIMP_TOOL_CURSOR_PENCIL,
|
|
GIMP_TOOL_CURSOR_PAINTBRUSH,
|
|
GIMP_TOOL_CURSOR_AIRBRUSH,
|
|
GIMP_TOOL_CURSOR_INK,
|
|
GIMP_TOOL_CURSOR_CLONE,
|
|
GIMP_TOOL_CURSOR_ERASER,
|
|
GIMP_TOOL_CURSOR_SMUDGE,
|
|
GIMP_TOOL_CURSOR_BLUR,
|
|
GIMP_TOOL_CURSOR_DODGE,
|
|
GIMP_TOOL_CURSOR_BURN,
|
|
GIMP_TOOL_CURSOR_MEASURE,
|
|
GIMP_TOOL_CURSOR_HAND,
|
|
GIMP_TOOL_CURSOR_LAST
|
|
} GimpToolCursorType;
|
|
|
|
typedef enum /*< skip >*/
|
|
{
|
|
GIMP_CURSOR_MODIFIER_NONE,
|
|
GIMP_CURSOR_MODIFIER_PLUS,
|
|
GIMP_CURSOR_MODIFIER_MINUS,
|
|
GIMP_CURSOR_MODIFIER_INTERSECT,
|
|
GIMP_CURSOR_MODIFIER_MOVE,
|
|
GIMP_CURSOR_MODIFIER_RESIZE,
|
|
GIMP_CURSOR_MODIFIER_CONTROL,
|
|
GIMP_CURSOR_MODIFIER_ANCHOR,
|
|
GIMP_CURSOR_MODIFIER_FOREGROUND,
|
|
GIMP_CURSOR_MODIFIER_BACKGROUND,
|
|
GIMP_CURSOR_MODIFIER_PATTERN,
|
|
GIMP_CURSOR_MODIFIER_LAST
|
|
} GimpCursorModifier;
|
|
|
|
typedef enum /*< skip >*/
|
|
{
|
|
GIMP_DEVICE_VALUE_MODE = 1 << 0,
|
|
GIMP_DEVICE_VALUE_AXES = 1 << 1,
|
|
GIMP_DEVICE_VALUE_KEYS = 1 << 2,
|
|
GIMP_DEVICE_VALUE_TOOL = 1 << 3,
|
|
GIMP_DEVICE_VALUE_FOREGROUND = 1 << 4,
|
|
GIMP_DEVICE_VALUE_BACKGROUND = 1 << 5,
|
|
GIMP_DEVICE_VALUE_BRUSH = 1 << 6,
|
|
GIMP_DEVICE_VALUE_PATTERN = 1 << 7,
|
|
GIMP_DEVICE_VALUE_GRADIENT = 1 << 8
|
|
} GimpDeviceValues;
|
|
|
|
|
|
#endif /* __WIDGETS_ENUMS_H__ */
|