2
#ifndef __GIMPRESSIONIST_H
3
#define __GIMPRESSIONIST_H
5
/* Includes necessary for the correct processing of this file. */
6
#include <libgimp/gimp.h>
7
#include <libgimp/gimpui.h>
12
#define PLUG_IN_NAME "plug_in_gimpressionist"
13
#define PLUG_IN_VERSION "v1.0, November 2003"
14
#define HELP_ID "plug-in-gimppressionist"
16
#define PREVIEWSIZE 150
17
#define MAXORIENTVECT 50
18
#define MAXSIZEVECT 50
20
/* Type declaration and definitions */
31
typedef struct smvector
48
int general_background_type;
49
double general_dark_edge;
54
char selected_brush[200];
55
char selected_paper[200];
57
int general_paint_edges;
59
vector_t orient_vectors[MAXORIENTVECT];
60
int num_orient_vectors;
63
double orient_angle_offset;
64
double orient_strength_exponent;
69
int general_drop_shadow;
70
double general_shadow_darkness;
77
smvector_t size_vectors[MAXSIZEVECT];
79
double size_strength_exponent;
82
int general_shadow_depth;
83
int general_shadow_blur;
87
} gimpressionist_vals_t;
91
enum GENERAL_BG_TYPE_ENUM
94
BG_TYPE_KEEP_ORIGINAL = 1,
95
BG_TYPE_FROM_PAPER = 2,
96
BG_TYPE_TRANSPARENT = 3,
99
enum PRESETS_LIST_COLUMN_ENUM
101
PRESETS_LIST_COLUMN_FILENAME = 0,
102
PRESETS_LIST_COLUMN_OBJECT_NAME = 1,
107
extern gimpressionist_vals_t pcvals;
112
GList *parsepath (void);
113
void free_parsepath_cache (void);
115
void grabarea (void);
116
void store_values (void);
117
void restore_values (void);
118
gchar *findfile (const gchar *);
120
void unselectall (GtkWidget *list);
121
void reselect (GtkWidget *list, char *fname);
122
void readdirintolist (char *subdir, GtkWidget *view, char *selected);
123
void readdirintolist_extended (char *subdir, GtkWidget *view, char *selected,
124
gboolean with_filename_column,
125
gchar *(*get_object_name_cb)
126
(gchar *dir, gchar *filename, void *context),
129
GtkWidget *create_one_column_list (GtkWidget *parent,
131
(GtkTreeSelection *selection,
134
void brush_reload (const gchar *fn, struct ppm *p);
136
double get_direction (double x, double y, int from);
138
void create_sizemap_dialog (void);
139
double getsiz_proto (double x, double y, int n, smvector_t *vec,
140
double smstrexp, int voronoi);
143
void set_colorbrushes (const gchar *fn);
144
int create_gimpressionist (void);
146
double dist (double x, double y, double dx, double dy);
148
void restore_default_values (void);
150
GtkWidget *create_radio_button (GtkWidget *box, int orient_type,
151
void (*callback)(GtkWidget *wg, void *d),
152
gchar *label, gchar *help_string,
153
GSList **radio_group,
154
GtkWidget **buttons_array
157
#define CLAMP_UP_TO(x, max) (CLAMP((x),(0),(max-1)))
159
#endif /* #ifndef __GIMPRESSIONIST_H */