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

#include <gui_core/elements/gui_element.h>

Public Attributes

IntRect rect {}
 Computed during layout.
IntRect innerRect {}
 Padding box (screen space).
IntRect clipRect {}
 Clip bounds (screen space).
IntRect contentBounds {}
 Bounds of all children (parent-local space).
int2 scrollOffset {}
LayoutOverride constraints
const LayoutStyle * layoutStyle {nullptr}
float3x2 contentTransform
 Applied to children at render/hit-test time; layout ignores it except for scroll clamping.
int16_t monitorIndex = -1
 window elements only: the monitor the window is on
ElementFlags flags = ElementFlags::None
Display display {}
uint16_t wrapLineIndex = 0
 row-wrap line, set by horizontal and read by vertical positioning
int16_t minContentWidth = 0
 Leaf with visibly overflowing text: the margin box width flex shrink stops at (CSS min-content).
int32_t anchorTargetX = 0
 Anchored X: the target's x when X was placed (flipped or clamped to the screen).

Member Data Documentation

◆ scrollOffset

int2 tachyon::ElementRect::scrollOffset {}

◆ constraints

LayoutOverride tachyon::ElementRect::constraints

◆ layoutStyle

const LayoutStyle* tachyon::ElementRect::layoutStyle {nullptr}

◆ contentTransform

float3x2 tachyon::ElementRect::contentTransform

Applied to children at render/hit-test time; layout ignores it except for scroll clamping.

◆ monitorIndex

int16_t tachyon::ElementRect::monitorIndex = -1

window elements only: the monitor the window is on

◆ flags

ElementFlags tachyon::ElementRect::flags = ElementFlags::None

◆ display

Display tachyon::ElementRect::display {}

◆ wrapLineIndex

uint16_t tachyon::ElementRect::wrapLineIndex = 0

row-wrap line, set by horizontal and read by vertical positioning

◆ minContentWidth

int16_t tachyon::ElementRect::minContentWidth = 0

Leaf with visibly overflowing text: the margin box width flex shrink stops at (CSS min-content).

◆ anchorTargetX

int32_t tachyon::ElementRect::anchorTargetX = 0

Anchored X: the target's x when X was placed (flipped or clamped to the screen).

A target that scrolls after that moves it by as much.


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