AgsPackable

AgsPackable — pack ressources

Functions

Types and Values

Object Hierarchy

    GInterface
    ╰── AgsPackable

Includes

#include <ags/object/ags_packable.h>

Description

The AgsPackable interface gives you a unique access to packable classes.

Functions

ags_packable_pack ()

gboolean
ags_packable_pack (AgsPackable *packable,
                   GObject *container);

Pack to container.

Parameters

packable

the AgsPackable

 

container

the container

 

Returns

TRUE on success

Since: 1.0.0


ags_packable_unpack ()

gboolean
ags_packable_unpack (AgsPackable *packable);

Unpack from container.

Parameters

packable

the AgsPackable

 

Returns

TRUE on success

Since: 1.0.0


AGS_IS_PACKABLE()

#define AGS_IS_PACKABLE(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_PACKABLE))

AGS_IS_PACKABLE_INTERFACE()

#define AGS_IS_PACKABLE_INTERFACE(vtable)    (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_PACKABLE))

AGS_PACKABLE()

#define AGS_PACKABLE(obj)                    (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PACKABLE, AgsPackable))

AGS_PACKABLE_GET_INTERFACE()

#define AGS_PACKABLE_GET_INTERFACE(obj)      (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_PACKABLE, AgsPackableInterface))

AGS_PACKABLE_INTERFACE()

#define AGS_PACKABLE_INTERFACE(vtable)       (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_PACKABLE, AgsPackableInterface))

ags_packable_get_type ()

GType
ags_packable_get_type ();

Types and Values

AGS_TYPE_PACKABLE

#define AGS_TYPE_PACKABLE                    (ags_packable_get_type())

AgsPackable

typedef struct _AgsPackable AgsPackable;

struct AgsPackableInterface

struct AgsPackableInterface {
  GTypeInterface ginterface;

  gboolean (*pack)(AgsPackable *packable, GObject *container);
  gboolean (*unpack)(AgsPackable *packable);
};