gimpitemcombobox.h 3.59 KB
Newer Older
1 2 3
/* LIBGIMP - The GIMP Library
 * Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
 *
Simon Budig's avatar
Simon Budig committed
4
 * gimpitemcombobox.h
5
 * Copyright (C) 2004 Sven Neumann <sven@gimp.org>
Simon Budig's avatar
Simon Budig committed
6
 * Copyright (C) 2006 Simon Budig <simon@gimp.org>
7
 *
8
 * This library is free software: you can redistribute it and/or
9 10
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
11
 * version 3 of the License, or (at your option) any later version.
12 13 14 15 16 17 18
 *
 * This library 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
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
19
 * License along with this library.  If not, see
20
 * <https://www.gnu.org/licenses/>.
21 22
 */

23 24 25 26
#if !defined (__GIMP_UI_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimpui.h> can be included directly."
#endif

Simon Budig's avatar
Simon Budig committed
27 28
#ifndef __GIMP_ITEM_COMBO_BOX_H__
#define __GIMP_ITEM_COMBO_BOX_H__
29 30 31 32 33 34

G_BEGIN_DECLS

/* For information look into the C source or the html documentation */


Manish Singh's avatar
Manish Singh committed
35
#define GIMP_TYPE_DRAWABLE_COMBO_BOX    (gimp_drawable_combo_box_get_type ())
36
#define GIMP_DRAWABLE_COMBO_BOX(obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_DRAWABLE_COMBO_BOX, GimpDrawableComboBox))
37
#define GIMP_IS_DRAWABLE_COMBO_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_DRAWABLE_COMBO_BOX))
Manish Singh's avatar
Manish Singh committed
38 39

#define GIMP_TYPE_CHANNEL_COMBO_BOX     (gimp_channel_combo_box_get_type ())
40
#define GIMP_CHANNEL_COMBO_BOX(obj)     (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_CHANNEL_COMBO_BOX, GimpChannelComboBox))
41
#define GIMP_IS_CHANNEL_COMBO_BOX(obj)  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_CHANNEL_COMBO_BOX))
Manish Singh's avatar
Manish Singh committed
42 43

#define GIMP_TYPE_LAYER_COMBO_BOX       (gimp_layer_combo_box_get_type ())
44
#define GIMP_LAYER_COMBO_BOX(obj)       (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_LAYER_COMBO_BOX, GimpLayerComboBox))
45
#define GIMP_IS_LAYER_COMBO_BOX(obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_LAYER_COMBO_BOX))
Manish Singh's avatar
Manish Singh committed
46

Simon Budig's avatar
Simon Budig committed
47 48
#define GIMP_TYPE_VECTORS_COMBO_BOX     (gimp_vectors_combo_box_get_type ())
#define GIMP_VECTORS_COMBO_BOX(obj)     (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_VECTORS_COMBO_BOX, GimpVectorsComboBox))
49
#define GIMP_IS_VECTORS_COMBO_BOX(obj)  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_VECTORS_COMBO_BOX))
Manish Singh's avatar
Manish Singh committed
50

Simon Budig's avatar
Simon Budig committed
51 52 53 54 55 56 57

typedef gboolean (* GimpItemConstraintFunc) (gint32   image_id,
                                             gint32   item_id,
                                             gpointer data);

typedef GimpItemConstraintFunc GimpVectorsConstraintFunc;
typedef GimpItemConstraintFunc GimpDrawableConstraintFunc;
58 59


Manish Singh's avatar
Manish Singh committed
60 61 62
GType       gimp_drawable_combo_box_get_type (void) G_GNUC_CONST;
GType       gimp_channel_combo_box_get_type  (void) G_GNUC_CONST;
GType       gimp_layer_combo_box_get_type    (void) G_GNUC_CONST;
Simon Budig's avatar
Simon Budig committed
63
GType       gimp_vectors_combo_box_get_type  (void) G_GNUC_CONST;
Manish Singh's avatar
Manish Singh committed
64

65 66 67 68 69 70
GtkWidget * gimp_drawable_combo_box_new (GimpDrawableConstraintFunc constraint,
                                         gpointer                   data);
GtkWidget * gimp_channel_combo_box_new  (GimpDrawableConstraintFunc constraint,
                                         gpointer                   data);
GtkWidget * gimp_layer_combo_box_new    (GimpDrawableConstraintFunc constraint,
                                         gpointer                   data);
Simon Budig's avatar
Simon Budig committed
71 72
GtkWidget * gimp_vectors_combo_box_new  (GimpVectorsConstraintFunc  constraint,
                                         gpointer                   data);
73 74 75 76


G_END_DECLS

Simon Budig's avatar
Simon Budig committed
77
#endif /* __GIMP_ITEM_COMBO_BOX_H__ */