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

« back to all changes in this revision

Viewing changes to app/tools/gimpeditselectiontool.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
20
20
#define __GIMP_EDIT_SELECTION_TOOL_H__
21
21
 
22
22
 
 
23
#include "gimpdrawtool.h"
 
24
 
 
25
 
 
26
#define GIMP_TYPE_EDIT_SELECTION_TOOL            (gimp_edit_selection_tool_get_type ())
 
27
#define GIMP_EDIT_SELECTION_TOOL(obj)            (GTK_CHECK_CAST ((obj), GIMP_TYPE_EDIT_SELECTION_TOOL, GimpEditSelectionTool))
 
28
#define GIMP_EDIT_SELECTION_TOOL_CLASS(klass)    (GTK_CHECK_CLASS_CAST ((klass), GIMP_TYPE_EDIT_SELECTION_TOOL, GimpEditSelectionToolClass))
 
29
#define GIMP_IS_EDIT_SELECTION_TOOL(obj)         (GTK_CHECK_TYPE ((obj), GIMP_TYPE_EDIT_SELECTION_TOOL))
 
30
#define GIMP_IS_EDIT_SELECTION_TOOL_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_EDIT_SELECTION_TOOL))
 
31
 
 
32
 
 
33
typedef struct _GimpEditSelectionTool      GimpEditSelectionTool;
 
34
typedef struct _GimpEditSelectionToolClass GimpEditSelectionToolClass;
 
35
 
 
36
struct _GimpEditSelectionTool
 
37
{
 
38
  GimpDrawTool        parent_instance;
 
39
 
 
40
  gint                origx, origy;    /*  Last x and y coords               */
 
41
  gint                cumlx, cumly;    /*  Cumulative changes to x and yed   */
 
42
  gint                x, y;            /*  Current x and y coords            */
 
43
  gint                num_segs_in;     /*  Num seg in selection boundary     */
 
44
  gint                num_segs_out;    /*  Num seg in selection boundary     */
 
45
  BoundSeg           *segs_in;         /*  Pointer to the channel sel. segs  */
 
46
  BoundSeg           *segs_out;        /*  Pointer to the channel sel. segs  */
 
47
 
 
48
  gint                x1, y1;          /*  Bounding box of selection mask    */
 
49
  gint                x2, y2;
 
50
 
 
51
  GimpTranslateMode   edit_mode;       /*  Translate the mask or layer?      */
 
52
 
 
53
  gboolean            first_move;      /*  Don't push undos after the first  */
 
54
 
 
55
  gboolean            propagate_release;
 
56
};
 
57
 
 
58
struct _GimpEditSelectionToolClass
 
59
{
 
60
  GimpDrawToolClass   parent_class;
 
61
};
 
62
 
 
63
 
 
64
GType      gimp_edit_selection_tool_get_type  (void) G_GNUC_CONST;
 
65
 
23
66
void       gimp_edit_selection_tool_start     (GimpTool          *parent_tool,
24
 
                                               GimpDisplay       *gdisp,
 
67
                                               GimpDisplay       *display,
25
68
                                               GimpCoords        *coords,
26
69
                                               GimpTranslateMode  edit_mode,
27
70
                                               gboolean           propagate_release);
28
71
 
29
 
 
30
72
gboolean   gimp_edit_selection_tool_key_press (GimpTool          *tool,
31
73
                                               GdkEventKey       *kevent,
32
 
                                               GimpDisplay       *gdisp);
 
74
                                               GimpDisplay       *display);
 
75
gboolean   gimp_edit_selection_tool_translate (GimpTool          *tool,
 
76
                                               GdkEventKey       *kevent,
 
77
                                               GimpTransformType  translate_type,
 
78
                                               GimpDisplay       *display);
33
79
 
34
80
 
35
81
#endif  /*  __GIMP_EDIT_SELECTION_TOOL_H__  */