2005-01-21 22:59:51 +00:00
|
|
|
/* LIBGIMP - The GIMP Library
|
|
|
|
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
2004-04-18 01:20:26 +00:00
|
|
|
*
|
2005-01-23 23:16:28 +00:00
|
|
|
* gimpenumstore.h
|
2004-04-18 01:20:26 +00:00
|
|
|
* Copyright (C) 2004 Sven Neumann <sven@gimp.org>
|
|
|
|
*
|
2009-01-17 22:28:01 +00:00
|
|
|
* This library is free software: you can redistribute it and/or
|
2005-01-21 22:59:51 +00:00
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
2009-01-17 22:28:01 +00:00
|
|
|
* version 3 of the License, or (at your option) any later version.
|
2004-04-18 01:20:26 +00:00
|
|
|
*
|
2005-01-21 22:59:51 +00:00
|
|
|
* This library is distributed in the hope that it will be useful,
|
2004-04-18 01:20:26 +00:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2005-01-21 22:59:51 +00:00
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
2004-04-18 01:20:26 +00:00
|
|
|
*
|
2005-01-21 22:59:51 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2009-01-17 22:28:01 +00:00
|
|
|
* License along with this library. If not, see
|
2018-07-11 23:27:07 +02:00
|
|
|
* <https://www.gnu.org/licenses/>.
|
2004-04-18 01:20:26 +00:00
|
|
|
*/
|
|
|
|
|
2011-04-28 14:30:41 +02:00
|
|
|
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
|
|
|
|
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
|
|
|
|
#endif
|
|
|
|
|
2004-04-18 01:20:26 +00:00
|
|
|
#ifndef __GIMP_ENUM_STORE_H__
|
|
|
|
#define __GIMP_ENUM_STORE_H__
|
|
|
|
|
2004-04-20 19:06:37 +00:00
|
|
|
#include <libgimpwidgets/gimpintstore.h>
|
2004-04-18 01:20:26 +00:00
|
|
|
|
2011-04-28 14:30:41 +02:00
|
|
|
|
2007-08-11 21:52:48 +00:00
|
|
|
G_BEGIN_DECLS
|
2004-04-18 01:20:26 +00:00
|
|
|
|
2024-08-03 02:48:07 +00:00
|
|
|
#define GIMP_TYPE_ENUM_STORE (gimp_enum_store_get_type ())
|
2024-10-16 22:24:01 +02:00
|
|
|
G_DECLARE_FINAL_TYPE (GimpEnumStore, gimp_enum_store, GIMP, ENUM_STORE, GimpIntStore)
|
2005-02-28 23:27:12 +00:00
|
|
|
|
2004-04-18 01:20:26 +00:00
|
|
|
|
2004-11-27 12:09:13 +00:00
|
|
|
GtkListStore * gimp_enum_store_new (GType enum_type);
|
2004-04-18 01:20:26 +00: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-07 21:27:57 +02:00
|
|
|
void gimp_enum_store_set_icon_prefix (GimpEnumStore *store,
|
|
|
|
const gchar *icon_prefix);
|
|
|
|
|
2004-04-18 15:12:42 +00:00
|
|
|
|
2007-08-11 21:52:48 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
2004-04-18 01:20:26 +00:00
|
|
|
#endif /* __GIMP_ENUM_STORE_H__ */
|