AgsAddPointToSelection

AgsAddPointToSelection — add point to notation selection

Functions

Properties

AgsNotation * notation Read / Write
gboolean replace-current-selection Read / Write
guint x Read / Write
guint y Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── AgsTask
        ╰── AgsAddPointToSelection

Implemented Interfaces

AgsAddPointToSelection implements AgsConnectable.

Includes

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

Description

The AgsAddPointToSelection task adds the specified AgsNote to selection of AgsNotation.

Functions

ags_add_point_to_selection_new ()

AgsAddPointToSelection *
ags_add_point_to_selection_new (AgsNotation *notation,
                                guint x,
                                guint y,
                                gboolean replace_current_selection);

Creates an AgsAddPointToSelection.

Parameters

notation

the AgsNotation providing the selection

 

x

x coordinate

 

y

y coordinate

 

replace_current_selection

if TRUE new selection is created, otherwise added to current

 

Returns

an new AgsAddPointToSelection.

Since: 1.0.0


AGS_ADD_POINT_TO_SELECTION()

#define AGS_ADD_POINT_TO_SELECTION(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_ADD_POINT_TO_SELECTION, AgsAddPointToSelection))

AGS_ADD_POINT_TO_SELECTION_CLASS()

#define AGS_ADD_POINT_TO_SELECTION_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_ADD_POINT_TO_SELECTION, AgsAddPointToSelectionClass))

AGS_ADD_POINT_TO_SELECTION_GET_CLASS()

#define AGS_ADD_POINT_TO_SELECTION_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_ADD_POINT_TO_SELECTION, AgsAddPointToSelectionClass))

AGS_IS_ADD_POINT_TO_SELECTION()

#define AGS_IS_ADD_POINT_TO_SELECTION(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_ADD_POINT_TO_SELECTION))

ags_add_point_to_selection_get_type ()

GType
ags_add_point_to_selection_get_type ();

Types and Values

AGS_TYPE_ADD_POINT_TO_SELECTION

#define AGS_TYPE_ADD_POINT_TO_SELECTION                (ags_add_point_to_selection_get_type())

struct AgsAddPointToSelection

struct AgsAddPointToSelection;

struct AgsAddPointToSelectionClass

struct AgsAddPointToSelectionClass {
  AgsTaskClass task;
};

Property Details

The “notation” property

  “notation”                 AgsNotation *

The assigned AgsNotation

Flags: Read / Write

Since: 1.0.0


The “replace-current-selection” property

  “replace-current-selection” gboolean

The notation's replace-current-selection.

Flags: Read / Write

Default value: FALSE

Since: 1.0.0


The “x” property

  “x”                        guint

Note offset x.

Flags: Read / Write

Default value: 0

Since: 1.0.0


The “y” property

  “y”                        guint

Note offset y.

Flags: Read / Write

Default value: 0

Since: 1.0.0