AgsAddRegionToSelection

AgsAddRegionToSelection — add region to notation selection

Functions

Properties

AgsNotation * notation Read / Write
gboolean replace-current-selection Read / Write
guint x0 Read / Write
guint x1 Read / Write
guint y0 Read / Write
guint y1 Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── AgsTask
        ╰── AgsAddRegionToSelection

Implemented Interfaces

AgsAddRegionToSelection implements AgsConnectable.

Includes

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

Description

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

Functions

ags_add_region_to_selection_new ()

AgsAddRegionToSelection *
ags_add_region_to_selection_new (AgsNotation *notation,
                                 guint x0,
                                 guint y0,
                                 guint x1,
                                 guint y1,
                                 gboolean replace_current_selection);

Creates an AgsAddRegionToSelection.

Parameters

notation

the AgsNotation providing the selection

 

x0

start x coordinate

 

y0

start y coordinate

 

x1

end x coordinate

 

y1

end y coordinate

 

replace_current_selection

if TRUE new selection is created, otherwise added to current

 

Returns

an new AgsAddRegionToSelection.

Since: 0.4


AGS_ADD_REGION_TO_SELECTION()

#define AGS_ADD_REGION_TO_SELECTION(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_ADD_REGION_TO_SELECTION, AgsAddRegionToSelection))


AGS_ADD_REGION_TO_SELECTION_CLASS()

#define AGS_ADD_REGION_TO_SELECTION_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_ADD_REGION_TO_SELECTION, AgsAddRegionToSelectionClass))


AGS_ADD_REGION_TO_SELECTION_GET_CLASS()

#define AGS_ADD_REGION_TO_SELECTION_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_ADD_REGION_TO_SELECTION, AgsAddRegionToSelectionClass))


AGS_IS_ADD_REGION_TO_SELECTION()

#define AGS_IS_ADD_REGION_TO_SELECTION(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_ADD_REGION_TO_SELECTION))


AGS_IS_ADD_REGION_TO_SELECTION_CLASS()

#define AGS_IS_ADD_REGION_TO_SELECTION_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_ADD_REGION_TO_SELECTION))


ags_add_region_to_selection_get_type ()

GType
ags_add_region_to_selection_get_type ();

Types and Values

AGS_TYPE_ADD_REGION_TO_SELECTION

#define AGS_TYPE_ADD_REGION_TO_SELECTION                (ags_add_region_to_selection_get_type())


struct AgsAddRegionToSelection

struct AgsAddRegionToSelection;


struct AgsAddRegionToSelectionClass

struct AgsAddRegionToSelectionClass {
  AgsTaskClass task;
};

Property Details

The “notation” property

  “notation”                 AgsNotation *

The assigned AgsNotation

Flags: Read / Write

Since: 0.7.117


The “replace-current-selection” property

  “replace-current-selection” gboolean

The notation's replace-current-selection.

Flags: Read / Write

Default value: FALSE

Since: 0.7.117


The “x0” property

  “x0”                       guint

Note offset x0.

Flags: Read / Write

Allowed values: <= 65535

Default value: 0

Since: 0.7.117


The “x1” property

  “x1”                       guint

Note offset x1.

Flags: Read / Write

Allowed values: <= 65535

Default value: 0

Since: 0.7.117


The “y0” property

  “y0”                       guint

Note offset y0.

Flags: Read / Write

Allowed values: <= 65535

Default value: 0

Since: 0.7.117


The “y1” property

  “y1”                       guint

Note offset y1.

Flags: Read / Write

Allowed values: <= 65535

Default value: 0

Since: 0.7.117