TachyonUI 0.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::ColumnDragState Struct Reference

Column-reorder drag in progress; internal, owned by the application. More...

#include <gui_controls/gui_table_types.h>

Public Member Functions

bool IsDragging () const
 The press has moved the drag distance: a column move, not a sort click.

Public Attributes

tachyon::PointerDrag press
 the header's press; a drag once it moves the drag distance
tachyon::ID tableID = tachyon::ID::Invalid()
int fromCol = -1
int toCol = -1
int32_t offsetX = 0
 pointer travel since the press, layout space
std::vector< tachyon::IntRect > headerRects
 Header rects at drag start (layout space), for edge-crossing.
int minTarget = 0
 Inclusive target range, bounded by locked columns.
int maxTarget = 0
tachyon::ID sectionBodyID = tachyon::ID::Invalid()
 Body of the section being dragged in; drags never leave their section.
int32_t startScrollX = 0
 Scroll-X at drag start, to correct the cursor for mid-drag scrolling.

Detailed Description

Column-reorder drag in progress; internal, owned by the application.

Member Function Documentation

◆ IsDragging()

bool tachyon::ColumnDragState::IsDragging ( ) const
inline

The press has moved the drag distance: a column move, not a sort click.

Member Data Documentation

◆ press

tachyon::PointerDrag tachyon::ColumnDragState::press

the header's press; a drag once it moves the drag distance

◆ tableID

tachyon::ID tachyon::ColumnDragState::tableID = tachyon::ID::Invalid()

◆ fromCol

int tachyon::ColumnDragState::fromCol = -1

◆ toCol

int tachyon::ColumnDragState::toCol = -1

◆ offsetX

int32_t tachyon::ColumnDragState::offsetX = 0

pointer travel since the press, layout space

◆ headerRects

std::vector<tachyon::IntRect> tachyon::ColumnDragState::headerRects

Header rects at drag start (layout space), for edge-crossing.

◆ minTarget

int tachyon::ColumnDragState::minTarget = 0

Inclusive target range, bounded by locked columns.

◆ maxTarget

int tachyon::ColumnDragState::maxTarget = 0

◆ sectionBodyID

tachyon::ID tachyon::ColumnDragState::sectionBodyID = tachyon::ID::Invalid()

Body of the section being dragged in; drags never leave their section.

◆ startScrollX

int32_t tachyon::ColumnDragState::startScrollX = 0

Scroll-X at drag start, to correct the cursor for mid-drag scrolling.


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