HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Member Functions
tt::flow_layout Class Reference

#include <ttauri/flow_layout.hpp>

Public Member Functions

void clear () noexcept
 
size_t nr_items () const noexcept
 
void update (ssize_t index, float minimum_size, float preferred_size, float maximum_size, float margin) noexcept
 
int total_margin_size () const noexcept
 
float minimum_size () const noexcept
 
float preferred_size () const noexcept
 
float maximum_size () const noexcept
 
void set_size (float total_size) noexcept
 Update the layout of all items based on the total size.
 
std::pair< float, float > get_offset_and_size (size_t index) const noexcept
 
void reserve (ssize_t new_size) noexcept
 Grow layout to include upto new_size of items.
 

Detailed Description

Layout algorithm.

Member Function Documentation

◆ reserve()

void tt::flow_layout::reserve ( ssize_t new_size)
inlinenoexcept

Grow layout to include upto new_size of items.

◆ set_size()

void tt::flow_layout::set_size ( float total_size)
inlinenoexcept

Update the layout of all items based on the total size.


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