Constructor

AgsAudioMoveNotenew

since: 3.0.0

Declaration [src]

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

Description [src]

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

Available since: 3.0.0

Parameters

audio

Type: AgsAudio

The AgsAudio.

The data is owned by the caller of the function.
notation

Type: AgsNotation

The AgsNotation.

The data is owned by the caller of the function.
selection

Type: A list of AgsNote*

The selection as GList-struct.

The data is owned by the caller of the function.
first_x

Type: guint

The x offset to move from.

first_y

Type: guint

The x padding to use.

move_x

Type: gint

The amout to move in x direction.

move_y

Type: gint

The amout to move in y direction.

relative

Type: gboolean

If TRUE move relative position.

absolute

Type: gboolean

If TRUE move absolute position.

Return value

Type: AgsMoveNote

A new AgsMoveNote.

The caller of the function takes ownership of the data, and is responsible for freeing it.