Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
zrythm::structure::arrangement::RegionLinkGroup Class Referencefinal

A group of linked regions. More...

#include <src/structure/arrangement/region_link_group.h>

Public Member Functions

 RegionLinkGroup (int idx)
void add_region (Region &region)
void remove_region (Region &region, bool autoremove_last_region_and_group, bool update_identifier)
 Remove the region from the link group.
bool contains_region (const Region &region) const
void update (const Region &region)
 Updates all other regions in the link group.

Data Fields

int group_idx_
 Group index.
std::vector< ArrangerObject::Uuidids_
 Identifiers for regions in this link group.

Friends

void to_json (nlohmann::json &j, const RegionLinkGroup &group)
void from_json (const nlohmann::json &j, RegionLinkGroup &group)

Detailed Description

A group of linked regions.

Definition at line 16 of file region_link_group.h.

Constructor & Destructor Documentation

◆ RegionLinkGroup()

zrythm::structure::arrangement::RegionLinkGroup::RegionLinkGroup ( int idx)
inline

Definition at line 19 of file region_link_group.h.

Member Function Documentation

◆ remove_region()

void zrythm::structure::arrangement::RegionLinkGroup::remove_region ( Region & region,
bool autoremove_last_region_and_group,
bool update_identifier )

Remove the region from the link group.

Parameters
autoremove_last_region_and_groupAutomatically remove the last region left in the group, and the group itself when empty.

◆ update()

void zrythm::structure::arrangement::RegionLinkGroup::update ( const Region & region)

Updates all other regions in the link group.

Parameters
regionThe region where the change happened.

◆ from_json

void from_json ( const nlohmann::json & j,
RegionLinkGroup & group )
friend

Definition at line 48 of file region_link_group.h.

◆ to_json

void to_json ( nlohmann::json & j,
const RegionLinkGroup & group )
friend

Definition at line 44 of file region_link_group.h.

Field Documentation

◆ group_idx_

int zrythm::structure::arrangement::RegionLinkGroup::group_idx_

Group index.

Definition at line 55 of file region_link_group.h.

◆ ids_

std::vector<ArrangerObject::Uuid> zrythm::structure::arrangement::RegionLinkGroup::ids_

Identifiers for regions in this link group.

Definition at line 58 of file region_link_group.h.


The documentation for this class was generated from the following file: