Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
zrythm::utils::ExpandableTickRange Class Reference

Public Member Functions

 ExpandableTickRange (std::optional< std::pair< double, double > > range=std::nullopt)
bool is_full_content () const
 Returns whether the range is the full content (ie, there is no range).
void expand (std::pair< double, double > range_to_add)
 Expands to the given range.
void expand_to_full ()
void expand (const ExpandableTickRange &range_to_add)
auto range () const -> std::optional< std::pair< double, double > >
 Returns the range, or nullopt if the full content is covered.

Detailed Description

Definition at line 13 of file expandable_tick_range.h.

Constructor & Destructor Documentation

◆ ExpandableTickRange()

zrythm::utils::ExpandableTickRange::ExpandableTickRange ( std::optional< std::pair< double, double > > range = std::nullopt)
inline

Definition at line 16 of file expandable_tick_range.h.

Member Function Documentation

◆ expand() [1/2]

void zrythm::utils::ExpandableTickRange::expand ( const ExpandableTickRange & range_to_add)
inline

Definition at line 55 of file expandable_tick_range.h.

◆ expand() [2/2]

void zrythm::utils::ExpandableTickRange::expand ( std::pair< double, double > range_to_add)
inline

Expands to the given range.

Definition at line 37 of file expandable_tick_range.h.

◆ expand_to_full()

void zrythm::utils::ExpandableTickRange::expand_to_full ( )
inline

Definition at line 48 of file expandable_tick_range.h.

◆ is_full_content()

bool zrythm::utils::ExpandableTickRange::is_full_content ( ) const
inline

Returns whether the range is the full content (ie, there is no range).

Definition at line 32 of file expandable_tick_range.h.

◆ range()

auto zrythm::utils::ExpandableTickRange::range ( ) const->std::optional< std::pair< double, double > >
inline

Returns the range, or nullopt if the full content is covered.

Definition at line 70 of file expandable_tick_range.h.


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