HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Member Functions | Data Fields | Friends
tt::cell_address_axis< Arrangement > Struct Template Reference

Public Member Functions

ssize_t begin (ssize_t size) const noexcept
 Find the begin of the cell.
 
ssize_t end (ssize_t size) const noexcept
 Find one beyond the end of the cell.
 
ssize_t aligned_to (ssize_t size) const noexcept
 Find on which cell this aligns to.
 
constexpr bool operator== (cell_address_axis const &rhs) const noexcept
 

Data Fields

bool is_absolute
 
bool is_opposite
 
int8_t alignment
 
int8_t span
 
int16_t index
 

Friends

struct cell_address
 
constexpr cell_address_axis operator* (cell_address_axis const &lhs, cell_address_axis const &rhs) noexcept
 
std::string to_string (cell_address_axis const &rhs) noexcept
 

Member Function Documentation

◆ aligned_to()

template<arrangement Arrangement>
ssize_t tt::cell_address_axis< Arrangement >::aligned_to ( ssize_t size) const
inlinenoexcept

Find on which cell this aligns to.

Parameters
sizeThe total size of the axis.
Returns
The tick number on the axis where the address is aligned to

◆ begin()

template<arrangement Arrangement>
ssize_t tt::cell_address_axis< Arrangement >::begin ( ssize_t size) const
inlinenoexcept

Find the begin of the cell.

Parameters
sizeThe total size of the axis.
Returns
The first tick number belonging to this address

◆ end()

template<arrangement Arrangement>
ssize_t tt::cell_address_axis< Arrangement >::end ( ssize_t size) const
inlinenoexcept

Find one beyond the end of the cell.

Parameters
sizeThe total size of the axis.
Returns
One beyond the last the tick number belonging to this address

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