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

A group of linked regions. More...

#include <src/gui/dsp/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.
 
bool validate () const
 

Data Fields

int group_idx_
 Group index.
 
std::vector< ArrangerObject::Uuid > ids_
 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 20 of file region_link_group.h.

Constructor & Destructor Documentation

◆ RegionLinkGroup()

RegionLinkGroup::RegionLinkGroup ( int idx)
inline

Definition at line 23 of file region_link_group.h.

Member Function Documentation

◆ remove_region()

void 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 RegionLinkGroup::update ( const Region & region)

Updates all other regions in the link group.

Parameters
regionThe region where the change happened.

Friends And Related Symbol Documentation

◆ from_json

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

Definition at line 54 of file region_link_group.h.

◆ to_json

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

Definition at line 50 of file region_link_group.h.

Field Documentation

◆ group_idx_

int RegionLinkGroup::group_idx_

Group index.

Definition at line 61 of file region_link_group.h.

◆ ids_

std::vector<ArrangerObject::Uuid> RegionLinkGroup::ids_

Identifiers for regions in this link group.

Definition at line 64 of file region_link_group.h.


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