widgets-types.h 14.4 KB
Newer Older
1
/* GIMP - The GNU Image Manipulation Program
2 3
 * Copyright (C) 1995 Spencer Kimball and Peter Mattis
 *
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 3 of the License, or
7 8 9 10 11 12 13 14
 * (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
15
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
16 17 18 19 20 21
 */

#ifndef __WIDGETS_TYPES_H__
#define __WIDGETS_TYPES_H__


22 23
#include "libgimpwidgets/gimpwidgetstypes.h"

24 25
#include "core/core-types.h"

26
#include "widgets/widgets-enums.h"
27

28

29
/*  input devices & controllers  */
30

31 32
typedef struct _GimpControllerInfo           GimpControllerInfo;
typedef struct _GimpControllerKeyboard       GimpControllerKeyboard;
33
typedef struct _GimpControllerMouse          GimpControllerMouse;
34
typedef struct _GimpControllerWheel          GimpControllerWheel;
35 36
typedef struct _GimpDeviceInfo               GimpDeviceInfo;
typedef struct _GimpDeviceManager            GimpDeviceManager;
37 38 39 40 41


/*  docks  */

typedef struct _GimpDock                     GimpDock;
42
typedef struct _GimpDockColumns              GimpDockColumns;
43
typedef struct _GimpDockContainer            GimpDockContainer; /* dummy typedef */
44
typedef struct _GimpDockWindow               GimpDockWindow;
45
typedef struct _GimpDockable                 GimpDockable;
46
typedef struct _GimpDockbook                 GimpDockbook;
47
typedef struct _GimpDocked                   GimpDocked; /* dummy typedef */
48
typedef struct _GimpMenuDock                 GimpMenuDock;
Martin Nordholts's avatar
Martin Nordholts committed
49
typedef struct _GimpPanedBox                 GimpPanedBox;
50
typedef struct _GimpToolbox                  GimpToolbox;
51 52 53 54 55 56


/*  GimpEditor widgets  */

typedef struct _GimpColorEditor              GimpColorEditor;
typedef struct _GimpDeviceStatus             GimpDeviceStatus;
57
typedef struct _GimpEditor                   GimpEditor;
58 59
typedef struct _GimpErrorConsole             GimpErrorConsole;
typedef struct _GimpToolOptionsEditor        GimpToolOptionsEditor;
60
typedef struct _GimpDashboard                GimpDashboard;
61 62 63 64 65


/*  GimpDataEditor widgets  */

typedef struct _GimpBrushEditor              GimpBrushEditor;
66
typedef struct _GimpDataEditor               GimpDataEditor;
67
typedef struct _GimpDynamicsEditor           GimpDynamicsEditor;
68 69
typedef struct _GimpGradientEditor           GimpGradientEditor;
typedef struct _GimpPaletteEditor            GimpPaletteEditor;
70
typedef struct _GimpToolPresetEditor         GimpToolPresetEditor;
71

72

73 74 75 76 77
/*  GimpImageEditor widgets  */

typedef struct _GimpColormapEditor           GimpColormapEditor;
typedef struct _GimpComponentEditor          GimpComponentEditor;
typedef struct _GimpHistogramEditor          GimpHistogramEditor;
78
typedef struct _GimpImageEditor              GimpImageEditor;
79
typedef struct _GimpSamplePointEditor        GimpSamplePointEditor;
80
typedef struct _GimpSelectionEditor          GimpSelectionEditor;
Jehan's avatar
Jehan committed
81
typedef struct _GimpSymmetryEditor           GimpSymmetryEditor;
82 83 84 85 86
typedef struct _GimpUndoEditor               GimpUndoEditor;


/*  GimpContainerView and its implementors  */

87
typedef struct _GimpChannelTreeView          GimpChannelTreeView;
88 89 90 91
typedef struct _GimpContainerBox             GimpContainerBox;
typedef struct _GimpContainerComboBox        GimpContainerComboBox;
typedef struct _GimpContainerEntry           GimpContainerEntry;
typedef struct _GimpContainerGridView        GimpContainerGridView;
92
typedef struct _GimpContainerIconView        GimpContainerIconView;
93
typedef struct _GimpContainerTreeStore       GimpContainerTreeStore;
94
typedef struct _GimpContainerTreeView        GimpContainerTreeView;
95
typedef struct _GimpContainerView            GimpContainerView; /* dummy typedef */
96
typedef struct _GimpDrawableTreeView         GimpDrawableTreeView;
97
typedef struct _GimpItemTreeView             GimpItemTreeView;
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112
typedef struct _GimpLayerTreeView            GimpLayerTreeView;
typedef struct _GimpVectorsTreeView          GimpVectorsTreeView;

typedef struct _GimpContainerPopup           GimpContainerPopup;
typedef struct _GimpViewableButton           GimpViewableButton;


/*  GimpContainerEditor widgets  */

typedef struct _GimpContainerEditor          GimpContainerEditor;
typedef struct _GimpBufferView               GimpBufferView;
typedef struct _GimpDocumentView             GimpDocumentView;
typedef struct _GimpFontView                 GimpFontView;
typedef struct _GimpImageView                GimpImageView;
typedef struct _GimpTemplateView             GimpTemplateView;
113
typedef struct _GimpToolEditor               GimpToolEditor;
114 115 116 117 118


/*  GimpDataFactoryView widgets  */

typedef struct _GimpBrushFactoryView         GimpBrushFactoryView;
119
typedef struct _GimpDataFactoryView          GimpDataFactoryView;
120
typedef struct _GimpDynamicsFactoryView      GimpDynamicsFactoryView;
121
typedef struct _GimpFontFactoryView          GimpFontFactoryView;
122
typedef struct _GimpPatternFactoryView       GimpPatternFactoryView;
123
typedef struct _GimpToolPresetFactoryView    GimpToolPresetFactoryView;
124

125

126
/*  menus  */
127

128
typedef struct _GimpAction                   GimpAction;
129
typedef struct _GimpActionFactory            GimpActionFactory;
130 131
typedef struct _GimpActionGroup              GimpActionGroup;
typedef struct _GimpEnumAction               GimpEnumAction;
132
typedef struct _GimpMenuFactory              GimpMenuFactory;
133
typedef struct _GimpProcedureAction          GimpProcedureAction;
134
typedef struct _GimpStringAction             GimpStringAction;
135
typedef struct _GimpUIManager                GimpUIManager;
136

137

138 139 140 141 142 143
/*  file dialogs  */

typedef struct _GimpExportDialog             GimpExportDialog;
typedef struct _GimpFileDialog               GimpFileDialog;
typedef struct _GimpOpenDialog               GimpOpenDialog;
typedef struct _GimpSaveDialog               GimpSaveDialog;
144

145

146 147
/*  misc dialogs  */

148
typedef struct _GimpColorDialog              GimpColorDialog;
149
typedef struct _GimpCriticalDialog           GimpCriticalDialog;
150
typedef struct _GimpErrorDialog              GimpErrorDialog;
151
typedef struct _GimpMessageDialog            GimpMessageDialog;
152
typedef struct _GimpProgressDialog           GimpProgressDialog;
153 154 155 156 157 158 159
typedef struct _GimpTextEditor               GimpTextEditor;
typedef struct _GimpViewableDialog           GimpViewableDialog;


/*  GimpPdbDialog widgets  */

typedef struct _GimpBrushSelect              GimpBrushSelect;
160
typedef struct _GimpFontSelect               GimpFontSelect;
161 162 163
typedef struct _GimpGradientSelect           GimpGradientSelect;
typedef struct _GimpPaletteSelect            GimpPaletteSelect;
typedef struct _GimpPatternSelect            GimpPatternSelect;
164
typedef struct _GimpPdbDialog                GimpPdbDialog;
165 166 167 168


/*  misc widgets  */

169
typedef struct _GimpActionEditor             GimpActionEditor;
170
typedef struct _GimpActionView               GimpActionView;
171
typedef struct _GimpBlobEditor               GimpBlobEditor;
172
typedef struct _GimpBufferSourceBox          GimpBufferSourceBox;
173
typedef struct _GimpCircle                   GimpCircle;
174 175 176
typedef struct _GimpColorBar                 GimpColorBar;
typedef struct _GimpColorDisplayEditor       GimpColorDisplayEditor;
typedef struct _GimpColorFrame               GimpColorFrame;
177
typedef struct _GimpColorHistory             GimpColorHistory;
178
typedef struct _GimpColorPanel               GimpColorPanel;
179
typedef struct _GimpComboTagEntry            GimpComboTagEntry;
180
typedef struct _GimpControllerEditor         GimpControllerEditor;
181
typedef struct _GimpControllerList           GimpControllerList;
182
typedef struct _GimpCurveView                GimpCurveView;
183
typedef struct _GimpDashEditor               GimpDashEditor;
184 185
typedef struct _GimpDeviceEditor             GimpDeviceEditor;
typedef struct _GimpDeviceInfoEditor         GimpDeviceInfoEditor;
186
typedef struct _GimpDial                     GimpDial;
187
typedef struct _GimpDynamicsOutputEditor     GimpDynamicsOutputEditor;
188
typedef struct _GimpExtensionDetails         GimpExtensionDetails;
189
typedef struct _GimpExtensionList            GimpExtensionList;
190
typedef struct _GimpFgBgEditor               GimpFgBgEditor;
191
typedef struct _GimpFgBgView                 GimpFgBgView;
192
typedef struct _GimpFileProcView             GimpFileProcView;
193
typedef struct _GimpFillEditor               GimpFillEditor;
194
typedef struct _GimpGridEditor               GimpGridEditor;
195
typedef struct _GimpHandleBar                GimpHandleBar;
Ell's avatar
Ell committed
196
typedef struct _GimpHighlightableButton      GimpHighlightableButton;
197 198
typedef struct _GimpHistogramBox             GimpHistogramBox;
typedef struct _GimpHistogramView            GimpHistogramView;
199
typedef struct _GimpIconPicker               GimpIconPicker;
200
typedef struct _GimpImageCommentEditor       GimpImageCommentEditor;
201
typedef struct _GimpImageParasiteView        GimpImageParasiteView;
202
typedef struct _GimpImageProfileView         GimpImageProfileView;
203 204
typedef struct _GimpImagePropView            GimpImagePropView;
typedef struct _GimpLanguageComboBox         GimpLanguageComboBox;
205
typedef struct _GimpLanguageEntry            GimpLanguageEntry;
206
typedef struct _GimpLanguageStore            GimpLanguageStore;
207
typedef struct _GimpLayerModeBox             GimpLayerModeBox;
208
typedef struct _GimpLayerModeComboBox        GimpLayerModeComboBox;
209
typedef struct _GimpMessageBox               GimpMessageBox;
Ell's avatar
Ell committed
210
typedef struct _GimpMeter                    GimpMeter;
211
typedef struct _GimpOverlayBox               GimpOverlayBox;
212
typedef struct _GimpPickableButton           GimpPickableButton;
213
typedef struct _GimpPickablePopup            GimpPickablePopup;
214
typedef struct _GimpPlugInView               GimpPlugInView;
215
typedef struct _GimpPolar                    GimpPolar;
216
typedef struct _GimpPopup                    GimpPopup;
217
typedef struct _GimpPrefsBox                 GimpPrefsBox;
218
typedef struct _GimpProgressBox              GimpProgressBox;
219
typedef struct _GimpScaleButton              GimpScaleButton;
220
typedef struct _GimpSettingsBox              GimpSettingsBox;
221
typedef struct _GimpSettingsEditor           GimpSettingsEditor;
222
typedef struct _GimpSizeBox                  GimpSizeBox;
223
typedef struct _GimpStrokeEditor             GimpStrokeEditor;
224 225
typedef struct _GimpTagEntry                 GimpTagEntry;
typedef struct _GimpTagPopup                 GimpTagPopup;
226
typedef struct _GimpTemplateEditor           GimpTemplateEditor;
227
typedef struct _GimpTextStyleEditor          GimpTextStyleEditor;
228
typedef struct _GimpThumbBox                 GimpThumbBox;
229
typedef struct _GimpToolPalette              GimpToolPalette;
230
typedef struct _GimpTranslationStore         GimpTranslationStore;
231
typedef struct _GimpWindow                   GimpWindow;
232 233


234
/*  views  */
235

236
typedef struct _GimpNavigationView           GimpNavigationView;
237 238
typedef struct _GimpPaletteView              GimpPaletteView;
typedef struct _GimpView                     GimpView;
239 240


241
/*  view renderers  */
242

243
typedef struct _GimpViewRenderer             GimpViewRenderer;
244
typedef struct _GimpViewRendererBrush        GimpViewRendererBrush;
245
typedef struct _GimpViewRendererBuffer       GimpViewRendererBuffer;
246 247 248 249
typedef struct _GimpViewRendererDrawable     GimpViewRendererDrawable;
typedef struct _GimpViewRendererGradient     GimpViewRendererGradient;
typedef struct _GimpViewRendererImage        GimpViewRendererImage;
typedef struct _GimpViewRendererImagefile    GimpViewRendererImagefile;
250 251
typedef struct _GimpViewRendererLayer        GimpViewRendererLayer;
typedef struct _GimpViewRendererPalette      GimpViewRendererPalette;
252
typedef struct _GimpViewRendererVectors      GimpViewRendererVectors;
253

254

255 256
/*  cell renderers  */

257
typedef struct _GimpCellRendererButton       GimpCellRendererButton;
258
typedef struct _GimpCellRendererDashes       GimpCellRendererDashes;
259 260 261
typedef struct _GimpCellRendererViewable     GimpCellRendererViewable;


262
/*  misc objects  */
263

264
typedef struct _GimpDialogFactory            GimpDialogFactory;
265
typedef struct _GimpTextBuffer               GimpTextBuffer;
266
typedef struct _GimpUIConfigurer             GimpUIConfigurer;
267
typedef struct _GimpWindowStrategy           GimpWindowStrategy;
268

269

270 271 272
/*  session management objects and structs  */

typedef struct _GimpSessionInfo              GimpSessionInfo;
273
typedef struct _GimpSessionInfoAux           GimpSessionInfoAux;
274
typedef struct _GimpSessionInfoBook          GimpSessionInfoBook;
275
typedef struct _GimpSessionInfoDock          GimpSessionInfoDock;
276
typedef struct _GimpSessionInfoDockable      GimpSessionInfoDockable;
277
typedef struct _GimpSessionManaged           GimpSessionManaged;
278 279


280 281
/*  structs  */

282 283
typedef struct _GimpActionEntry              GimpActionEntry;
typedef struct _GimpEnumActionEntry          GimpEnumActionEntry;
284
typedef struct _GimpProcedureActionEntry     GimpProcedureActionEntry;
285 286 287
typedef struct _GimpRadioActionEntry         GimpRadioActionEntry;
typedef struct _GimpStringActionEntry        GimpStringActionEntry;
typedef struct _GimpToggleActionEntry        GimpToggleActionEntry;
288

289
typedef struct _GimpDialogFactoryEntry       GimpDialogFactoryEntry;
290

291

292 293
/*  function types  */

294
typedef GtkWidget * (* GimpDialogRestoreFunc)        (GimpDialogFactory *factory,
295
                                                      GdkMonitor        *monitor,
296 297 298 299 300 301 302 303 304 305 306 307
                                                      GimpSessionInfo   *info);
typedef void        (* GimpActionGroupSetupFunc)     (GimpActionGroup   *group);
typedef void        (* GimpActionGroupUpdateFunc)    (GimpActionGroup   *group,
                                                      gpointer           data);

typedef void        (* GimpUIManagerSetupFunc)       (GimpUIManager     *manager,
                                                      const gchar       *ui_path);

typedef void        (* GimpMenuPositionFunc)         (GtkMenu           *menu,
                                                      gint              *x,
                                                      gint              *y,
                                                      gpointer           data);
308 309
typedef gboolean    (* GimpPanedBoxDroppedFunc)      (GtkWidget         *notebook,
                                                      GtkWidget         *child,
310 311
                                                      gint               insert_index,
                                                      gpointer           data);
312 313 314


#endif /* __WIDGETS_TYPES_H__ */