GimpDrawable

GimpDrawable

Synopsis

                    GimpDrawable;
gint64              gimp_drawable_estimate_memsize      (const GimpDrawable *drawable,
                                                         gint width,
                                                         gint height);
void                gimp_drawable_configure             (GimpDrawable *drawable,
                                                         GimpImage *image,
                                                         gint offset_x,
                                                         gint offset_y,
                                                         gint width,
                                                         gint height,
                                                         GimpImageType type,
                                                         const gchar *name);
void                gimp_drawable_update                (GimpDrawable *drawable,
                                                         gint x,
                                                         gint y,
                                                         gint width,
                                                         gint height);
void                gimp_drawable_alpha_changed         (GimpDrawable *drawable);
void                gimp_drawable_invalidate_boundary   (GimpDrawable *drawable);
void                gimp_drawable_get_active_components (const GimpDrawable *drawable,
                                                         gboolean *active);
void                gimp_drawable_apply_region          (GimpDrawable *drawable,
                                                         PixelRegion *src2PR,
                                                         gboolean push_undo,
                                                         const gchar *undo_desc,
                                                         gdouble opacity,
                                                         GimpLayerModeEffects mode,
                                                         TileManager *src1_tiles,
                                                         gint x,
                                                         gint y);
void                gimp_drawable_replace_region        (GimpDrawable *drawable,
                                                         PixelRegion *src2PR,
                                                         gboolean push_undo,
                                                         const gchar *undo_desc,
                                                         gdouble opacity,
                                                         PixelRegion *maskPR,
                                                         gint x,
                                                         gint y);
TileManager*        gimp_drawable_get_tiles             (GimpDrawable *drawable);
void                gimp_drawable_set_tiles             (GimpDrawable *drawable,
                                                         gboolean push_undo,
                                                         const gchar *undo_desc,
                                                         TileManager *tiles);
void                gimp_drawable_set_tiles_full        (GimpDrawable *drawable,
                                                         gboolean push_undo,
                                                         const gchar *undo_desc,
                                                         TileManager *tiles,
                                                         GimpImageType type,
                                                         gint offset_x,
                                                         gint offset_y);
void                gimp_drawable_swap_pixels           (GimpDrawable *drawable,
                                                         TileManager *tiles,
                                                         gboolean sparse,
                                                         gint x,
                                                         gint y,
                                                         gint width,
                                                         gint height);
void                gimp_drawable_push_undo             (GimpDrawable *drawable,
                                                         const gchar *undo_desc,
                                                         gint x1,
                                                         gint y1,
                                                         gint x2,
                                                         gint y2,
                                                         TileManager *tiles,
                                                         gboolean sparse);
void                gimp_drawable_fill                  (GimpDrawable *drawable,
                                                         const GimpRGB *color,
                                                         const GimpPattern *pattern);
void                gimp_drawable_fill_by_type          (GimpDrawable *drawable,
                                                         GimpContext *context,
                                                         GimpFillType fill_type);
gboolean            gimp_drawable_mask_bounds           (GimpDrawable *drawable,
                                                         gint *x1,
                                                         gint *y1,
                                                         gint *x2,
                                                         gint *y2);
gboolean            gimp_drawable_mask_intersect        (GimpDrawable *drawable,
                                                         gint *x,
                                                         gint *y,
                                                         gint *width,
                                                         gint *height);
gboolean            gimp_drawable_has_alpha             (const GimpDrawable *drawable);
gboolean            gimp_drawable_has_floating_sel      (const GimpDrawable *drawable);
GimpImageType       gimp_drawable_type                  (const GimpDrawable *drawable);
GimpImageType       gimp_drawable_type_with_alpha       (const GimpDrawable *drawable);
GimpImageType       gimp_drawable_type_without_alpha    (const GimpDrawable *drawable);
gboolean            gimp_drawable_is_rgb                (const GimpDrawable *drawable);
gboolean            gimp_drawable_is_gray               (const GimpDrawable *drawable);
gboolean            gimp_drawable_is_indexed            (const GimpDrawable *drawable);
gboolean            gimp_drawable_is_text_layer         (GimpDrawable *drawable);
gint                gimp_drawable_bytes                 (const GimpDrawable *drawable);
gint                gimp_drawable_bytes_with_alpha      (const GimpDrawable *drawable);
gint                gimp_drawable_bytes_without_alpha   (const GimpDrawable *drawable);
const guchar*       gimp_drawable_get_colormap          (const GimpDrawable *drawable);
void                gimp_drawable_stroke_boundary       (GimpDrawable *drawable,
                                                         GimpStrokeOptions *options,
                                                         const BoundSeg *bound_segs,
                                                         gint n_bound_segs,
                                                         gint offset_x,
                                                         gint offset_y);
void                gimp_drawable_stroke_vectors        (GimpDrawable *drawable,
                                                         GimpStrokeOptions *options,
                                                         GimpVectors *vectors);

Object Hierarchy

  GObject
   +----GimpObject
         +----GimpViewable
               +----GimpItem
                     +----GimpDrawable
                           +----GimpChannel
                           +----GimpLayer

Implemented Interfaces

GimpDrawable implements GimpConfigInterface and GimpPickableInterface.

Signals

  "alpha-changed"                                  : Run First
  "update"                                         : Run First

Description

Details

GimpDrawable

typedef struct _GimpDrawable GimpDrawable;


gimp_drawable_estimate_memsize ()

gint64              gimp_drawable_estimate_memsize      (const GimpDrawable *drawable,
                                                         gint width,
                                                         gint height);

drawable :

width :

height :

Returns :


gimp_drawable_configure ()

void                gimp_drawable_configure             (GimpDrawable *drawable,
                                                         GimpImage *image,
                                                         gint offset_x,
                                                         gint offset_y,
                                                         gint width,
                                                         gint height,
                                                         GimpImageType type,
                                                         const gchar *name);

drawable :

image :

offset_x :

offset_y :

width :

height :

type :

name :


gimp_drawable_update ()

void                gimp_drawable_update                (GimpDrawable *drawable,
                                                         gint x,
                                                         gint y,
                                                         gint width,
                                                         gint height);

drawable :

x :

y :

width :

height :


gimp_drawable_alpha_changed ()

void                gimp_drawable_alpha_changed         (GimpDrawable *drawable);

drawable :


gimp_drawable_invalidate_boundary ()

void                gimp_drawable_invalidate_boundary   (GimpDrawable *drawable);

drawable :


gimp_drawable_get_active_components ()

void                gimp_drawable_get_active_components (const GimpDrawable *drawable,
                                                         gboolean *active);

drawable :

active :


gimp_drawable_apply_region ()

void                gimp_drawable_apply_region          (GimpDrawable *drawable,
                                                         PixelRegion *src2PR,
                                                         gboolean push_undo,
                                                         const gchar *undo_desc,
                                                         gdouble opacity,
                                                         GimpLayerModeEffects mode,
                                                         TileManager *src1_tiles,
                                                         gint x,
                                                         gint y);

drawable :

src2PR :

push_undo :

undo_desc :

opacity :

mode :

src1_tiles :

x :

y :


gimp_drawable_replace_region ()

void                gimp_drawable_replace_region        (GimpDrawable *drawable,
                                                         PixelRegion *src2PR,
                                                         gboolean push_undo,
                                                         const gchar *undo_desc,
                                                         gdouble opacity,
                                                         PixelRegion *maskPR,
                                                         gint x,
                                                         gint y);

drawable :

src2PR :

push_undo :

undo_desc :

opacity :

maskPR :

x :

y :


gimp_drawable_get_tiles ()

TileManager*        gimp_drawable_get_tiles             (GimpDrawable *drawable);

drawable :

Returns :


gimp_drawable_set_tiles ()

void                gimp_drawable_set_tiles             (GimpDrawable *drawable,
                                                         gboolean push_undo,
                                                         const gchar *undo_desc,
                                                         TileManager *tiles);

drawable :

push_undo :

undo_desc :

tiles :


gimp_drawable_set_tiles_full ()

void                gimp_drawable_set_tiles_full        (GimpDrawable *drawable,
                                                         gboolean push_undo,
                                                         const gchar *undo_desc,
                                                         TileManager *tiles,
                                                         GimpImageType type,
                                                         gint offset_x,
                                                         gint offset_y);

drawable :

push_undo :

undo_desc :

tiles :

type :

offset_x :

offset_y :


gimp_drawable_swap_pixels ()

void                gimp_drawable_swap_pixels           (GimpDrawable *drawable,
                                                         TileManager *tiles,
                                                         gboolean sparse,
                                                         gint x,
                                                         gint y,
                                                         gint width,
                                                         gint height);

drawable :

tiles :

sparse :

x :

y :

width :

height :


gimp_drawable_push_undo ()

void                gimp_drawable_push_undo             (GimpDrawable *drawable,
                                                         const gchar *undo_desc,
                                                         gint x1,
                                                         gint y1,
                                                         gint x2,
                                                         gint y2,
                                                         TileManager *tiles,
                                                         gboolean sparse);

drawable :

undo_desc :

x1 :

y1 :

x2 :

y2 :

tiles :

sparse :


gimp_drawable_fill ()

void                gimp_drawable_fill                  (GimpDrawable *drawable,
                                                         const GimpRGB *color,
                                                         const GimpPattern *pattern);

drawable :

color :

pattern :


gimp_drawable_fill_by_type ()

void                gimp_drawable_fill_by_type          (GimpDrawable *drawable,
                                                         GimpContext *context,
                                                         GimpFillType fill_type);

drawable :

context :

fill_type :


gimp_drawable_mask_bounds ()

gboolean            gimp_drawable_mask_bounds           (GimpDrawable *drawable,
                                                         gint *x1,
                                                         gint *y1,
                                                         gint *x2,
                                                         gint *y2);

drawable :

x1 :

y1 :

x2 :

y2 :

Returns :


gimp_drawable_mask_intersect ()

gboolean            gimp_drawable_mask_intersect        (GimpDrawable *drawable,
                                                         gint *x,
                                                         gint *y,
                                                         gint *width,
                                                         gint *height);

drawable :

x :

y :

width :

height :

Returns :


gimp_drawable_has_alpha ()

gboolean            gimp_drawable_has_alpha             (const GimpDrawable *drawable);

drawable :

Returns :


gimp_drawable_has_floating_sel ()

gboolean            gimp_drawable_has_floating_sel      (const GimpDrawable *drawable);

drawable :

Returns :


gimp_drawable_type ()

GimpImageType       gimp_drawable_type                  (const GimpDrawable *drawable);

drawable :

Returns :


gimp_drawable_type_with_alpha ()

GimpImageType       gimp_drawable_type_with_alpha       (const GimpDrawable *drawable);

drawable :

Returns :


gimp_drawable_type_without_alpha ()

GimpImageType       gimp_drawable_type_without_alpha    (const GimpDrawable *drawable);

drawable :

Returns :


gimp_drawable_is_rgb ()

gboolean            gimp_drawable_is_rgb                (const GimpDrawable *drawable);

drawable :

Returns :


gimp_drawable_is_gray ()

gboolean            gimp_drawable_is_gray               (const GimpDrawable *drawable);

drawable :

Returns :


gimp_drawable_is_indexed ()

gboolean            gimp_drawable_is_indexed            (const GimpDrawable *drawable);

drawable :

Returns :


gimp_drawable_is_text_layer ()

gboolean            gimp_drawable_is_text_layer         (GimpDrawable *drawable);

drawable :

Returns :


gimp_drawable_bytes ()

gint                gimp_drawable_bytes                 (const GimpDrawable *drawable);

drawable :

Returns :


gimp_drawable_bytes_with_alpha ()

gint                gimp_drawable_bytes_with_alpha      (const GimpDrawable *drawable);

drawable :

Returns :


gimp_drawable_bytes_without_alpha ()

gint                gimp_drawable_bytes_without_alpha   (const GimpDrawable *drawable);

drawable :

Returns :


gimp_drawable_get_colormap ()

const guchar*       gimp_drawable_get_colormap          (const GimpDrawable *drawable);

drawable :

Returns :


gimp_drawable_stroke_boundary ()

void                gimp_drawable_stroke_boundary       (GimpDrawable *drawable,
                                                         GimpStrokeOptions *options,
                                                         const BoundSeg *bound_segs,
                                                         gint n_bound_segs,
                                                         gint offset_x,
                                                         gint offset_y);

drawable :

options :

bound_segs :

n_bound_segs :

offset_x :

offset_y :


gimp_drawable_stroke_vectors ()

void                gimp_drawable_stroke_vectors        (GimpDrawable *drawable,
                                                         GimpStrokeOptions *options,
                                                         GimpVectors *vectors);

drawable :

options :

vectors :

Signal Details

The "alpha-changed" signal

void                user_function                      (GimpDrawable *gimpdrawable,
                                                        gpointer      user_data)         : Run First

gimpdrawable :

the object which received the signal.

user_data :

user data set when the signal handler was connected.

The "update" signal

void                user_function                      (GimpDrawable *gimpdrawable,
                                                        gint          arg1,
                                                        gint          arg2,
                                                        gint          arg3,
                                                        gint          arg4,
                                                        gpointer      user_data)         : Run First

gimpdrawable :

the object which received the signal.

arg1 :

arg2 :

arg3 :

arg4 :

user_data :

user data set when the signal handler was connected.