2006-12-10 05:33:38 +08:00
|
|
|
/* GIMP - The GNU Image Manipulation Program
|
2004-10-19 17:17:37 +08:00
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
|
|
*
|
2009-01-18 06:28:01 +08:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
2004-10-19 17:17:37 +08:00
|
|
|
* it under the terms of the GNU General Public License as published by
|
2009-01-18 06:28:01 +08:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2004-10-19 17:17:37 +08:00
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program 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 General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2018-07-12 05:27:07 +08:00
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2004-10-19 17:17:37 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __CHANNEL_OPTIONS_DIALOG_H__
|
|
|
|
#define __CHANNEL_OPTIONS_DIALOG_H__
|
|
|
|
|
|
|
|
|
2016-09-25 04:10:32 +08:00
|
|
|
typedef void (* GimpChannelOptionsCallback) (GtkWidget *dialog,
|
|
|
|
GimpImage *image,
|
|
|
|
GimpChannel *channel,
|
|
|
|
GimpContext *context,
|
|
|
|
const gchar *channel_name,
|
2023-11-20 07:20:03 +08:00
|
|
|
GeglColor *channel_color,
|
2016-09-25 04:10:32 +08:00
|
|
|
gboolean save_selection,
|
2016-10-26 22:51:56 +08:00
|
|
|
gboolean channel_visible,
|
2016-10-29 22:50:13 +08:00
|
|
|
GimpColorTag channel_color_tag,
|
2016-10-26 22:51:56 +08:00
|
|
|
gboolean channel_lock_content,
|
|
|
|
gboolean channel_lock_position,
|
2023-05-26 08:46:53 +08:00
|
|
|
gboolean channel_lock_visibility,
|
2016-09-25 04:10:32 +08:00
|
|
|
gpointer user_data);
|
|
|
|
|
|
|
|
|
|
|
|
GtkWidget * channel_options_dialog_new (GimpImage *image,
|
|
|
|
GimpChannel *channel,
|
|
|
|
GimpContext *context,
|
|
|
|
GtkWidget *parent,
|
|
|
|
const gchar *title,
|
|
|
|
const gchar *role,
|
|
|
|
const gchar *icon_name,
|
|
|
|
const gchar *desc,
|
|
|
|
const gchar *help_id,
|
|
|
|
const gchar *color_label,
|
|
|
|
const gchar *opacity_label,
|
|
|
|
gboolean show_from_sel,
|
2016-10-26 22:51:56 +08:00
|
|
|
const gchar *channel_name,
|
2023-11-20 07:20:03 +08:00
|
|
|
GeglColor *channel_color,
|
2016-10-26 22:51:56 +08:00
|
|
|
gboolean channel_visible,
|
2016-10-29 22:50:13 +08:00
|
|
|
GimpColorTag channel_color_tag,
|
2016-10-26 22:51:56 +08:00
|
|
|
gboolean channel_lock_content,
|
|
|
|
gboolean channel_lock_position,
|
2023-05-26 08:46:53 +08:00
|
|
|
gboolean channel_lock_visibility,
|
2016-09-25 04:10:32 +08:00
|
|
|
GimpChannelOptionsCallback callback,
|
|
|
|
gpointer user_data);
|
2004-10-19 17:17:37 +08:00
|
|
|
|
|
|
|
|
|
|
|
#endif /* __CHANNEL_OPTIONS_DIALOG_H__ */
|