~ubuntu-branches/ubuntu/breezy/gimp/breezy

« back to all changes in this revision

Viewing changes to plug-ins/MapObject/mapobject_image.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2005-10-04 19:04:46 UTC
  • Revision ID: james.westby@ubuntu.com-20051004190446-ukh32kwk56s4sjhu
Tags: upstream-2.2.8
ImportĀ upstreamĀ versionĀ 2.2.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __MAPOBJECT_IMAGE_H__
 
2
#define __MAPOBJECT_IMAGE_H__
 
3
 
 
4
/* Externally visible variables */
 
5
/* ============================ */
 
6
 
 
7
extern GimpDrawable *input_drawable, *output_drawable;
 
8
extern GimpPixelRgn  source_region,dest_region;
 
9
 
 
10
extern GimpDrawable *box_drawables[6];
 
11
extern GimpPixelRgn  box_regions[6];
 
12
 
 
13
extern GimpDrawable *cylinder_drawables[2];
 
14
extern GimpPixelRgn  cylinder_regions[2];
 
15
 
 
16
extern guchar   *preview_rgb_data;
 
17
 
 
18
extern glong   maxcounter, old_depth, max_depth;
 
19
extern gint    imgtype, width,height, in_channels, out_channels;
 
20
extern GimpRGB  background;
 
21
extern gdouble oldtreshold;
 
22
 
 
23
extern gint border_x1, border_y1, border_x2, border_y2;
 
24
 
 
25
extern GimpTile *current_in_tile, *current_out_tile;
 
26
 
 
27
/* Externally visible functions */
 
28
/* ============================ */
 
29
 
 
30
extern gint        image_setup              (GimpDrawable *drawable,
 
31
                                             gint          interactive);
 
32
extern glong       in_xy_to_index           (gint          x,
 
33
                                             gint          y);
 
34
extern glong       out_xy_to_index          (gint          x,
 
35
                                             gint          y);
 
36
extern gint        checkbounds              (gint          x,
 
37
                                             gint          y);
 
38
extern GimpRGB      peek                     (gint          x,
 
39
                                             gint          y);
 
40
extern void        poke                     (gint          x,
 
41
                                             gint          y,
 
42
                                             GimpRGB      *color,
 
43
                                             gpointer      data);
 
44
extern GimpVector3 int_to_pos               (gint          x,
 
45
                                             gint          y);
 
46
extern void        pos_to_int               (gdouble       x,
 
47
                                             gdouble       y,
 
48
                                             gint         *scr_x,
 
49
                                             gint         *scr_y);
 
50
 
 
51
extern GimpRGB      get_image_color          (gdouble      u,
 
52
                                              gdouble      v,
 
53
                                              gint        *inside);
 
54
extern GimpRGB      get_box_image_color      (gint         image,
 
55
                                              gdouble      u,
 
56
                                              gdouble      v);
 
57
extern GimpRGB      get_cylinder_image_color (gint         image,
 
58
                                              gdouble      u,
 
59
                                              gdouble      v);
 
60
 
 
61
#endif  /* __MAPOBJECT_IMAGE_H__ */