TachyonUI
0.1.0
High-performance UI for building tools.
Toggle main menu visibility
Loading...
Searching...
No Matches
gui_table_helpers.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
gui_core/gui_base_types.h
>
4
5
#include <span>
6
7
namespace
tachyon
8
{
9
struct
LayoutStyle
;
10
struct
VisualTextStyle
;
11
}
12
13
namespace
tachyon::TableHelpers
14
{
17
19
struct
VirtualRowRange
20
{
21
int
firstVisible
= 0;
22
int
lastVisible
= 0;
23
};
24
29
VirtualRowRange
ComputeVirtualRowRange
(int32_t scrollY,
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
}
tachyon::TableHelpers::ComputeColumnInsertionIndex
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...
tachyon::TableHelpers::ComputeVirtualRowRange
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...
gui_base_types.h
tachyon::TableHelpers
Definition
gui_table_helpers.h:14
tachyon
Definition
gui_logging.h:24
tachyon::LayoutStyle
The layout part of a registered Style, in pixels; shared by every style with the same values.
Definition
gui_style.h:755
tachyon::TableHelpers::VirtualRowRange
Half-open [firstVisible, lastVisible) range of rows to emit.
Definition
gui_table_helpers.h:20
tachyon::TableHelpers::VirtualRowRange::firstVisible
int firstVisible
Definition
gui_table_helpers.h:21
tachyon::TableHelpers::VirtualRowRange::lastVisible
int lastVisible
Definition
gui_table_helpers.h:22
tachyon::VisualTextStyle
The text part of one state of a registered Style, in pixels.
Definition
gui_style.h:983
gui_controls
gui_table_helpers.h
Generated by
1.18.0