1 /* LIBGIMP - The GIMP Library 2 * Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball 3 * 4 * This library is free software: you can redistribute it and/or 5 * modify it under the terms of the GNU Lesser General Public 6 * License as published by the Free Software Foundation; either 7 * version 3 of the License, or (at your option) any later version. 8 * 9 * This library 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 GNU 12 * Library General Public License for more details. 13 * 14 * You should have received a copy of the GNU Lesser General Public 15 * License along with this library. If not, see 16 * <https://www.gnu.org/licenses/>. 17 */ 18 19 #ifndef __GIMP_WIDGETS_ENUMS_H__ 20 #define __GIMP_WIDGETS_ENUMS_H__ 21 22 23 G_BEGIN_DECLS 24 25 /* For information look into the C source or the html documentation */ 26 27 28 /** 29 * GimpAspectType: 30 * @GIMP_ASPECT_SQUARE: it's a 1:1 square 31 * @GIMP_ASPECT_PORTRAIT: it's higher than it's wide 32 * @GIMP_ASPECT_LANDSCAPE: it's wider than it's high 33 * 34 * Aspect ratios. 35 **/ 36 #define GIMP_TYPE_ASPECT_TYPE (gimp_aspect_type_get_type ()) 37 38 GType gimp_aspect_type_get_type (void) G_GNUC_CONST; 39 40 typedef enum 41 { 42 GIMP_ASPECT_SQUARE, /*< desc="Square" >*/ 43 GIMP_ASPECT_PORTRAIT, /*< desc="Portrait" >*/ 44 GIMP_ASPECT_LANDSCAPE /*< desc="Landscape" >*/ 45 } GimpAspectType; 46 47 48 /** 49 * GimpChainPosition: 50 * @GIMP_CHAIN_TOP: the chain is on top 51 * @GIMP_CHAIN_LEFT: the chain is to the left 52 * @GIMP_CHAIN_BOTTOM: the chain is on bottom 53 * @GIMP_CHAIN_RIGHT: the chain is to the right 54 * 55 * Possible chain positions for #GimpChainButton. 56 **/ 57 #define GIMP_TYPE_CHAIN_POSITION (gimp_chain_position_get_type ()) 58 59 GType gimp_chain_position_get_type (void) G_GNUC_CONST; 60 61 typedef enum 62 { 63 GIMP_CHAIN_TOP, 64 GIMP_CHAIN_LEFT, 65 GIMP_CHAIN_BOTTOM, 66 GIMP_CHAIN_RIGHT 67 } GimpChainPosition; 68 69 70 /** 71 * GimpColorAreaType: 72 * @GIMP_COLOR_AREA_FLAT: don't display transparency 73 * @GIMP_COLOR_AREA_SMALL_CHECKS: display transparency using small checks 74 * @GIMP_COLOR_AREA_LARGE_CHECKS: display transparency using large checks 75 * 76 * The types of transparency display for #GimpColorArea. 77 **/ 78 #define GIMP_TYPE_COLOR_AREA_TYPE (gimp_color_area_type_get_type ()) 79 80 GType gimp_color_area_type_get_type (void) G_GNUC_CONST; 81 82 typedef enum 83 { 84 GIMP_COLOR_AREA_FLAT = 0, 85 GIMP_COLOR_AREA_SMALL_CHECKS, 86 GIMP_COLOR_AREA_LARGE_CHECKS 87 } GimpColorAreaType; 88 89 90 /** 91 * GimpColorSelectorChannel: 92 * @GIMP_COLOR_SELECTOR_HUE: the hue channel 93 * @GIMP_COLOR_SELECTOR_SATURATION: the saturation channel 94 * @GIMP_COLOR_SELECTOR_VALUE: the value channel 95 * @GIMP_COLOR_SELECTOR_RED: the red channel 96 * @GIMP_COLOR_SELECTOR_GREEN: the green channel 97 * @GIMP_COLOR_SELECTOR_BLUE: the blue channel 98 * @GIMP_COLOR_SELECTOR_ALPHA: the alpha channel 99 * @GIMP_COLOR_SELECTOR_LCH_LIGHTNESS: the lightness channel 100 * @GIMP_COLOR_SELECTOR_LCH_CHROMA: the chroma channel 101 * @GIMP_COLOR_SELECTOR_LCH_HUE: the hue channel 102 * 103 * An enum to specify the types of color channels edited in 104 * #GimpColorSelector widgets. 105 **/ 106 #define GIMP_TYPE_COLOR_SELECTOR_CHANNEL (gimp_color_selector_channel_get_type ()) 107 108 GType gimp_color_selector_channel_get_type (void) G_GNUC_CONST; 109 110 typedef enum 111 { 112 GIMP_COLOR_SELECTOR_HUE, /*< desc="_H", help="HSV Hue" >*/ 113 GIMP_COLOR_SELECTOR_SATURATION, /*< desc="_S", help="HSV Saturation" >*/ 114 GIMP_COLOR_SELECTOR_VALUE, /*< desc="_V", help="HSV Value" >*/ 115 GIMP_COLOR_SELECTOR_RED, /*< desc="_R", help="Red" >*/ 116 GIMP_COLOR_SELECTOR_GREEN, /*< desc="_G", help="Green" >*/ 117 GIMP_COLOR_SELECTOR_BLUE, /*< desc="_B", help="Blue" >*/ 118 GIMP_COLOR_SELECTOR_ALPHA, /*< desc="_A", help="Alpha" >*/ 119 GIMP_COLOR_SELECTOR_LCH_LIGHTNESS, /*< desc="_L", help="LCh Lightness" >*/ 120 GIMP_COLOR_SELECTOR_LCH_CHROMA, /*< desc="_C", help="LCh Chroma" >*/ 121 GIMP_COLOR_SELECTOR_LCH_HUE /*< desc="_h", help="LCh Hue" >*/ 122 } GimpColorSelectorChannel; 123 124 125 /** 126 * GimpColorSelectorModel: 127 * @GIMP_COLOR_SELECTOR_MODEL_RGB: RGB color model 128 * @GIMP_COLOR_SELECTOR_MODEL_LCH: CIE LCh color model 129 * @GIMP_COLOR_SELECTOR_MODEL_HSV: HSV color model 130 * 131 * An enum to specify the types of color spaces edited in 132 * #GimpColorSelector widgets. 133 * 134 * Since: 2.10 135 **/ 136 #define GIMP_TYPE_COLOR_SELECTOR_MODEL (gimp_color_selector_model_get_type ()) 137 138 GType gimp_color_selector_model_get_type (void) G_GNUC_CONST; 139 140 typedef enum 141 { 142 GIMP_COLOR_SELECTOR_MODEL_RGB, /*< desc="RGB", help="RGB color model" >*/ 143 GIMP_COLOR_SELECTOR_MODEL_LCH, /*< desc="LCH", help="CIE LCh color model" >*/ 144 GIMP_COLOR_SELECTOR_MODEL_HSV /*< desc="HSV", help="HSV color model" >*/ 145 } GimpColorSelectorModel; 146 147 148 /** 149 * GimpIntComboBoxLayout: 150 * @GIMP_INT_COMBO_BOX_LAYOUT_ICON_ONLY: show icons only 151 * @GIMP_INT_COMBO_BOX_LAYOUT_ABBREVIATED: show icons and abbreviated labels, 152 * when available 153 * @GIMP_INT_COMBO_BOX_LAYOUT_FULL: show icons and full labels 154 * 155 * Possible layouts for #GimpIntComboBox. 156 * 157 * Since: 2.10 158 **/ 159 #define GIMP_TYPE_INT_COMBO_BOX_LAYOUT (gimp_int_combo_box_layout_get_type ()) 160 161 GType gimp_int_combo_box_layout_get_type (void) G_GNUC_CONST; 162 163 typedef enum 164 { 165 GIMP_INT_COMBO_BOX_LAYOUT_ICON_ONLY, 166 GIMP_INT_COMBO_BOX_LAYOUT_ABBREVIATED, 167 GIMP_INT_COMBO_BOX_LAYOUT_FULL 168 } GimpIntComboBoxLayout; 169 170 171 /** 172 * GimpPageSelectorTarget: 173 * @GIMP_PAGE_SELECTOR_TARGET_LAYERS: import as layers of one image 174 * @GIMP_PAGE_SELECTOR_TARGET_IMAGES: import as separate images 175 * 176 * Import targets for #GimpPageSelector. 177 **/ 178 #define GIMP_TYPE_PAGE_SELECTOR_TARGET (gimp_page_selector_target_get_type ()) 179 180 GType gimp_page_selector_target_get_type (void) G_GNUC_CONST; 181 182 typedef enum 183 { 184 GIMP_PAGE_SELECTOR_TARGET_LAYERS, /*< desc="Layers" >*/ 185 GIMP_PAGE_SELECTOR_TARGET_IMAGES /*< desc="Images" >*/ 186 } GimpPageSelectorTarget; 187 188 189 /** 190 * GimpSizeEntryUpdatePolicy: 191 * @GIMP_SIZE_ENTRY_UPDATE_NONE: the size entry's meaning is up to the user 192 * @GIMP_SIZE_ENTRY_UPDATE_SIZE: the size entry displays values 193 * @GIMP_SIZE_ENTRY_UPDATE_RESOLUTION: the size entry displays resolutions 194 * 195 * Update policies for #GimpSizeEntry. 196 **/ 197 #define GIMP_TYPE_SIZE_ENTRY_UPDATE_POLICY (gimp_size_entry_update_policy_get_type ()) 198 199 GType gimp_size_entry_update_policy_get_type (void) G_GNUC_CONST; 200 201 typedef enum 202 { 203 GIMP_SIZE_ENTRY_UPDATE_NONE = 0, 204 GIMP_SIZE_ENTRY_UPDATE_SIZE = 1, 205 GIMP_SIZE_ENTRY_UPDATE_RESOLUTION = 2 206 } GimpSizeEntryUpdatePolicy; 207 208 209 /** 210 * GimpZoomType: 211 * @GIMP_ZOOM_IN: zoom in 212 * @GIMP_ZOOM_OUT: zoom out 213 * @GIMP_ZOOM_IN_MORE: zoom in a lot 214 * @GIMP_ZOOM_OUT_MORE: zoom out a lot 215 * @GIMP_ZOOM_IN_MAX: zoom in as far as possible 216 * @GIMP_ZOOM_OUT_MAX: zoom out as far as possible 217 * @GIMP_ZOOM_TO: zoom to a specific zoom factor 218 * 219 * the zoom types for #GimpZoomModel. 220 **/ 221 #define GIMP_TYPE_ZOOM_TYPE (gimp_zoom_type_get_type ()) 222 223 GType gimp_zoom_type_get_type (void) G_GNUC_CONST; 224 225 typedef enum 226 { 227 GIMP_ZOOM_IN, /*< desc="Zoom in" >*/ 228 GIMP_ZOOM_OUT, /*< desc="Zoom out" >*/ 229 GIMP_ZOOM_IN_MORE, /*< skip >*/ 230 GIMP_ZOOM_OUT_MORE, /*< skip >*/ 231 GIMP_ZOOM_IN_MAX, /*< skip >*/ 232 GIMP_ZOOM_OUT_MAX, /*< skip >*/ 233 GIMP_ZOOM_TO /*< skip >*/ 234 } GimpZoomType; 235 236 237 G_END_DECLS 238 239 #endif /* __GIMP_WIDGETS_ENUMS_H__ */ 240