AgsSeekable

AgsSeekable — unique access to seekable classes

Functions

Signals

void seek Run Last

Types and Values

Object Hierarchy

    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,
                   guint steps,
                   gboolean forward);

Seek relatively.

Parameters

seekable

the AgsSeekable interface

 

steps

the amount of seeking

 

forward

the direction, TRUE for moving ahead

 

Since: 1.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_seekable_get_type ()

GType
ags_seekable_get_type ();

Types and Values

AGS_TYPE_SEEKABLE

#define AGS_TYPE_SEEKABLE                    (ags_seekable_get_type())

AgsSeekable

typedef struct _AgsSeekable AgsSeekable;

struct AgsSeekableInterface

struct AgsSeekableInterface {
  GTypeInterface ginterface;

  void (*seek)(AgsSeekable *seekable, guint steps, gboolean forward);
};

Signal Details

The “seek” signal

void
user_function (AgsSeekable *seekable,
               guint        steps,
               gboolean     forward,
               gpointer     user_data)

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

Parameters

seekable

the object

 

steps

relative seeking

 

forward

direction to seek, if TRUE seek forward

 

user_data

user data set when the signal handler was connected.

 

Flags: Run Last

Since: 1.0.0