GTK+ Reference Manual
<<< Previous Page | Home | Up | Next Page >>>

# GtkPacker

## Name

GtkPacker --

## Synopsis

    #include <gtk/gtk.h>

    struct      GtkPacker;
    enum        GtkPackerOptions;
    enum        GtkSideType;
    enum        GtkAnchorType;
    struct      GtkPackerChild;
    GtkWidget*  gtk_packer_new                  (void);
    void        gtk_packer_add_defaults         (GtkPacker *packer,
                                                 GtkWidget *child,
                                                 GtkSideType side,
                                                 GtkAnchorType anchor,
                                                 GtkPackerOptions options);
    void        gtk_packer_add                  (GtkPacker *packer,
                                                 GtkWidget *child,
                                                 GtkSideType side,
                                                 GtkAnchorType anchor,
                                                 GtkPackerOptions options,
                                                 guint border_width,
                                                 guint pad_x,
                                                 guint pad_y,
                                                 guint i_pad_x,
                                                 guint i_pad_y);
    #define     gtk_packer_configure
    void        gtk_packer_reorder_child        (GtkPacker *packer,
                                                 GtkWidget *child,
                                                 gint position);
    void        gtk_packer_set_spacing          (GtkPacker *packer,
                                                 guint spacing);
    void        gtk_packer_set_default_border_width
                                                (GtkPacker *packer,
                                                 guint border);
    void        gtk_packer_set_default_pad      (GtkPacker *packer,
                                                 guint pad_x,
                                                 guint pad_y);
    void        gtk_packer_set_default_ipad     (GtkPacker *packer,
                                                 guint i_pad_x,
                                                 guint i_pad_y);
    void        gtk_packer_set_child_packing    (GtkPacker *packer,
                                                 GtkWidget *child,
                                                 GtkSideType side,
                                                 GtkAnchorType anchor,
                                                 GtkPackerOptions options,
                                                 guint border_width,
                                                 guint pad_x,
                                                 guint pad_y,
                                                 guint i_pad_x,
                                                 guint i_pad_y);

## Description

## Details

### struct GtkPacker

    struct GtkPacker
    {
      GtkContainer parent;

      GList *children;

      guint spacing;

      guint default_border_width : 16;
      guint default_pad_x : 16;
      guint default_pad_y : 16;
      guint default_i_pad_x : 16;
      guint default_i_pad_y : 16;
    };

Warning
`GtkPacker` is deprecated and should not be used in newly-written code.

### enum GtkPackerOptions

    typedef enum
    {
        GTK_PACK_EXPAND   = 1 << 0,	/*< nick=expand >*/
        GTK_FILL_X        = 1 << 1,
        GTK_FILL_Y        = 1 << 2
    } GtkPackerOptions;

Warning
`GtkPackerOptions` is deprecated and should not be used in newly-written code.

### enum GtkSideType

    typedef enum
    {
      GTK_SIDE_TOP,
      GTK_SIDE_BOTTOM,
      GTK_SIDE_LEFT,
      GTK_SIDE_RIGHT
    } GtkSideType;

### enum GtkAnchorType

    typedef enum
    {
      GTK_ANCHOR_CENTER,
      GTK_ANCHOR_NORTH,
      GTK_ANCHOR_NORTH_WEST,
      GTK_ANCHOR_NORTH_EAST,
      GTK_ANCHOR_SOUTH,
      GTK_ANCHOR_SOUTH_WEST,
      GTK_ANCHOR_SOUTH_EAST,
      GTK_ANCHOR_WEST,
      GTK_ANCHOR_EAST,
      GTK_ANCHOR_N		= GTK_ANCHOR_NORTH,
      GTK_ANCHOR_NW		= GTK_ANCHOR_NORTH_WEST,
      GTK_ANCHOR_NE		= GTK_ANCHOR_NORTH_EAST,
      GTK_ANCHOR_S		= GTK_ANCHOR_SOUTH,
      GTK_ANCHOR_SW		= GTK_ANCHOR_SOUTH_WEST,
      GTK_ANCHOR_SE		= GTK_ANCHOR_SOUTH_EAST,
      GTK_ANCHOR_W		= GTK_ANCHOR_WEST,
      GTK_ANCHOR_E		= GTK_ANCHOR_EAST
    } GtkAnchorType;

### struct GtkPackerChild

    struct GtkPackerChild
    {
      GtkWidget *widget;

      GtkAnchorType anchor;
      GtkSideType side;
      GtkPackerOptions options;

      guint use_default : 1;

      guint border_width : 16;
      guint pad_x : 16;
      guint pad_y : 16;
      guint i_pad_x : 16;
      guint i_pad_y : 16;
    };

Warning
`GtkPackerChild` is deprecated and should not be used in newly-written code.

### gtk_packer_new ()

    GtkWidget*  gtk_packer_new                  (void);

Warning
`gtk_packer_new` is deprecated and should not be used in newly-written code.

Returns : |

### gtk_packer_add_defaults ()

    void        gtk_packer_add_defaults         (GtkPacker *packer,
                                                 GtkWidget *child,
                                                 GtkSideType side,
                                                 GtkAnchorType anchor,
                                                 GtkPackerOptions options);

Warning
`gtk_packer_add_defaults` is deprecated and should not be used in newly-written code.

`packer` : |
`child` : |
`side` : |
`anchor` : |
`options` : |

### gtk_packer_add ()

    void        gtk_packer_add                  (GtkPacker *packer,
                                                 GtkWidget *child,
                                                 GtkSideType side,
                                                 GtkAnchorType anchor,
                                                 GtkPackerOptions options,
                                                 guint border_width,
                                                 guint pad_x,
                                                 guint pad_y,
                                                 guint i_pad_x,
                                                 guint i_pad_y);

Warning
`gtk_packer_add` is deprecated and should not be used in newly-written code.

`packer` : |
`child` : |
`side` : |
`anchor` : |
`options` : |
`border_width` : |
`pad_x` : |
`pad_y` : |
`i_pad_x` : |
`i_pad_y` : |

### gtk_packer_configure

    #define	gtk_packer_configure                    gtk_packer_set_child_packing

### gtk_packer_reorder_child ()

    void        gtk_packer_reorder_child        (GtkPacker *packer,
                                                 GtkWidget *child,
                                                 gint position);

Warning
`gtk_packer_reorder_child` is deprecated and should not be used in newly-written code.

`packer` : |
`child` : |
`position` : |

### gtk_packer_set_spacing ()

    void        gtk_packer_set_spacing          (GtkPacker *packer,
                                                 guint spacing);

Warning
`gtk_packer_set_spacing` is deprecated and should not be used in newly-written code.

`packer` : |
`spacing` : |

### gtk_packer_set_default_border_width ()

    void        gtk_packer_set_default_border_width
                                                (GtkPacker *packer,
                                                 guint border);

Warning
`gtk_packer_set_default_border_width` is deprecated and should not be used in newly-written code.

`packer` : |
`border` : |

### gtk_packer_set_default_pad ()

    void        gtk_packer_set_default_pad      (GtkPacker *packer,
                                                 guint pad_x,
                                                 guint pad_y);

Warning
`gtk_packer_set_default_pad` is deprecated and should not be used in newly-written code.

`packer` : |
`pad_x` : |
`pad_y` : |

### gtk_packer_set_default_ipad ()

    void        gtk_packer_set_default_ipad     (GtkPacker *packer,
                                                 guint i_pad_x,
                                                 guint i_pad_y);

Warning
`gtk_packer_set_default_ipad` is deprecated and should not be used in newly-written code.

`packer` : |
`i_pad_x` : |
`i_pad_y` : |

### gtk_packer_set_child_packing ()

    void        gtk_packer_set_child_packing    (GtkPacker *packer,
                                                 GtkWidget *child,
                                                 GtkSideType side,
                                                 GtkAnchorType anchor,
                                                 GtkPackerOptions options,
                                                 guint border_width,
                                                 guint pad_x,
                                                 guint pad_y,
                                                 guint i_pad_x,
                                                 guint i_pad_y);

Warning
`gtk_packer_set_child_packing` is deprecated and should not be used in newly-written code.

`packer` : |
`child` : |
`side` : |
`anchor` : |
`options` : |
`border_width` : |
`pad_x` : |
`pad_y` : |
`i_pad_x` : |
`i_pad_y` : |

<<< Previous Page | Home | Up | Next Page >>>
GtkListItem | GtkPixmap