~ubuntu-branches/ubuntu/jaunty/gimp/jaunty-security

« back to all changes in this revision

Viewing changes to app/display/gimpcanvas.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2007-05-02 16:33:03 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070502163303-bvzhjzbpw8qglc4y
Tags: 2.3.16-1ubuntu1
* Resynchronized with Debian, remaining Ubuntu changes:
  - debian/rules: i18n magic.
* debian/control.in:
  - Maintainer: Ubuntu Core Developers <ubuntu-devel@lists.ubuntu.com>
* debian/patches/02_help-message.patch,
  debian/patches/03_gimp.desktop.in.in.patch,
  debian/patches/10_dont_show_wizard.patch: updated.
* debian/patches/04_composite-signedness.patch,
  debian/patches/05_add-letter-spacing.patch: dropped, used upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* The GIMP -- an image manipulation program
 
1
/* GIMP - The GNU Image Manipulation Program
2
2
 * Copyright (C) 1995 Spencer Kimball and Peter Mattis
3
3
 *
4
4
 * This program is free software; you can redistribute it and/or modify
30
30
  GIMP_CANVAS_STYLE_RENDER,
31
31
  GIMP_CANVAS_STYLE_XOR,
32
32
  GIMP_CANVAS_STYLE_XOR_DASHED,
 
33
  GIMP_CANVAS_STYLE_XOR_DOTTED,
33
34
  GIMP_CANVAS_STYLE_SELECTION_IN,
34
35
  GIMP_CANVAS_STYLE_SELECTION_OUT,
35
36
  GIMP_CANVAS_STYLE_LAYER_BOUNDARY,
36
37
  GIMP_CANVAS_STYLE_GUIDE_NORMAL,
37
38
  GIMP_CANVAS_STYLE_GUIDE_ACTIVE,
 
39
  GIMP_CANVAS_STYLE_SAMPLE_POINT_NORMAL,
 
40
  GIMP_CANVAS_STYLE_SAMPLE_POINT_ACTIVE,
38
41
  GIMP_CANVAS_STYLE_CUSTOM,
39
42
  GIMP_CANVAS_NUM_STYLES
40
43
} GimpCanvasStyle;
57
60
{
58
61
  GtkDrawingArea  parent_instance;
59
62
 
 
63
  Gimp           *gimp;
 
64
 
60
65
  GdkGC          *gc[GIMP_CANVAS_NUM_STYLES];
61
66
  GdkBitmap      *stipple[GIMP_CANVAS_NUM_STIPPLES];
 
67
  PangoLayout    *layout;
62
68
};
63
69
 
64
70
struct _GimpCanvasClass
69
75
 
70
76
GType        gimp_canvas_get_type          (void) G_GNUC_CONST;
71
77
 
72
 
GtkWidget  * gimp_canvas_new               (void);
 
78
GtkWidget  * gimp_canvas_new               (Gimp            *gimp);
73
79
 
74
80
void         gimp_canvas_draw_cursor       (GimpCanvas      *canvas,
75
81
                                            gint             x,
117
123
                                            GimpCanvasStyle  style,
118
124
                                            GdkSegment      *segments,
119
125
                                            gint             num_segments);
 
126
void         gimp_canvas_draw_text         (GimpCanvas      *canvas,
 
127
                                            GimpCanvasStyle  style,
 
128
                                            gint             x,
 
129
                                            gint             y,
 
130
                                            const gchar     *format,
 
131
                                            ...) G_GNUC_PRINTF (5, 6);
120
132
void         gimp_canvas_draw_rgb          (GimpCanvas      *canvas,
121
133
                                            GimpCanvasStyle  style,
122
134
                                            gint             x,