2005-01-22 06:59:51 +08:00
|
|
|
/* LIBGIMP - The GIMP Library
|
|
|
|
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
2004-04-18 09:20:26 +08:00
|
|
|
*
|
2005-01-24 07:16:28 +08:00
|
|
|
* gimpenumstore.h
|
2004-04-18 09:20:26 +08:00
|
|
|
* Copyright (C) 2004 Sven Neumann <sven@gimp.org>
|
|
|
|
*
|
2009-01-18 06:28:01 +08:00
|
|
|
* This library is free software: you can redistribute it and/or
|
2005-01-22 06:59:51 +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-18 09:20:26 +08:00
|
|
|
*
|
2005-01-22 06:59:51 +08:00
|
|
|
* This library is distributed in the hope that it will be useful,
|
2004-04-18 09:20:26 +08:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2005-01-22 06:59:51 +08:00
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
2004-04-18 09:20:26 +08:00
|
|
|
*
|
2005-01-22 06:59:51 +08:00
|
|
|
* 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-18 09:20:26 +08:00
|
|
|
*/
|
|
|
|
|
2011-04-28 20:30:41 +08:00
|
|
|
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
|
|
|
|
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
|
|
|
|
#endif
|
|
|
|
|
2004-04-18 09:20:26 +08:00
|
|
|
#ifndef __GIMP_ENUM_STORE_H__
|
|
|
|
#define __GIMP_ENUM_STORE_H__
|
|
|
|
|
2004-04-21 03:06:37 +08:00
|
|
|
#include <libgimpwidgets/gimpintstore.h>
|
2004-04-18 09:20:26 +08:00
|
|
|
|
2011-04-28 20:30:41 +08:00
|
|
|
|
2007-08-12 05:52:48 +08:00
|
|
|
G_BEGIN_DECLS
|
2004-04-18 09:20:26 +08:00
|
|
|
|
|
|
|
#define GIMP_TYPE_ENUM_STORE (gimp_enum_store_get_type ())
|
|
|
|
#define GIMP_ENUM_STORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_ENUM_STORE, GimpEnumStore))
|
|
|
|
#define GIMP_ENUM_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_ENUM_STORE, GimpEnumStoreClass))
|
|
|
|
#define GIMP_IS_ENUM_STORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_ENUM_STORE))
|
|
|
|
#define GIMP_IS_ENUM_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_ENUM_STORE))
|
|
|
|
#define GIMP_ENUM_STORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_ENUM_STORE, GimpEnumStoreClass))
|
|
|
|
|
|
|
|
|
2018-05-03 18:51:36 +08:00
|
|
|
typedef struct _GimpEnumStorePrivate GimpEnumStorePrivate;
|
|
|
|
typedef struct _GimpEnumStoreClass GimpEnumStoreClass;
|
2004-04-18 09:20:26 +08:00
|
|
|
|
|
|
|
struct _GimpEnumStore
|
|
|
|
{
|
2018-05-03 18:51:36 +08:00
|
|
|
GimpIntStore parent_instance;
|
2004-04-18 09:20:26 +08:00
|
|
|
|
2018-05-03 18:51:36 +08:00
|
|
|
GimpEnumStorePrivate *priv;
|
2004-04-18 09:20:26 +08:00
|
|
|
};
|
|
|
|
|
2005-03-01 07:27:12 +08:00
|
|
|
struct _GimpEnumStoreClass
|
|
|
|
{
|
2005-06-27 21:41:11 +08:00
|
|
|
GimpIntStoreClass parent_class;
|
2005-03-01 07:27:12 +08:00
|
|
|
|
|
|
|
void (* _gimp_reserved1) (void);
|
|
|
|
void (* _gimp_reserved2) (void);
|
|
|
|
void (* _gimp_reserved3) (void);
|
|
|
|
void (* _gimp_reserved4) (void);
|
2018-05-03 18:51:36 +08:00
|
|
|
void (* _gimp_reserved5) (void);
|
|
|
|
void (* _gimp_reserved6) (void);
|
|
|
|
void (* _gimp_reserved7) (void);
|
|
|
|
void (* _gimp_reserved8) (void);
|
2005-03-01 07:27:12 +08:00
|
|
|
};
|
|
|
|
|
2004-04-18 09:20:26 +08:00
|
|
|
|
2004-04-18 23:12:42 +08:00
|
|
|
GType gimp_enum_store_get_type (void) G_GNUC_CONST;
|
2004-04-18 09:20:26 +08:00
|
|
|
|
2004-11-27 20:09:13 +08:00
|
|
|
GtkListStore * gimp_enum_store_new (GType enum_type);
|
2004-04-18 09:20:26 +08:00
|
|
|
GtkListStore * gimp_enum_store_new_with_range (GType enum_type,
|
|
|
|
gint minimum,
|
|
|
|
gint maximum);
|
|
|
|
GtkListStore * gimp_enum_store_new_with_values (GType enum_type,
|
|
|
|
gint n_values,
|
|
|
|
...);
|
|
|
|
GtkListStore * gimp_enum_store_new_with_values_valist (GType enum_type,
|
|
|
|
gint n_values,
|
|
|
|
va_list args);
|
|
|
|
|
2014-05-08 03:27:57 +08:00
|
|
|
void gimp_enum_store_set_icon_prefix (GimpEnumStore *store,
|
|
|
|
const gchar *icon_prefix);
|
|
|
|
|
2004-04-18 23:12:42 +08:00
|
|
|
|
2007-08-12 05:52:48 +08:00
|
|
|
G_END_DECLS
|
|
|
|
|
2004-04-18 09:20:26 +08:00
|
|
|
#endif /* __GIMP_ENUM_STORE_H__ */
|