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

Object Hierarchy


  GtkObject
   +----GtkWidget
         +----GtkContainer
               +----GtkPacker

Args


  "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

Description

Details

struct GtkPacker

struct GtkPacker;


enum GtkPackerOptions

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


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;
};


gtk_packer_new ()

GtkWidget*  gtk_packer_new                  (void);

Returns : 


gtk_packer_add_defaults ()

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

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

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

packer : 
child : 
position : 


gtk_packer_set_spacing ()

void        gtk_packer_set_spacing          (GtkPacker *packer,
                                             guint spacing);

packer : 
spacing : 


gtk_packer_set_default_border_width ()

void        gtk_packer_set_default_border_width
                                            (GtkPacker *packer,
                                             guint border);

packer : 
border : 


gtk_packer_set_default_pad ()

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

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

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

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

Args

"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)