AgsAcceleration

AgsAcceleration — Acceleration class

Functions

Properties

gchar * acceleration-name Read / Write
guint x Read / Write
gdouble y Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── AgsAcceleration

Includes

#include <ags/audio/ags_acceleration.h>

Description

AgsAcceleration represents a downhill-grade.

Functions

AGS_ACCELERATION_GET_OBJ_MUTEX()

#define AGS_ACCELERATION_GET_OBJ_MUTEX(obj) (((AgsAcceleration *) obj)->obj_mutex)

ags_acceleration_get_class_mutex ()

pthread_mutex_t *
ags_acceleration_get_class_mutex ();

Use this function's returned mutex to access mutex fields.

Returns

the class mutex

Since: 2.0.0


ags_acceleration_test_flags ()

gboolean
ags_acceleration_test_flags (AgsAcceleration *acceleration,
                             guint flags);

Test flags to be set on acceleration .

Parameters

acceleration

the AgsAcceleration

 

flags

the flags

 

Returns

TRUE if flags are set, else FALSE

Since: 2.0.0


ags_acceleration_set_flags ()

void
ags_acceleration_set_flags (AgsAcceleration *acceleration,
                            guint flags);

Set flags on acceleration .

Parameters

acceleration

the AgsAcceleration

 

flags

the flags

 

Since: 2.0.0


ags_acceleration_unset_flags ()

void
ags_acceleration_unset_flags (AgsAcceleration *acceleration,
                              guint flags);

Unset flags on acceleration .

Parameters

acceleration

the AgsAcceleration

 

flags

the flags

 

Since: 2.0.0


ags_acceleration_sort_func ()

gint
ags_acceleration_sort_func (gconstpointer a,
                            gconstpointer b);

Sort accelerations.

Parameters

Returns

0 if equal, -1 if smaller and 1 if bigger offset

Since: 2.0.0


ags_acceleration_duplicate ()

AgsAcceleration *
ags_acceleration_duplicate (AgsAcceleration *acceleration);

Duplicate a acceleration.

Parameters

acceleration

an AgsAcceleration

 

Returns

the duplicated AgsAcceleration.

Since: 2.0.0


ags_acceleration_new ()

AgsAcceleration *
ags_acceleration_new ();

Creates a new instance of AgsAcceleration

Returns

the new AgsAcceleration

Since: 2.0.0


AGS_ACCELERATION()

#define AGS_ACCELERATION(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_ACCELERATION, AgsAcceleration))

AGS_ACCELERATION_CLASS()

#define AGS_ACCELERATION_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_ACCELERATION, AgsAccelerationClass))

AGS_ACCELERATION_GET_CLASS()

#define AGS_ACCELERATION_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_ACCELERATION, AgsAccelerationClass))

AGS_IS_ACCELERATION()

#define AGS_IS_ACCELERATION(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_ACCELERATION))

ags_acceleration_get_type ()

GType
ags_acceleration_get_type ();

Types and Values

enum AgsAccelerationFlags

Members

AGS_ACCELERATION_DEFAULT_START

if start is default start point

 

AGS_ACCELERATION_DEFAULT_END

if end is default end point

 

AGS_ACCELERATION_GUI

interpret x and y as GUI format

 

AGS_ACCELERATION_RUNTIME

interpret x and y as runtime formant

 

AGS_ACCELERATION_HUMAN_READABLE

interpret x and y as human readable

 

AGS_ACCELERATION_DEFAULT_LENGTH

if default length applies

 

AGS_ACCELERATION_IS_SELECTED

if the acceleration is selected

 

AGS_TYPE_ACCELERATION

#define AGS_TYPE_ACCELERATION                (ags_acceleration_get_type())

struct AgsAcceleration

struct AgsAcceleration;

struct AgsAccelerationClass

struct AgsAccelerationClass {
  GObjectClass gobject;
};

Property Details

The “acceleration-name” property

  “acceleration-name”        gchar *

The acceleration's name.

Flags: Read / Write

Default value: NULL

Since: 2.0.0


The “x” property

  “x”                        guint

Acceleration offset x.

Flags: Read / Write

Default value: 0

Since: 2.0.0


The “y” property

  “y”                        gdouble

Acceleration value y.

Flags: Read / Write

Default value: 0

Since: 2.0.0