~ubuntu-branches/ubuntu/vivid/gimp/vivid

« back to all changes in this revision

Viewing changes to app/core/gimplayer.h

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach
  • Date: 2012-05-08 18:50:03 UTC
  • mto: (1.1.26) (0.5.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 71.
  • Revision ID: package-import@ubuntu.com-20120508185003-tltkvbaysf8d2426
ImportĀ upstreamĀ versionĀ 2.8.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* GIMP - The GNU Image Manipulation Program
2
2
 * Copyright (C) 1995 Spencer Kimball and Peter Mattis
3
3
 *
4
 
 * This program is free software; you can redistribute it and/or modify
 
4
 * This program is free software: you can redistribute it and/or modify
5
5
 * it under the terms of the GNU General Public License as published by
6
 
 * the Free Software Foundation; either version 2 of the License, or
 
6
 * the Free Software Foundation; either version 3 of the License, or
7
7
 * (at your option) any later version.
8
8
 *
9
9
 * This program is distributed in the hope that it will be useful,
12
12
 * GNU General Public License for more details.
13
13
 *
14
14
 * You should have received a copy of the GNU General Public License
15
 
 * along with this program; if not, write to the Free Software
16
 
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
15
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
16
 */
18
17
 
19
18
#ifndef __GIMP_LAYER_H__
43
42
 
44
43
  GimpLayerMask        *mask;             /*  possible layer mask        */
45
44
 
 
45
  GeglNode             *opacity_node;
 
46
 
46
47
  /*  Floating selections  */
47
48
  struct
48
49
  {
49
 
    TileManager  *backing_store;      /*  for obscured regions           */
50
50
    GimpDrawable *drawable;           /*  floating sel is attached to    */
51
 
    gboolean      initial;            /*  is fs composited yet?          */
52
 
 
53
51
    gboolean      boundary_known;     /*  is the current boundary valid  */
54
52
    BoundSeg     *segs;               /*  boundary of floating sel       */
55
53
    gint          num_segs;           /*  number of segs in boundary     */
98
96
                                                gdouble               opacity,
99
97
                                                GimpLayerModeEffects  mode);
100
98
 
 
99
GimpLayer     * gimp_layer_get_parent          (GimpLayer            *layer);
 
100
 
 
101
GimpLayerMask * gimp_layer_get_mask            (const GimpLayer      *layer);
101
102
GimpLayerMask * gimp_layer_create_mask         (const GimpLayer      *layer,
102
103
                                                GimpAddMaskType       mask_type,
103
104
                                                GimpChannel          *channel);
108
109
void            gimp_layer_apply_mask          (GimpLayer            *layer,
109
110
                                                GimpMaskApplyMode     mode,
110
111
                                                gboolean              push_undo);
 
112
 
111
113
void            gimp_layer_add_alpha           (GimpLayer            *layer);
112
114
void            gimp_layer_flatten             (GimpLayer            *layer,
113
115
                                                GimpContext          *context);
114
116
 
115
117
void            gimp_layer_resize_to_image     (GimpLayer            *layer,
116
118
                                                GimpContext          *context);
117
 
BoundSeg      * gimp_layer_boundary            (GimpLayer            *layer,
118
 
                                                gint                 *num_segs);
119
 
 
120
 
GimpLayerMask * gimp_layer_get_mask            (const GimpLayer      *layer);
121
 
 
 
119
 
 
120
GimpDrawable * gimp_layer_get_floating_sel_drawable (const GimpLayer *layer);
 
121
void           gimp_layer_set_floating_sel_drawable (GimpLayer       *layer,
 
122
                                                     GimpDrawable    *drawable);
122
123
gboolean        gimp_layer_is_floating_sel     (const GimpLayer      *layer);
123
124
 
124
125
void            gimp_layer_set_opacity         (GimpLayer            *layer,
135
136
                                                gboolean              lock_alpha,
136
137
                                                gboolean              push_undo);
137
138
gboolean        gimp_layer_get_lock_alpha      (const GimpLayer      *layer);
 
139
gboolean        gimp_layer_can_lock_alpha      (const GimpLayer      *layer);
138
140
 
139
141
 
140
142
#endif /* __GIMP_LAYER_H__ */