TachyonUI 0.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
gui_table_helpers.h File Reference
#include <gui_core/gui_base_types.h>
#include <span>

Go to the source code of this file.

Classes

struct  tachyon::TableHelpers::VirtualRowRange
 Half-open [firstVisible, lastVisible) range of rows to emit. More...

Namespaces

namespace  tachyon
namespace  tachyon::TableHelpers

Functions

VirtualRowRange tachyon::TableHelpers::ComputeVirtualRowRange (int32_t scrollY, int32_t viewportH, int32_t rowHeight, int totalRowCount, int bufferRows)
 The rows a virtualized list of totalRowCount fixed-height rows emits, plus bufferRows of over-draw on each side; all lengths in pixels.
int tachyon::TableHelpers::ComputeColumnInsertionIndex (int32_t mouseX, int fromCol, std::span< const IntRect > headerRects)
 Drop column for a column drag: the dragged column passes a neighbour once the mouse crosses that neighbour's far edge.