gui/backend/arranger_selections.h file

Common data structures and functions for *ArrangerSelections.

Contents

Defines

#define ARRANGER_SELECTIONS_DECLARE_INIT_LOADED(cc, sc)
Inits the selections after loading a project.
#define ARRANGER_SELECTIONS_DECLARE_CLONE(cc, sc)
Clone the struct for copying, undoing, etc.
#define ARRANGER_SELECTIONS_DECLARE_HAS_ANY(cc, sc)
Returns if there are any selections.
#define ARRANGER_SELECTIONS_DECLARE_GET_START_POS_W_GLOBAL(cc, sc)
Returns the position of the leftmost object.
#define ARRANGER_SELECTIONS_DECLARE_GET_START_POS(cc, sc)
Returns the position of the leftmost object.
#define ARRANGER_SELECTIONS_DECLARE_GET_END_POS_W_GLOBAL(cc, sc)
Returns the position of the rightmost object.
#define ARRANGER_SELECTIONS_DECLARE_GET_END_POS(cc, sc)
Returns the position of the rightmost object.
#define ARRANGER_SELECTIONS_DECLARE_GET_FIRST_OBJ(cc, sc)
Gets first object's widget.
#define ARRANGER_SELECTIONS_DECLARE_GET_LAST_OBJ(cc, sc)
Gets last object's widget.
#define ARRANGER_SELECTIONS_DECLARE_PASTE_TO_POS(cc, sc)
Pastes the given selections to the given Position.
#define ARRANGER_SELECTIONS_DECLARE_SET_CACHE_POSES(cc, sc)
Sets the cache Position's for each object in the selection.
#define ARRANGER_SELECTIONS_DECLARE_ADD_TICKS(cc, sc)
Moves the selections by the given amount of ticks.
#define ARRANGER_SELECTIONS_DECLARE_CLEAR(cc, sc)
Clears selections.
#define ARRANGER_SELECTIONS_DECLARE_FREE(cc, sc)
Frees the selections.
#define ARRANGER_SELECTIONS_DECLARE_FREE_FULL(cc, sc)
Frees all the objects as well.
#define ARRANGER_SELECTIONS_DECLARE_FUNCS(cc, sc)
Declares all of the above functions.
#define ARRANGER_SELECTIONS_DECLARE_ADD_OBJ(cc, sc, obj_cc, obj_sc)
Adds the arranger object to the selections.
#define ARRANGER_SELECTIONS_DECLARE_CONTAINS_OBJ(cc, sc, obj_cc, obj_sc)
Returns if the arranger object is in the selections or not.
#define ARRANGER_SELECTIONS_DECLARE_REMOVE_OBJ(cc, sc, obj_cc, obj_sc)
Removes the arranger object from the selections.
#define ARRANGER_SELECTIONS_DECLARE_OBJ_FUNCS(cc, sc, obj_cc, obj_sc)
Declares the above arranger object-related functions.

Define documentation

#define ARRANGER_SELECTIONS_DECLARE_SET_CACHE_POSES(cc, sc)

Sets the cache Position's for each object in the selection.

Used by the ArrangerWidget's.

#define ARRANGER_SELECTIONS_DECLARE_FREE_FULL(cc, sc)

Frees all the objects as well.

To be used in actions where the selections are all clones.

#define ARRANGER_SELECTIONS_DECLARE_CONTAINS_OBJ(cc, sc, obj_cc, obj_sc)

Returns if the arranger object is in the selections or not.

The object must be the main object (see ArrangerObjectInfo).