2005-01-29 20:26:14 +08:00
|
|
|
/* LIBGIMP - The GIMP Library
|
|
|
|
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
2004-04-18 23:12:42 +08:00
|
|
|
*
|
|
|
|
* gimpenumwidgets.h
|
|
|
|
* Copyright (C) 2002-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-29 09:08:20 +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 23:12:42 +08:00
|
|
|
*
|
2005-01-29 09:08:20 +08:00
|
|
|
* This library is distributed in the hope that it will be useful,
|
2004-04-18 23:12:42 +08:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2005-01-29 09:08:20 +08:00
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
2004-04-18 23:12:42 +08:00
|
|
|
*
|
2005-01-29 09:08:20 +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 23:12:42 +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 23:12:42 +08:00
|
|
|
#ifndef __GIMP_ENUM_WIDGETS_H__
|
|
|
|
#define __GIMP_ENUM_WIDGETS_H__
|
|
|
|
|
2007-08-12 05:52:48 +08:00
|
|
|
G_BEGIN_DECLS
|
2004-04-18 23:12:42 +08:00
|
|
|
|
2011-04-28 20:30:41 +08:00
|
|
|
|
2019-08-08 06:01:10 +08:00
|
|
|
GtkWidget * gimp_enum_radio_box_new (GType enum_type,
|
|
|
|
GCallback callback,
|
|
|
|
gpointer callback_data,
|
|
|
|
GDestroyNotify callback_data_destroy,
|
|
|
|
GtkWidget **first_button);
|
|
|
|
GtkWidget * gimp_enum_radio_box_new_with_range (GType enum_type,
|
|
|
|
gint minimum,
|
|
|
|
gint maximum,
|
|
|
|
GCallback callback,
|
|
|
|
gpointer callback_data,
|
|
|
|
GDestroyNotify callback_data_destroy,
|
|
|
|
GtkWidget **first_button);
|
2004-04-18 23:12:42 +08:00
|
|
|
|
2019-08-08 06:01:10 +08:00
|
|
|
GtkWidget * gimp_enum_radio_frame_new (GType enum_type,
|
|
|
|
GtkWidget *label_widget,
|
|
|
|
GCallback callback,
|
|
|
|
gpointer callback_data,
|
|
|
|
GDestroyNotify callback_data_destroy,
|
|
|
|
GtkWidget **first_button);
|
|
|
|
GtkWidget * gimp_enum_radio_frame_new_with_range (GType enum_type,
|
|
|
|
gint minimum,
|
|
|
|
gint maximum,
|
|
|
|
GtkWidget *label_widget,
|
|
|
|
GCallback callback,
|
|
|
|
gpointer callback_data,
|
|
|
|
GDestroyNotify callback_data_destroy,
|
|
|
|
GtkWidget **first_button);
|
2004-04-18 23:12:42 +08:00
|
|
|
|
2019-08-08 06:01:10 +08:00
|
|
|
GtkWidget * gimp_enum_icon_box_new (GType enum_type,
|
|
|
|
const gchar *icon_prefix,
|
|
|
|
GtkIconSize icon_size,
|
|
|
|
GCallback callback,
|
|
|
|
gpointer callback_data,
|
|
|
|
GDestroyNotify callback_data_destroy,
|
|
|
|
GtkWidget **first_button);
|
|
|
|
GtkWidget * gimp_enum_icon_box_new_with_range (GType enum_type,
|
|
|
|
gint minimum,
|
|
|
|
gint maximum,
|
|
|
|
const gchar *icon_prefix,
|
|
|
|
GtkIconSize icon_size,
|
|
|
|
GCallback callback,
|
|
|
|
gpointer callback_data,
|
|
|
|
GDestroyNotify callback_data_destroy,
|
|
|
|
GtkWidget **first_button);
|
|
|
|
void gimp_enum_icon_box_set_child_padding (GtkWidget *icon_box,
|
|
|
|
gint xpad,
|
|
|
|
gint ypad);
|
2024-08-13 10:10:51 +08:00
|
|
|
void gimp_enum_icon_box_set_icon_size (GtkWidget *icon_box,
|
|
|
|
GtkIconSize icon_size);
|
2011-04-28 20:30:41 +08:00
|
|
|
|
2007-08-12 05:52:48 +08:00
|
|
|
G_END_DECLS
|
2004-04-18 23:12:42 +08:00
|
|
|
|
|
|
|
#endif /* __GIMP_ENUM_WIDGETS_H__ */
|