2004-04-21 06:14:49 +08:00
|
|
|
/* LIBGIMP - The GIMP Library
|
|
|
|
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
|
|
|
*
|
2006-11-16 07:20:06 +08:00
|
|
|
* gimpitemcombobox.h
|
2004-04-21 06:14:49 +08:00
|
|
|
* Copyright (C) 2004 Sven Neumann <sven@gimp.org>
|
2006-11-16 07:20:06 +08:00
|
|
|
* Copyright (C) 2006 Simon Budig <simon@gimp.org>
|
2004-04-21 06:14:49 +08:00
|
|
|
*
|
2009-01-18 06:28:01 +08:00
|
|
|
* This library is free software: you can redistribute it and/or
|
2004-04-21 06:14:49 +08:00
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
2009-01-18 06:28:01 +08:00
|
|
|
* version 3 of the License, or (at your option) any later version.
|
2004-04-21 06:14:49 +08:00
|
|
|
*
|
|
|
|
* 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
|
2009-01-18 06:28:01 +08:00
|
|
|
* License along with this library. If not, see
|
2018-07-12 05:27:07 +08:00
|
|
|
* <https://www.gnu.org/licenses/>.
|
2004-04-21 06:14:49 +08:00
|
|
|
*/
|
|
|
|
|
2011-04-29 01:59:52 +08:00
|
|
|
#if !defined (__GIMP_UI_H_INSIDE__) && !defined (GIMP_COMPILATION)
|
|
|
|
#error "Only <libgimp/gimpui.h> can be included directly."
|
|
|
|
#endif
|
|
|
|
|
2006-11-16 07:20:06 +08:00
|
|
|
#ifndef __GIMP_ITEM_COMBO_BOX_H__
|
|
|
|
#define __GIMP_ITEM_COMBO_BOX_H__
|
2004-04-21 06:14:49 +08:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
/* For information look into the C source or the html documentation */
|
|
|
|
|
|
|
|
|
2005-06-04 07:38:45 +08:00
|
|
|
#define GIMP_TYPE_DRAWABLE_COMBO_BOX (gimp_drawable_combo_box_get_type ())
|
2005-06-05 06:11:56 +08:00
|
|
|
#define GIMP_DRAWABLE_COMBO_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_DRAWABLE_COMBO_BOX, GimpDrawableComboBox))
|
2012-10-09 04:01:30 +08:00
|
|
|
#define GIMP_IS_DRAWABLE_COMBO_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_DRAWABLE_COMBO_BOX))
|
2005-06-04 07:38:45 +08:00
|
|
|
|
|
|
|
#define GIMP_TYPE_CHANNEL_COMBO_BOX (gimp_channel_combo_box_get_type ())
|
2005-06-05 06:11:56 +08:00
|
|
|
#define GIMP_CHANNEL_COMBO_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_CHANNEL_COMBO_BOX, GimpChannelComboBox))
|
2012-10-09 04:01:30 +08:00
|
|
|
#define GIMP_IS_CHANNEL_COMBO_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_CHANNEL_COMBO_BOX))
|
2005-06-04 07:38:45 +08:00
|
|
|
|
|
|
|
#define GIMP_TYPE_LAYER_COMBO_BOX (gimp_layer_combo_box_get_type ())
|
2005-06-05 06:11:56 +08:00
|
|
|
#define GIMP_LAYER_COMBO_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_LAYER_COMBO_BOX, GimpLayerComboBox))
|
2012-10-09 04:01:30 +08:00
|
|
|
#define GIMP_IS_LAYER_COMBO_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_LAYER_COMBO_BOX))
|
2005-06-04 07:38:45 +08:00
|
|
|
|
2024-07-13 13:07:57 +08:00
|
|
|
#define GIMP_TYPE_PATH_COMBO_BOX (gimp_path_combo_box_get_type ())
|
|
|
|
#define GIMP_PATH_COMBO_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_PATH_COMBO_BOX, GimpPathComboBox))
|
|
|
|
#define GIMP_IS_PATH_COMBO_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_PATH_COMBO_BOX))
|
2005-06-04 07:38:45 +08:00
|
|
|
|
2006-11-16 07:20:06 +08:00
|
|
|
|
2005-06-04 07:38:45 +08:00
|
|
|
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;
|
2024-07-13 13:07:57 +08:00
|
|
|
GType gimp_path_combo_box_get_type (void) G_GNUC_CONST;
|
2005-06-04 07:38:45 +08:00
|
|
|
|
2020-05-05 03:31:30 +08:00
|
|
|
/**
|
|
|
|
* GimpItemConstraintFunc:
|
|
|
|
* @image:
|
|
|
|
* @item:
|
|
|
|
* @data: (closure):
|
|
|
|
*/
|
2019-08-13 06:42:10 +08:00
|
|
|
typedef gboolean (* GimpItemConstraintFunc) (GimpImage *image,
|
2019-08-14 17:08:42 +08:00
|
|
|
GimpItem *item,
|
2019-08-13 06:42:10 +08:00
|
|
|
gpointer data);
|
|
|
|
|
2019-08-08 05:16:25 +08:00
|
|
|
GtkWidget * gimp_drawable_combo_box_new (GimpItemConstraintFunc constraint,
|
|
|
|
gpointer data,
|
|
|
|
GDestroyNotify data_destroy);
|
|
|
|
GtkWidget * gimp_channel_combo_box_new (GimpItemConstraintFunc constraint,
|
|
|
|
gpointer data,
|
|
|
|
GDestroyNotify data_destroy);
|
|
|
|
GtkWidget * gimp_layer_combo_box_new (GimpItemConstraintFunc constraint,
|
|
|
|
gpointer data,
|
|
|
|
GDestroyNotify data_destroy);
|
2024-07-13 13:07:57 +08:00
|
|
|
GtkWidget * gimp_path_combo_box_new (GimpItemConstraintFunc constraint,
|
2019-08-08 05:16:25 +08:00
|
|
|
gpointer data,
|
|
|
|
GDestroyNotify data_destroy);
|
2004-04-21 06:14:49 +08:00
|
|
|
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
2006-11-16 07:20:06 +08:00
|
|
|
#endif /* __GIMP_ITEM_COMBO_BOX_H__ */
|