AgsMoveNote

AgsMoveNote — move notation

Functions

Properties

gboolean absolute Read / Write
guint first-x Read / Write
guint first-y Read / Write
gint move-x Read / Write
gint move-y Read / Write
AgsNotation * notation Read / Write
gboolean relative Read / Write
gpointer selection Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── AgsTask
        ╰── AgsMoveNote

Includes

#include <ags/audio/task/ags_move_note.h>

Description

The AgsMoveNote task moves AgsNotation.

Functions

ags_move_note_new ()

AgsMoveNote *
ags_move_note_new (AgsNotation *notation,
                   GList *selection,
                   guint first_x,
                   guint first_y,
                   gint move_x,
                   gint move_y,
                   gboolean relative,
                   gboolean absolute);

Create a new instance of AgsMoveNote task. Note either relative or absolute shall be TRUE else it won't have any effect.

Parameters

notation

the AgsNotation

 

selection

the selection as GList

 

first_x

the x offset to move from

 

first_y

the x padding to use

 

move_x

the amout to move in x direction

 

move_y

the amout to move in y direction

 

relative

if TRUE move relative position

 

absolute

if TRUE move absolute position

 

Returns

a new AgsMoveNote

Since: 2.0.0


AGS_IS_MOVE_NOTE()

#define AGS_IS_MOVE_NOTE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_MOVE_NOTE))

AGS_MOVE_NOTE()

#define AGS_MOVE_NOTE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_MOVE_NOTE, AgsMoveNote))

AGS_MOVE_NOTE_CLASS()

#define AGS_MOVE_NOTE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_MOVE_NOTE, AgsMoveNoteClass))

AGS_MOVE_NOTE_GET_CLASS()

#define AGS_MOVE_NOTE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_MOVE_NOTE, AgsMoveNoteClass))

ags_move_note_get_type ()

GType
ags_move_note_get_type ();

Types and Values

AGS_MOVE_NOTE_DEFAULT_X_LENGTH

#define AGS_MOVE_NOTE_DEFAULT_X_LENGTH (16 * 16 * 1200)

AGS_MOVE_NOTE_DEFAULT_Y_LENGTH

#define AGS_MOVE_NOTE_DEFAULT_Y_LENGTH (1024)

AGS_TYPE_MOVE_NOTE

#define AGS_TYPE_MOVE_NOTE                (ags_move_note_get_type())

struct AgsMoveNote

struct AgsMoveNote;

struct AgsMoveNoteClass

struct AgsMoveNoteClass {
  AgsTaskClass task;
};

Property Details

The “absolute” property

  “absolute”                 gboolean

Move notation by absolute position.

Flags: Read / Write

Default value: FALSE

Since: 2.0.0


The “first-x” property

  “first-x”                  guint

Move notation from x offset.

Flags: Read / Write

Allowed values: <= 307200

Default value: 0

Since: 2.0.0


The “first-y” property

  “first-y”                  guint

Move notation with x padding.

Flags: Read / Write

Allowed values: <= 307200

Default value: 0

Since: 2.0.0


The “move-x” property

  “move-x”                   gint

Move notation by move-x amount.

Flags: Read / Write

Allowed values: [-307200,307200]

Default value: 0

Since: 2.0.0


The “move-y” property

  “move-y”                   gint

Move notation by move-y amount.

Flags: Read / Write

Allowed values: [-1024,1024]

Default value: 0

Since: 2.0.0


The “notation” property

  “notation”                 AgsNotation *

The assigned AgsNotation

Flags: Read / Write

Since: 2.0.0


The “relative” property

  “relative”                 gboolean

Move notation by relative position.

Flags: Read / Write

Default value: FALSE

Since: 2.0.0


The “selection” property

  “selection”                gpointer

The assigned AgsNote

Flags: Read / Write

Since: 2.0.0