TachyonUI 0.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
gui_table_helpers.h
Go to the documentation of this file.
1#pragma once
2
4
5#include <span>
6
7namespace tachyon
8{
9 struct LayoutStyle;
10 struct VisualTextStyle;
11}
12
14{
17
20 {
21 int firstVisible = 0;
22 int lastVisible = 0;
23 };
24
30 int32_t viewportH,
31 int32_t rowHeight,
32 int totalRowCount,
33 int bufferRows);
34
37 int ComputeColumnInsertionIndex(int32_t mouseX,
38 int fromCol,
39 std::span<const IntRect> headerRects);
40
42}
int 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 neig...
VirtualRowRange 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...
Definition gui_table_helpers.h:14
Definition gui_logging.h:24
The layout part of a registered Style, in pixels; shared by every style with the same values.
Definition gui_style.h:755
Half-open [firstVisible, lastVisible) range of rows to emit.
Definition gui_table_helpers.h:20
int firstVisible
Definition gui_table_helpers.h:21
int lastVisible
Definition gui_table_helpers.h:22
The text part of one state of a registered Style, in pixels.
Definition gui_style.h:983