AgsAddRegionToSelection

AgsAddRegionToSelection — add region to notation selection

Synopsis

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

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

Description

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

Details

struct AgsAddRegionToSelection

struct AgsAddRegionToSelection {
  AgsTask task;

  AgsNotation *notation;

  guint x0;
  guint y0;
  guint x1;
  guint y1;

  gboolean replace_current_selection;
};

struct AgsAddRegionToSelectionClass

struct AgsAddRegionToSelectionClass {
  AgsTaskClass task;
};

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.

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