AgsExpander

AgsExpander — A expander widget

Synopsis

#include <ags/widget/ags_expander.h>

#define             AGS_EXPANDER_CHILD                  (ptr)
struct              AgsExpander;
struct              AgsExpanderChild;
struct              AgsExpanderClass;
enum                AgsExpanderFlags;
void                ags_expander_add                    (AgsExpander *expander,
                                                         GtkWidget *widget,
                                                         guint x,
                                                         guint y,
                                                         guint width,
                                                         guint height);
AgsExpanderChild *  ags_expander_child_alloc            (guint x,
                                                         guint y,
                                                         guint width,
                                                         guint height);
AgsExpanderChild *  ags_expander_child_find             (AgsExpander *expander,
                                                         GtkWidget *child);
AgsExpander *       ags_expander_new                    (guint width,
                                                         guint height);
void                ags_expander_remove                 (AgsExpander *expander,
                                                         GtkWidget *widget);

Description

AgsExpander is a composite widget containing a GtkTable. It is mainly used to layout childs in rows and columns that can be expanded.

Details

AGS_EXPANDER_CHILD()

#define AGS_EXPANDER_CHILD(ptr) ((AgsExpanderChild *)(ptr))

struct AgsExpander

struct AgsExpander {
  GtkExpander expander;

  guint flags;

  GtkTable *table;

  GList *children;
};

struct AgsExpanderChild

struct AgsExpanderChild {
  GtkWidget *child;

  guint x;
  guint y;

  guint width;
  guint height;
};

struct AgsExpanderClass

struct AgsExpanderClass {
  GtkExpanderClass expander;
};

enum AgsExpanderFlags

typedef enum {
  AGS_EXPANDER_DRAW_BORDER        = 1,
} AgsExpanderFlags;

ags_expander_add ()

void                ags_expander_add                    (AgsExpander *expander,
                                                         GtkWidget *widget,
                                                         guint x,
                                                         guint y,
                                                         guint width,
                                                         guint height);

Adds a GtkWidget to AgsExpander

expander :

the AgsExpander

widget :

the child GtkWidget

x :

x-position

y :

y-position

width :

allocation width

height :

allocation height

Since 0.4


ags_expander_child_alloc ()

AgsExpanderChild *  ags_expander_child_alloc            (guint x,
                                                         guint y,
                                                         guint width,
                                                         guint height);

ags_expander_child_find ()

AgsExpanderChild *  ags_expander_child_find             (AgsExpander *expander,
                                                         GtkWidget *child);

ags_expander_new ()

AgsExpander *       ags_expander_new                    (guint width,
                                                         guint height);

Creates an AgsExpander

height :

the table's height

width :

the table's width

Returns :

a new AgsExpander

Since 0.4


ags_expander_remove ()

void                ags_expander_remove                 (AgsExpander *expander,
                                                         GtkWidget *widget);

Removes a GtkWidget of AgsExpander

expander :

the AgsExpander

widget :

the child GtkWidget

Since 0.4