Move layer mask related functions together

This commit is contained in:
Michael Natterer 2009-07-30 18:59:12 +02:00
parent 13082657be
commit 9c4a2ab4ea
2 changed files with 10 additions and 10 deletions

View File

@ -1266,6 +1266,14 @@ gimp_layer_new_from_region (PixelRegion *region,
return new_layer;
}
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,
@ -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)
{

View File

@ -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);