AgsDynamicConnectable

AgsDynamicConnectable — unique access to dynamic connectable classes

Functions

Types and Values

Object Hierarchy

    GInterface
    ╰── AgsDynamicConnectable

Includes

#include <ags/object/ags_dynamic_connectable.h>

Description

The AgsDynamicConnectable interface gives you a unique access to classes. Its main purpose is to setup up signal handlers with dynamic context for ::connect-dynamic. A dynamic context would be a dependency that has to be resolved first within run initialization.

Functions

ags_dynamic_connectable_connect_dynamic ()

void
ags_dynamic_connectable_connect_dynamic
                               (AgsDynamicConnectable *connectable);

Connect signal handlers within dynamic context.

Parameters

connectable

an AgsDynamicConnectable

 

Since: 1.0.0


ags_dynamic_connectable_disconnect_dynamic ()

void
ags_dynamic_connectable_disconnect_dynamic
                               (AgsDynamicConnectable *connectable);

Disconnect signal handlers within dynamic context.

Parameters

connectable

an AgsDynamicConnectable

 

Since: 1.0.0


AGS_DYNAMIC_CONNECTABLE()

#define AGS_DYNAMIC_CONNECTABLE(obj)                    (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_DYNAMIC_CONNECTABLE, AgsDynamicConnectable))

AGS_DYNAMIC_CONNECTABLE_GET_INTERFACE()

#define AGS_DYNAMIC_CONNECTABLE_GET_INTERFACE(obj)      (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_DYNAMIC_CONNECTABLE, AgsDynamicConnectableInterface))

AGS_DYNAMIC_CONNECTABLE_INTERFACE()

#define AGS_DYNAMIC_CONNECTABLE_INTERFACE(vtable)       (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_DYNAMIC_CONNECTABLE, AgsDynamicConnectableInterface))

AGS_IS_DYNAMIC_CONNECTABLE()

#define AGS_IS_DYNAMIC_CONNECTABLE(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_DYNAMIC_CONNECTABLE))

AGS_IS_DYNAMIC_CONNECTABLE_INTERFACE()

#define AGS_IS_DYNAMIC_CONNECTABLE_INTERFACE(vtable)    (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_DYNAMIC_CONNECTABLE))

ags_dynamic_connectable_get_type ()

GType
ags_dynamic_connectable_get_type ();

Types and Values

AGS_TYPE_DYNAMIC_CONNECTABLE

#define AGS_TYPE_DYNAMIC_CONNECTABLE                    (ags_dynamic_connectable_get_type())

AgsDynamicConnectable

typedef struct _AgsDynamicConnectable AgsDynamicConnectable;

struct AgsDynamicConnectableInterface

struct AgsDynamicConnectableInterface {
  GTypeInterface ginterface;

  void (*connect_dynamic)(AgsDynamicConnectable *connectable);
  void (*disconnect_dynamic)(AgsDynamicConnectable *connectable);
};