|
TachyonUI 0.1.0
High-performance UI for building tools.
|
callback fires before the children render; the after-list fires after the whole subtree. More...
#include <gui_core/elements/gui_element.h>
Public Attributes | |
| CustomDrawCallback | callback |
| fires before this element's children | |
| uint32_t | afterHead = UINT32_MAX |
| head of the after-draw list | |
| uint32_t | afterTail = UINT32_MAX |
| tail, for O(1) append | |
| IntRect | afterDrawClipRectScreen = {} |
| SCREEN-space scissor. | |
| IntRect | afterDrawElementRectLayout = {} |
| LAYOUT-space border-box. | |
| IntRect | afterDrawInnerRectLayout = {} |
| LAYOUT-space padding-box. | |
| float3x2 | afterDrawRenderTransform = {} |
| inner-rect-local LAYOUT -> SCREEN pixels | |
| float4 | afterDrawPixelRect = {} |
| the element's border box in window pixels | |
| IntRect | afterDrawSnappedRect = {} |
| snapped pixel rect custom-draw boxes snap to | |
| float | afterDrawOpacity = 1.0f |
| how opaque the owner is drawn | |
callback fires before the children render; the after-list fires after the whole subtree.
Both use ancestor_accum * T(inner-rect.pos) * own.contentTransform. The afterDraw* fields snapshot rects/clip/transform when the owner renders, so after-callbacks see the same space.
| CustomDrawCallback tachyon::ElementCustomDraw::callback |
fires before this element's children
| uint32_t tachyon::ElementCustomDraw::afterHead = UINT32_MAX |
head of the after-draw list
| uint32_t tachyon::ElementCustomDraw::afterTail = UINT32_MAX |
tail, for O(1) append
| IntRect tachyon::ElementCustomDraw::afterDrawClipRectScreen = {} |
SCREEN-space scissor.
| IntRect tachyon::ElementCustomDraw::afterDrawElementRectLayout = {} |
LAYOUT-space border-box.
| IntRect tachyon::ElementCustomDraw::afterDrawInnerRectLayout = {} |
LAYOUT-space padding-box.
| float3x2 tachyon::ElementCustomDraw::afterDrawRenderTransform = {} |
inner-rect-local LAYOUT -> SCREEN pixels
| float4 tachyon::ElementCustomDraw::afterDrawPixelRect = {} |
the element's border box in window pixels
| IntRect tachyon::ElementCustomDraw::afterDrawSnappedRect = {} |
snapped pixel rect custom-draw boxes snap to
| float tachyon::ElementCustomDraw::afterDrawOpacity = 1.0f |
how opaque the owner is drawn