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

#include <gui_core/graphics/gui_render_primitives.h>

Public Attributes

glsl_float4 transform0 = { 1, 0, 0 }
glsl_float4 transform1 = { 0, 1, 0 }
tachyon::int2 clipMin = { 0,0 }
tachyon::int2 clipMax = { 0,0 }
tachyon::int2 pos = { 0,0 }
tachyon::int2 size = { 0,0 }
tachyon::ImageIndex textureIndex = tachyon::ImageIndex::Invalid
uint32_t styleIndex = 0
 "from" state GPU style index
int16_t colorIndex = 0
 color style overriding the background (gradients too); 0: none
int16_t _pad3 = 0
uint32_t styleIndexTo = 0
 "to" state GPU style index
float blendT = 1.0f
 0 = fully "from", 1 = fully "to"
uint32_t _pad0 = 0
int16_t snappedPx [4] = { 0, 0, 0, 0 }
 The box in window pixels, snapped relative to its parent (SnapToParent); { x0, y0, x1, y1 }, all zero = snap absolutely.

Member Data Documentation

◆ transform0

glsl_float4 tachyon::Box::transform0 = { 1, 0, 0 }

◆ transform1

glsl_float4 tachyon::Box::transform1 = { 0, 1, 0 }

◆ clipMin

tachyon::int2 tachyon::Box::clipMin = { 0,0 }

◆ clipMax

tachyon::int2 tachyon::Box::clipMax = { 0,0 }

◆ pos

tachyon::int2 tachyon::Box::pos = { 0,0 }

◆ size

tachyon::int2 tachyon::Box::size = { 0,0 }

◆ textureIndex

tachyon::ImageIndex tachyon::Box::textureIndex = tachyon::ImageIndex::Invalid

◆ styleIndex

uint32_t tachyon::Box::styleIndex = 0

"from" state GPU style index

◆ colorIndex

int16_t tachyon::Box::colorIndex = 0

color style overriding the background (gradients too); 0: none

◆ _pad3

int16_t tachyon::Box::_pad3 = 0

◆ styleIndexTo

uint32_t tachyon::Box::styleIndexTo = 0

"to" state GPU style index

◆ blendT

float tachyon::Box::blendT = 1.0f

0 = fully "from", 1 = fully "to"

◆ _pad0

uint32_t tachyon::Box::_pad0 = 0

◆ snappedPx

int16_t tachyon::Box::snappedPx[4] = { 0, 0, 0, 0 }

The box in window pixels, snapped relative to its parent (SnapToParent); { x0, y0, x1, y1 }, all zero = snap absolutely.


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