[gimp] Move layer mask related functions together
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] Move layer mask related functions together
- Date: Thu, 30 Jul 2009 16:59:49 +0000 (UTC)
commit 9c4a2ab4ea93655de72fcc26b72704b24dddb9e9
Author: Michael Natterer <mitch gimp org>
Date: Thu Jul 30 18:59:12 2009 +0200
Move layer mask related functions together
app/core/gimplayer.c | 16 ++++++++--------
app/core/gimplayer.h | 4 ++--
2 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/app/core/gimplayer.c b/app/core/gimplayer.c
index 6c4fe0d..64c986d 100644
--- a/app/core/gimplayer.c
+++ b/app/core/gimplayer.c
@@ -1267,6 +1267,14 @@ gimp_layer_new_from_region (PixelRegion *region,
}
GimpLayerMask *
+gimp_layer_get_mask (const GimpLayer *layer)
+{
+ g_return_val_if_fail (GIMP_IS_LAYER (layer), NULL);
+
+ return layer->mask;
+}
+
+GimpLayerMask *
gimp_layer_add_mask (GimpLayer *layer,
GimpLayerMask *mask,
gboolean push_undo,
@@ -1870,14 +1878,6 @@ gimp_layer_boundary (GimpLayer *layer,
/* access functions */
/**********************/
-GimpLayerMask *
-gimp_layer_get_mask (const GimpLayer *layer)
-{
- g_return_val_if_fail (GIMP_IS_LAYER (layer), NULL);
-
- return layer->mask;
-}
-
GimpDrawable *
gimp_layer_get_floating_sel_drawable (const GimpLayer *layer)
{
diff --git a/app/core/gimplayer.h b/app/core/gimplayer.h
index b4d8aec..b092b82 100644
--- a/app/core/gimplayer.h
+++ b/app/core/gimplayer.h
@@ -96,6 +96,7 @@ GimpLayer * gimp_layer_new_from_region (PixelRegion *region,
gdouble opacity,
GimpLayerModeEffects mode);
+GimpLayerMask * gimp_layer_get_mask (const GimpLayer *layer);
GimpLayerMask * gimp_layer_create_mask (const GimpLayer *layer,
GimpAddMaskType mask_type,
GimpChannel *channel);
@@ -106,6 +107,7 @@ GimpLayerMask * gimp_layer_add_mask (GimpLayer *layer,
void gimp_layer_apply_mask (GimpLayer *layer,
GimpMaskApplyMode mode,
gboolean push_undo);
+
void gimp_layer_add_alpha (GimpLayer *layer);
void gimp_layer_flatten (GimpLayer *layer,
GimpContext *context);
@@ -115,8 +117,6 @@ void gimp_layer_resize_to_image (GimpLayer *layer,
BoundSeg * gimp_layer_boundary (GimpLayer *layer,
gint *num_segs);
-GimpLayerMask * gimp_layer_get_mask (const GimpLayer *layer);
-
GimpDrawable * gimp_layer_get_floating_sel_drawable (const GimpLayer *layer);
void gimp_layer_set_floating_sel_drawable (GimpLayer *layer,
GimpDrawable *drawable);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]