GTK+ Reference Manual | |||
---|---|---|---|
<<< Previous Page | Home | Up | Next Page >>> |
"spacing" guint : Read / Write "default-border-width" guint : Read / Write "default-pad-x" guint : Read / Write "default-pad-y" guint : Read / Write "default-ipad-x" guint : Read / Write "default-ipad-y" guint : Read / Write |
typedef enum { GTK_PACK_EXPAND = 1 << 0, /*< nick=expand >*/ GTK_FILL_X = 1 << 1, GTK_FILL_Y = 1 << 2 } GtkPackerOptions; |
typedef enum { GTK_SIDE_TOP, GTK_SIDE_BOTTOM, GTK_SIDE_LEFT, GTK_SIDE_RIGHT } GtkSideType; |
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 { 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; }; |
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); |
void gtk_packer_reorder_child (GtkPacker *packer, GtkWidget *child, gint position); |
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); |