color dnd for the standard color selection widget (the "GIMP" color
1999-08-24 Michael Natterer <mitschel@cs.tu-berlin.de> * app/color_select.[ch]: color dnd for the standard color selection widget (the "GIMP" color notebook page).
This commit is contained in:

committed by
Michael Natterer

parent
487642b0f9
commit
90178ccb3a
@ -1,3 +1,8 @@
|
|||||||
|
1999-08-24 Michael Natterer <mitschel@cs.tu-berlin.de>
|
||||||
|
|
||||||
|
* app/color_select.[ch]: color dnd for the standard color
|
||||||
|
selection widget (the "GIMP" color notebook page).
|
||||||
|
|
||||||
Mon Aug 23 23:25:05 BST 1999 Andy Thomas <alt@gimp.org>
|
Mon Aug 23 23:25:05 BST 1999 Andy Thomas <alt@gimp.org>
|
||||||
|
|
||||||
* app/menus.c
|
* app/menus.c
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -18,42 +18,53 @@
|
|||||||
#ifndef __COLOR_SELECT_H__
|
#ifndef __COLOR_SELECT_H__
|
||||||
#define __COLOR_SELECT_H__
|
#define __COLOR_SELECT_H__
|
||||||
|
|
||||||
typedef enum {
|
typedef enum
|
||||||
|
{
|
||||||
COLOR_SELECT_OK,
|
COLOR_SELECT_OK,
|
||||||
COLOR_SELECT_CANCEL,
|
COLOR_SELECT_CANCEL,
|
||||||
COLOR_SELECT_UPDATE
|
COLOR_SELECT_UPDATE
|
||||||
} ColorSelectState;
|
} ColorSelectState;
|
||||||
|
|
||||||
typedef struct _ColorSelect _ColorSelect, *ColorSelectP;
|
typedef void (*ColorSelectCallback) (gint, gint, gint, ColorSelectState, void *);
|
||||||
typedef void (*ColorSelectCallback) (int, int, int, ColorSelectState, void *);
|
|
||||||
|
|
||||||
struct _ColorSelect {
|
typedef struct _ColorSelect ColorSelect, *ColorSelectP;
|
||||||
GtkWidget *shell;
|
|
||||||
GtkWidget *xy_color;
|
struct _ColorSelect
|
||||||
GtkWidget *z_color;
|
{
|
||||||
GtkWidget *new_color;
|
GtkWidget *shell;
|
||||||
GtkWidget *orig_color;
|
GtkWidget *xy_color;
|
||||||
GtkWidget *toggles[6];
|
GtkWidget *z_color;
|
||||||
GtkWidget *entries[6];
|
GtkWidget *new_color;
|
||||||
GtkWidget *hex_entry;
|
GtkWidget *orig_color;
|
||||||
|
GtkWidget *toggles[6];
|
||||||
|
GtkWidget *entries[6];
|
||||||
|
GtkWidget *hex_entry;
|
||||||
GtkAdjustment *slider_data[6];
|
GtkAdjustment *slider_data[6];
|
||||||
int pos[3];
|
|
||||||
int values[6];
|
gint pos[3];
|
||||||
int z_color_fill;
|
gint values[6];
|
||||||
int xy_color_fill;
|
gint z_color_fill;
|
||||||
int orig_values[3];
|
gint xy_color_fill;
|
||||||
ColorSelectCallback callback;
|
gint orig_values[3];
|
||||||
void *client_data;
|
gboolean wants_updates;
|
||||||
int wants_updates;
|
GdkGC *gc;
|
||||||
GdkGC *gc;
|
|
||||||
|
ColorSelectCallback callback;
|
||||||
|
void *client_data;
|
||||||
};
|
};
|
||||||
|
|
||||||
void color_select_init (void);
|
void color_select_init (void);
|
||||||
|
|
||||||
ColorSelectP color_select_new (int, int, int, ColorSelectCallback, void *, int);
|
ColorSelectP color_select_new (gint r,
|
||||||
void color_select_show (ColorSelectP);
|
gint g,
|
||||||
void color_select_hide (ColorSelectP);
|
gint b,
|
||||||
void color_select_free (ColorSelectP);
|
ColorSelectCallback callback,
|
||||||
void color_select_set_color (ColorSelectP, int, int, int, int);
|
gpointer client_data,
|
||||||
|
gboolean wants_update);
|
||||||
|
void color_select_show (ColorSelectP);
|
||||||
|
void color_select_hide (ColorSelectP);
|
||||||
|
void color_select_free (ColorSelectP);
|
||||||
|
void color_select_set_color (ColorSelectP,
|
||||||
|
gint, gint, gint, gint);
|
||||||
|
|
||||||
#endif /* __COLOR_SELECT_H__ */
|
#endif /* __COLOR_SELECT_H__ */
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -18,42 +18,53 @@
|
|||||||
#ifndef __COLOR_SELECT_H__
|
#ifndef __COLOR_SELECT_H__
|
||||||
#define __COLOR_SELECT_H__
|
#define __COLOR_SELECT_H__
|
||||||
|
|
||||||
typedef enum {
|
typedef enum
|
||||||
|
{
|
||||||
COLOR_SELECT_OK,
|
COLOR_SELECT_OK,
|
||||||
COLOR_SELECT_CANCEL,
|
COLOR_SELECT_CANCEL,
|
||||||
COLOR_SELECT_UPDATE
|
COLOR_SELECT_UPDATE
|
||||||
} ColorSelectState;
|
} ColorSelectState;
|
||||||
|
|
||||||
typedef struct _ColorSelect _ColorSelect, *ColorSelectP;
|
typedef void (*ColorSelectCallback) (gint, gint, gint, ColorSelectState, void *);
|
||||||
typedef void (*ColorSelectCallback) (int, int, int, ColorSelectState, void *);
|
|
||||||
|
|
||||||
struct _ColorSelect {
|
typedef struct _ColorSelect ColorSelect, *ColorSelectP;
|
||||||
GtkWidget *shell;
|
|
||||||
GtkWidget *xy_color;
|
struct _ColorSelect
|
||||||
GtkWidget *z_color;
|
{
|
||||||
GtkWidget *new_color;
|
GtkWidget *shell;
|
||||||
GtkWidget *orig_color;
|
GtkWidget *xy_color;
|
||||||
GtkWidget *toggles[6];
|
GtkWidget *z_color;
|
||||||
GtkWidget *entries[6];
|
GtkWidget *new_color;
|
||||||
GtkWidget *hex_entry;
|
GtkWidget *orig_color;
|
||||||
|
GtkWidget *toggles[6];
|
||||||
|
GtkWidget *entries[6];
|
||||||
|
GtkWidget *hex_entry;
|
||||||
GtkAdjustment *slider_data[6];
|
GtkAdjustment *slider_data[6];
|
||||||
int pos[3];
|
|
||||||
int values[6];
|
gint pos[3];
|
||||||
int z_color_fill;
|
gint values[6];
|
||||||
int xy_color_fill;
|
gint z_color_fill;
|
||||||
int orig_values[3];
|
gint xy_color_fill;
|
||||||
ColorSelectCallback callback;
|
gint orig_values[3];
|
||||||
void *client_data;
|
gboolean wants_updates;
|
||||||
int wants_updates;
|
GdkGC *gc;
|
||||||
GdkGC *gc;
|
|
||||||
|
ColorSelectCallback callback;
|
||||||
|
void *client_data;
|
||||||
};
|
};
|
||||||
|
|
||||||
void color_select_init (void);
|
void color_select_init (void);
|
||||||
|
|
||||||
ColorSelectP color_select_new (int, int, int, ColorSelectCallback, void *, int);
|
ColorSelectP color_select_new (gint r,
|
||||||
void color_select_show (ColorSelectP);
|
gint g,
|
||||||
void color_select_hide (ColorSelectP);
|
gint b,
|
||||||
void color_select_free (ColorSelectP);
|
ColorSelectCallback callback,
|
||||||
void color_select_set_color (ColorSelectP, int, int, int, int);
|
gpointer client_data,
|
||||||
|
gboolean wants_update);
|
||||||
|
void color_select_show (ColorSelectP);
|
||||||
|
void color_select_hide (ColorSelectP);
|
||||||
|
void color_select_free (ColorSelectP);
|
||||||
|
void color_select_set_color (ColorSelectP,
|
||||||
|
gint, gint, gint, gint);
|
||||||
|
|
||||||
#endif /* __COLOR_SELECT_H__ */
|
#endif /* __COLOR_SELECT_H__ */
|
||||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user