GimpColorDisplayStack

## GimpColorDisplayStack GimpColorDisplayStack — A stack of color correction modules. |

## Synopsis

                        GimpColorDisplayStack;
    GimpColorDisplayStack * gimp_color_display_stack_new    (void);
    GimpColorDisplayStack * gimp_color_display_stack_clone  (GimpColorDisplayStack *stack);
    void                gimp_color_display_stack_changed    (GimpColorDisplayStack *stack);
    void                gimp_color_display_stack_add        (GimpColorDisplayStack *stack,
                                                             GimpColorDisplay *display);
    void                gimp_color_display_stack_remove     (GimpColorDisplayStack *stack,
                                                             GimpColorDisplay *display);
    void                gimp_color_display_stack_reorder_up (GimpColorDisplayStack *stack,
                                                             GimpColorDisplay *display);
    void                gimp_color_display_stack_reorder_down
                                                            (GimpColorDisplayStack *stack,
                                                             GimpColorDisplay *display);
    void                gimp_color_display_stack_convert    (GimpColorDisplayStack *stack,
                                                             guchar *buf,
                                                             gint width,
                                                             gint height,
                                                             gint bpp,
                                                             gint bpl);
    void                gimp_color_display_stack_convert_surface
                                                            (GimpColorDisplayStack *stack,
                                                             cairo_surface_t *surface);

## Object Hierarchy

      GObject
       +----GimpColorDisplayStack

## Signals

      "added"                                          : Run First
      "changed"                                        : Run First
      "removed"                                        : Run First
      "reordered"                                      : Run First

## Description

A stack of color correction modules.

## Details

### GimpColorDisplayStack

    typedef struct _GimpColorDisplayStack GimpColorDisplayStack;

### gimp_color_display_stack_new ()

    GimpColorDisplayStack * gimp_color_display_stack_new    (void);

### gimp_color_display_stack_clone ()

    GimpColorDisplayStack * gimp_color_display_stack_clone  (GimpColorDisplayStack *stack);

### gimp_color_display_stack_changed ()

    void                gimp_color_display_stack_changed    (GimpColorDisplayStack *stack);

### gimp_color_display_stack_add ()

    void                gimp_color_display_stack_add        (GimpColorDisplayStack *stack,
                                                             GimpColorDisplay *display);

### gimp_color_display_stack_remove ()

    void                gimp_color_display_stack_remove     (GimpColorDisplayStack *stack,
                                                             GimpColorDisplay *display);

### gimp_color_display_stack_reorder_up ()

    void                gimp_color_display_stack_reorder_up (GimpColorDisplayStack *stack,
                                                             GimpColorDisplay *display);

### gimp_color_display_stack_reorder_down ()

    void                gimp_color_display_stack_reorder_down
                                                            (GimpColorDisplayStack *stack,
                                                             GimpColorDisplay *display);

### gimp_color_display_stack_convert ()

    void                gimp_color_display_stack_convert    (GimpColorDisplayStack *stack,
                                                             guchar *buf,
                                                             gint width,
                                                             gint height,
                                                             gint bpp,
                                                             gint bpl);

### Warning

`gimp_color_display_stack_convert` is deprecated and should not be used in newly-written code. GIMP 2.8: Use `gimp_color_display_stack_convert_surface()` instead.

Converts all pixels in `buf`.

`stack` : | a GimpColorDisplayStack
`buf` : | the pixel buffer to convert
`width` : | the width of the buffer
`height` : | the height of the buffer
`bpp` : | the number of bytes per pixel
`bpl` : | the buffer's rowstride

### gimp_color_display_stack_convert_surface ()

    void                gimp_color_display_stack_convert_surface
                                                            (GimpColorDisplayStack *stack,
                                                             cairo_surface_t *surface);

Runs all the stack's filters on all pixels in `surface`.

`stack` : | a GimpColorDisplayStack
`surface` : | a cairo_image_surface_t of type ARGB32

Since GIMP 2.8

## Signal Details

### The `"added"` signal

    void                user_function                      (GimpColorDisplayStack *gimpcolordisplaystack,
                                                            GimpColorDisplay      *arg1,
                                                            gint                   arg2,
                                                            gpointer               user_data)                  : Run First

`gimpcolordisplaystack` : | the object which received the signal.
`user_data` : | user data set when the signal handler was connected.

### The `"changed"` signal

    void                user_function                      (GimpColorDisplayStack *gimpcolordisplaystack,
                                                            gpointer               user_data)                  : Run First

`gimpcolordisplaystack` : | the object which received the signal.
`user_data` : | user data set when the signal handler was connected.

### The `"removed"` signal

    void                user_function                      (GimpColorDisplayStack *gimpcolordisplaystack,
                                                            GimpColorDisplay      *arg1,
                                                            gpointer               user_data)                  : Run First

`gimpcolordisplaystack` : | the object which received the signal.
`user_data` : | user data set when the signal handler was connected.

### The `"reordered"` signal

    void                user_function                      (GimpColorDisplayStack *gimpcolordisplaystack,
                                                            GimpColorDisplay      *arg1,
                                                            gint                   arg2,
                                                            gpointer               user_data)                  : Run First

`gimpcolordisplaystack` : | the object which received the signal.
`user_data` : | user data set when the signal handler was connected.

## See Also

GimpColorDisplay