krähemann.com

AgsSeekable

AgsSeekable — unique access to seekable classes

Stability Level

Stable, unless otherwise indicated

Signals

void seek Run Last

Types and Values

Object Hierarchy

    GEnum
    ╰── AgsSeekType
    GInterface
    ╰── AgsSeekable

Includes

#include <ags/object/ags_seekable.h>

Description

The AgsSeekable interface gives you the AgsSeekable::seek() signal what notifies about changed offset of pattern or notation.

Functions

ags_seekable_seek ()

void
ags_seekable_seek (AgsSeekable *seekable,
                   gint64 offset,
                   guint whence);

Seek.

Parameters

seekable

the AgsSeekable interface

 

offset

the offset

 

whence

the direction, see AgsSeekType

 

Since: 3.0.0


AGS_IS_SEEKABLE()

#define AGS_IS_SEEKABLE(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_SEEKABLE))

AGS_IS_SEEKABLE_INTERFACE()

#define AGS_IS_SEEKABLE_INTERFACE(vtable)    (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_SEEKABLE))

AGS_SEEKABLE()

#define AGS_SEEKABLE(obj)                    (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SEEKABLE, AgsSeekable))

AGS_SEEKABLE_GET_INTERFACE()

#define AGS_SEEKABLE_GET_INTERFACE(obj)      (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_SEEKABLE, AgsSeekableInterface))

AGS_SEEKABLE_INTERFACE()

#define AGS_SEEKABLE_INTERFACE(vtable)       (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_SEEKABLE, AgsSeekableInterface))

ags_seek_type_get_type ()

GType
ags_seek_type_get_type ();

ags_seekable_get_type ()

GType
ags_seekable_get_type ();

Types and Values

enum AgsSeekType

Seek type.

Members

AGS_SEEK_CUR

seek from current position

 

AGS_SEEK_SET

seek by setting absolute position

 

AGS_SEEK_END

seek from end

 

AGS_TYPE_SEEKABLE

#define AGS_TYPE_SEEKABLE                    (ags_seekable_get_type())

AGS_TYPE_SEEK_TYPE

#define AGS_TYPE_SEEK_TYPE                   (ags_seek_type_get_type())

AgsSeekable

typedef struct _AgsSeekable AgsSeekable;

struct AgsSeekableInterface

struct AgsSeekableInterface {
  GTypeInterface ginterface;

  void (*seek)(AgsSeekable *seekable, gint64 offset, guint whence);
};

Signal Details

The “seek” signal

void
user_function (AgsSeekable *seekable,
               gint64       offset,
               guint        whence,
               gpointer     user_data)

The ::seek signal notifies about changed position of sequencer.

Parameters

seekable

the GObject sub-type implementing AgsSeekable

 

offset

the offset

 

whence

the direction, see AgsSeekType

 

user_data

user data set when the signal handler was connected.

 

Flags: Run Last

Since: 3.0.0