diff options
Diffstat (limited to 'app/tools/gimpeditselectiontool.c')
| -rw-r--r-- | app/tools/gimpeditselectiontool.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/app/tools/gimpeditselectiontool.c b/app/tools/gimpeditselectiontool.c index f3b3856188..4bf4e89ad6 100644 --- a/app/tools/gimpeditselectiontool.c +++ b/app/tools/gimpeditselectiontool.c @@ -64,6 +64,38 @@ #define ARROW_VELOCITY 25 +typedef struct _GimpEditSelectionTool +{ + GimpDrawTool parent_instance; + + gint origx, origy; /* Last x and y coords */ + gint cumlx, cumly; /* Cumulative changes to x and yed */ + gint x, y; /* Current x and y coords */ + gint num_segs_in; /* Num seg in selection boundary */ + gint num_segs_out; /* Num seg in selection boundary */ + BoundSeg *segs_in; /* Pointer to the channel sel. segs */ + BoundSeg *segs_out; /* Pointer to the channel sel. segs */ + + gint x1, y1; /* Bounding box of selection mask */ + gint x2, y2; + + GimpTranslateMode edit_mode; /* Translate the mask or layer? */ + + gboolean first_move; /* Don't push undos after the first */ + + gboolean propagate_release; + + gboolean constrain; /* Constrain the movement */ + gdouble start_x, start_y;/* Coords when button was pressed */ + gdouble last_x, last_y; /* Previous coords sent to _motion */ +} GimpEditSelectionTool; + +typedef struct _GimpEditSelectionToolClass +{ + GimpDrawToolClass parent_class; +} GimpEditSelectionToolClass; + + static void gimp_edit_selection_tool_button_release (GimpTool *tool, GimpCoords *coords, guint32 time, |
