1999-07-29 07:00:08 +08:00
|
|
|
/* The GIMP -- an image manipulation program
|
|
|
|
* Copyright (C) 1999 Manish Singh
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (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
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
1999-08-29 06:40:37 +08:00
|
|
|
#ifndef __GDISPLAY_COLOR_H__
|
|
|
|
#define __GDISPLAY_COLOR_H__
|
1999-07-29 07:00:08 +08:00
|
|
|
|
1999-08-29 06:40:37 +08:00
|
|
|
#include "gdisplayF.h"
|
1999-07-29 07:00:08 +08:00
|
|
|
|
2000-05-27 09:30:21 +08:00
|
|
|
#include "libgimp/gimpcolordisplay.h"
|
|
|
|
|
|
|
|
|
1999-08-29 06:40:37 +08:00
|
|
|
typedef struct _ColorDisplayNode ColorDisplayNode;
|
|
|
|
|
|
|
|
struct _ColorDisplayNode {
|
|
|
|
gpointer cd_ID;
|
1999-10-05 03:26:07 +08:00
|
|
|
char *cd_name;
|
1999-08-29 06:40:37 +08:00
|
|
|
GimpColorDisplayConvert cd_convert;
|
|
|
|
};
|
|
|
|
|
1999-08-31 10:00:34 +08:00
|
|
|
typedef void (*GimpCDFunc) (const char *name,
|
|
|
|
gpointer user_data);
|
|
|
|
|
2000-01-03 15:49:19 +08:00
|
|
|
void color_display_init (void);
|
|
|
|
void color_display_foreach (GimpCDFunc func,
|
|
|
|
gpointer user_data);
|
1999-10-05 03:26:07 +08:00
|
|
|
|
|
|
|
ColorDisplayNode * gdisplay_color_attach (GDisplay *gdisp,
|
|
|
|
const char *name);
|
2000-01-03 15:49:19 +08:00
|
|
|
ColorDisplayNode * gdisplay_color_attach_clone (GDisplay *gdisp,
|
|
|
|
ColorDisplayNode *node);
|
1999-10-05 03:26:07 +08:00
|
|
|
void gdisplay_color_detach (GDisplay *gdisp,
|
|
|
|
ColorDisplayNode *node);
|
|
|
|
void gdisplay_color_detach_destroy (GDisplay *gdisp,
|
|
|
|
ColorDisplayNode *node);
|
|
|
|
void gdisplay_color_detach_all (GDisplay *gdisp);
|
|
|
|
void gdisplay_color_reorder_up (GDisplay *gdisp,
|
|
|
|
ColorDisplayNode *node);
|
|
|
|
void gdisplay_color_reorder_down (GDisplay *gdisp,
|
|
|
|
ColorDisplayNode *node);
|
1999-08-31 10:00:34 +08:00
|
|
|
|
2000-01-03 15:49:19 +08:00
|
|
|
void gdisplay_color_configure (ColorDisplayNode *node,
|
|
|
|
GFunc ok_func,
|
|
|
|
gpointer ok_data,
|
|
|
|
GFunc cancel_func,
|
|
|
|
gpointer cancel_data);
|
|
|
|
void gdisplay_color_configure_cancel (ColorDisplayNode *node);
|
|
|
|
|
1999-08-29 06:40:37 +08:00
|
|
|
#endif /* __GDISPLAY_COLOR_H__ */
|