krähemann.com

AgsExpander

AgsExpander — A expander widget

Properties

GtkWidget * child Read / Write
guint height Read / Write
guint width Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkWidget
            ╰── GtkContainer
                ╰── GtkBin
                    ╰── GtkExpander
                        ╰── AgsExpander

Implemented Interfaces

AgsExpander implements AtkImplementorIface and GtkBuildable.

Includes

#include <ags/widget/ags_expander.h>

Description

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

Functions

AGS_EXPANDER_CHILD()

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

ags_expander_child_alloc ()

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

Allocate AgsExpanderChild.

Parameters

x

the x position

 

y

the y position

 

width

the width

 

height

the height

 

Returns

the new AgsExpanderChild.

[type gpointer][transfer full]

Since: 3.0.0


ags_expander_child_free ()

void
ags_expander_child_free (AgsExpanderChild *expander_child);

Free expander_child .

Parameters

expander_child

the AgsExpanderChild.

[type gpointer][transfer full]

Since: 3.2.2


ags_expander_child_find ()

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

Find child of expander .

Parameters

expander

the AgsExpander

 

child

the GtkWidget

 

Returns

the matching AgsExpanderChild.

[type gpointer][transfer none]

Since: 3.0.0


ags_expander_add ()

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

Adds a GtkWidget to AgsExpander

Parameters

expander

the AgsExpander

 

widget

the child GtkWidget

 

x

x-position

 

y

y-position

 

width

allocation width

 

height

allocation height

 

Since: 3.0.0


ags_expander_remove ()

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

Removes a GtkWidget of AgsExpander

Parameters

expander

the AgsExpander

 

widget

the child GtkWidget

 

Since: 3.0.0


ags_expander_new ()

AgsExpander *
ags_expander_new (guint width,
                  guint height);

Creates an AgsExpander

Parameters

height

the table's height

 

width

the table's width

 

Returns

a new AgsExpander

Since: 3.0.0


AGS_EXPANDER()

#define AGS_EXPANDER(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_EXPANDER, AgsExpander))

AGS_EXPANDER_CLASS()

#define AGS_EXPANDER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_EXPANDER, AgsExpanderClass))

AGS_EXPANDER_GET_CLASS()

#define AGS_EXPANDER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_EXPANDER, AgsExpanderClass))

AGS_IS_EXPANDER()

#define AGS_IS_EXPANDER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_EXPANDER))

AGS_IS_EXPANDER_CLASS()

#define AGS_IS_EXPANDER_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_EXPANDER))

ags_expander_get_type ()

GType
ags_expander_get_type (void);

Types and Values

enum AgsExpanderFlags

Members

AGS_EXPANDER_DRAW_BORDER

   

struct AgsExpanderChild

struct AgsExpanderChild {
  GtkWidget *child;

  guint x;
  guint y;

  guint width;
  guint height;
};

AGS_TYPE_EXPANDER

#define AGS_TYPE_EXPANDER                (ags_expander_get_type())

struct AgsExpander

struct AgsExpander;

struct AgsExpanderClass

struct AgsExpanderClass {
  GtkExpanderClass expander;
};

Property Details

The “child” property

  “child”                    GtkWidget *

The child which this expander is packed into.

Owner: AgsExpander

Flags: Read / Write


The “height” property

  “height”                   guint

The height which this expander is packed into.

Owner: AgsExpander

Flags: Read / Write

Default value: 1


The “width” property

  “width”                    guint

The width of the expander's grid.

Owner: AgsExpander

Flags: Read / Write

Default value: 1