2003-05-24 02:27:05 +08:00
|
|
|
/* LIBGIMP - The GIMP Library
|
|
|
|
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
|
|
|
*
|
|
|
|
* gimpwidgets-private.h
|
|
|
|
* Copyright (C) 2003 Sven Neumann <sven@gimp.org>
|
|
|
|
*
|
2009-01-18 06:28:01 +08:00
|
|
|
* This library is free software: you can redistribute it and/or
|
2003-05-24 02:27:05 +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.
|
2003-05-24 02:27:05 +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/>.
|
2003-05-24 02:27:05 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GIMP_WIDGETS_PRIVATE_H__
|
|
|
|
#define __GIMP_WIDGETS_PRIVATE_H__
|
|
|
|
|
2022-02-17 05:20:46 +08:00
|
|
|
/* Used to compare similar colors across several widgets. */
|
|
|
|
#define GIMP_RGBA_EPSILON 1e-6
|
|
|
|
|
2003-05-24 02:27:05 +08:00
|
|
|
|
2023-11-15 03:04:14 +08:00
|
|
|
typedef GeglColor * (* GimpGetColorFunc) (void);
|
|
|
|
typedef void (* GimpEnsureModulesFunc) (void);
|
2003-05-25 22:23:43 +08:00
|
|
|
|
|
|
|
|
2003-11-12 01:55:45 +08:00
|
|
|
extern GimpHelpFunc _gimp_standard_help_func;
|
|
|
|
extern GimpGetColorFunc _gimp_get_foreground_func;
|
|
|
|
extern GimpGetColorFunc _gimp_get_background_func;
|
|
|
|
extern GimpEnsureModulesFunc _gimp_ensure_modules_func;
|
2003-05-24 02:27:05 +08:00
|
|
|
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
|
2022-03-06 21:31:27 +08:00
|
|
|
void gimp_widgets_init (GimpHelpFunc standard_help_func,
|
|
|
|
GimpGetColorFunc get_foreground_func,
|
|
|
|
GimpGetColorFunc get_background_func,
|
|
|
|
GimpEnsureModulesFunc ensure_modules_func,
|
|
|
|
const gchar *test_base_dir);
|
|
|
|
|
|
|
|
void gimp_widget_set_identifier (GtkWidget *widget,
|
|
|
|
const gchar *identifier);
|
|
|
|
void gimp_widget_set_bound_property (GtkWidget *widget,
|
|
|
|
GObject *config,
|
|
|
|
const gchar *property_name);
|
2003-05-24 02:27:05 +08:00
|
|
|
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GIMP_WIDGETS_PRIVATE_H__ */
|