Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
foldable_track.h File Reference

Common logic for foldable tracks. More...

#include <stdbool.h>
Include dependency graph for foldable_track.h:

Go to the source code of this file.

Enumerations

enum  FoldableTrackMixerStatus { FOLDABLE_TRACK_MIXER_STATUS_MUTED , FOLDABLE_TRACK_MIXER_STATUS_SOLOED , FOLDABLE_TRACK_MIXER_STATUS_IMPLIED_SOLOED , FOLDABLE_TRACK_MIXER_STATUS_LISTENED }
 

Functions

void foldable_track_init (Track *track)
 
bool foldable_track_is_status (Track *self, FoldableTrackMixerStatus status)
 Used to check if soloed/muted/etc.
 
bool foldable_track_is_direct_child (Track *self, Track *child)
 Returns whether child is a folder child of self.
 
bool foldable_track_is_child (Track *self, Track *child)
 Returns whether child is a folder child of self.
 
void foldable_track_add_to_size (Track *self, int delta)
 Adds to the size recursively.
 

Detailed Description

Common logic for foldable tracks.

Definition in file foldable_track.h.

Enumeration Type Documentation

◆ FoldableTrackMixerStatus

enum FoldableTrackMixerStatus

Definition at line 17 of file foldable_track.h.

Function Documentation

◆ foldable_track_add_to_size()

void foldable_track_add_to_size ( Track * self,
int delta )

Adds to the size recursively.

This must only be called from the lowest-level foldable track.