AgsFileIdRef

AgsFileIdRef — file id reference

Functions

Properties

GObject * application-context Read / Write
GObject * file Read / Write
gpointer node Read / Write
gpointer reference Read / Write
gchar * xpath Read / Write

Signals

Types and Values

Object Hierarchy

    GObject
    ╰── AgsFileIdRef

Includes

#include <ags/file/ags_file_id_ref.h>

Description

The AgsFileIdRef referes a XML node by its ID. It's used to perform XPath lookup.

Functions

AGS_FILE_RESOLVE()

#define AGS_FILE_RESOLVE(f)          ((AgsFileResolve)(f))

AgsFileResolve ()

void
(*AgsFileResolve) (void);

ags_file_id_ref_resolved ()

void
ags_file_id_ref_resolved (AgsFileIdRef *file_id_ref);

Notify about resolved reference.

Parameters

file_id_ref

the AgsFileIdRef

 

Since: 1.0.0


ags_file_id_ref_new ()

AgsFileIdRef *
ags_file_id_ref_new ();

Creates an AgsFileIdRef

Returns

a new AgsFileIdRef

Since: 1.0.0


AGS_FILE_ID_REF()

#define AGS_FILE_ID_REF(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_FILE_ID_REF, AgsFileIdRef))

AGS_FILE_ID_REF_CLASS()

#define AGS_FILE_ID_REF_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_FILE_ID_REF, AgsFileIdRef))

AGS_FILE_ID_REF_GET_CLASS()

#define AGS_FILE_ID_REF_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_FILE_ID_REF, AgsFileIdRefClass))

AGS_IS_FILE_ID_REF()

#define AGS_IS_FILE_ID_REF(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_FILE_ID_REF))

ags_file_id_ref_get_type ()

GType
ags_file_id_ref_get_type ();

Types and Values

AGS_FILE_ID_REF_SERIALIZE_DATA

#define AGS_FILE_ID_REF_SERIALIZE_DATA "ags-file-id-ref-serizalize-data\0"

AGS_FILE_ID_REF_RESOLVE_DATA

#define AGS_FILE_ID_REF_RESOLVE_DATA "ags-file-id-ref-resolve-data\0"

AGS_TYPE_FILE_ID_REF

#define AGS_TYPE_FILE_ID_REF                (ags_file_id_ref_get_type())

struct AgsFileIdRef

struct AgsFileIdRef;

struct AgsFileIdRefClass

struct AgsFileIdRefClass {
  GObjectClass object;

  void (*resolved)(AgsFileIdRef *file_id_ref);
};

Property Details

The “application-context” property

  “application-context”      GObject *

The AgsApplicationContext to be used.

Flags: Read / Write

Since: 1.0.0


The “file” property

  “file”                     GObject *

The AgsFile this AgsFileIdRef belongs to.

Flags: Read / Write

Since: 1.0.0


The “node” property

  “node”                     gpointer

The assigned xmlNode being refered by this AgsFileIdRef.

Flags: Read / Write

Since: 1.0.0


The “reference” property

  “reference”                gpointer

The object refered by this AgsFileIdRef.

Flags: Read / Write

Since: 1.0.0


The “xpath” property

  “xpath”                    gchar *

The XPath short-cut that can be used with this AgsFileIdRef.

Flags: Read / Write

Default value: NULL

Since: 1.0.0

Signal Details

The “resolved” signal

void
user_function (AgsFileIdRef *file_id_ref,
               gpointer      user_data)

Signal ::resolved to notify about resolved :reference.

Parameters

file_id_ref

the AgsFileIdRef

 

user_data

user data set when the signal handler was connected.

 

Flags: Run Last

Since: 1.0.0