AgsExpanderSet

AgsExpanderSet — A container

Synopsis

#include <ags/widget/ags_expander_set.h>

#define             AGS_EXPANDER_SET_CHILD              (ptr)
struct              AgsExpanderSet;
struct              AgsExpanderSetChild;
struct              AgsExpanderSetClass;
enum                AgsExpanderSetFlags;
void                ags_expander_set_add                (AgsExpanderSet *expander_set,
                                                         GtkWidget *widget,
                                                         guint x,
                                                         guint y,
                                                         guint width,
                                                         guint height);
AgsExpanderSetChild * ags_expander_set_child_alloc      (guint x,
                                                         guint y,
                                                         guint width,
                                                         guint height);
AgsExpanderSetChild * ags_expander_set_child_find       (AgsExpanderSet *expander_set,
                                                         GtkWidget *child);
AgsExpanderSet *    ags_expander_set_new                (guint width,
                                                         guint height);
void                ags_expander_set_remove             (AgsExpanderSet *expander_set,
                                                         GtkWidget *widget);
void                ags_expander_set_set_flags          (AgsExpanderSet *expander_set,
                                                         guint flags);

Description

AgsExpanderSet is a composite widget containing a GtkTable.

Details

AGS_EXPANDER_SET_CHILD()

#define AGS_EXPANDER_SET_CHILD(ptr) ((AgsExpanderSetChild *)(ptr))

struct AgsExpanderSet

struct AgsExpanderSet {
  GtkTable table;

  guint flags;

  GList *ghost;
  GList *location;
};

struct AgsExpanderSetChild

struct AgsExpanderSetChild {
  GtkWidget *child;

  guint x;
  guint y;

  guint width;
  guint height;
};

struct AgsExpanderSetClass

struct AgsExpanderSetClass {
  GtkTableClass table;
};

enum AgsExpanderSetFlags

typedef enum {
  AGS_EXPANDER_SET_DRAW_GHOST            = 1,
  AGS_EXPANDER_SET_DRAW_LEFT_ENDING      = 1 << 1,
  AGS_EXPANDER_SET_DRAW_RIGHT_ENDING     = 1 << 2,
  AGS_EXPANDER_SET_DRAW_LEFT_CONNECTOR   = 1 << 3,
  AGS_EXPANDER_SET_DRAW_RIGHT_CONNECTOR  = 1 << 4,
} AgsExpanderSetFlags;

ags_expander_set_add ()

void                ags_expander_set_add                (AgsExpanderSet *expander_set,
                                                         GtkWidget *widget,
                                                         guint x,
                                                         guint y,
                                                         guint width,
                                                         guint height);

Adds a GtkWidget to AgsExpanderSet

expander_set :

the AgsExpanderSet

widget :

the child GtkWidget

x :

x-position

y :

y-position

width :

allocation width

height :

allocation height

Since 0.4


ags_expander_set_child_alloc ()

AgsExpanderSetChild * ags_expander_set_child_alloc      (guint x,
                                                         guint y,
                                                         guint width,
                                                         guint height);

ags_expander_set_child_find ()

AgsExpanderSetChild * ags_expander_set_child_find       (AgsExpanderSet *expander_set,
                                                         GtkWidget *child);

ags_expander_set_new ()

AgsExpanderSet *    ags_expander_set_new                (guint width,
                                                         guint height);

Creates an AgsExpanderSet

height :

the table's height

width :

the table's width

Returns :

a new AgsExpanderSet

Since 0.4


ags_expander_set_remove ()

void                ags_expander_set_remove             (AgsExpanderSet *expander_set,
                                                         GtkWidget *widget);

Removes a GtkWidget of AgsExpanderSet

expander_set :

the AgsExpanderSet

widget :

the child GtkWidget

Since 0.4


ags_expander_set_set_flags ()

void                ags_expander_set_set_flags          (AgsExpanderSet *expander_set,
                                                         guint flags);