|
TachyonUI 0.1.0
High-performance UI for building tools.
|
Context for post-layout callbacks (AddPostLayout). More...
#include <gui_core/graphics/gui_custom_draw_context.h>
Public Member Functions | |
| PostLayoutContext (ElementStorage &storage, ElementRef ref, IntRect elementRectLayout, IntRect innerRectLayout, float3x2 contentTransform) noexcept | |
| Built by the layout pass; callbacks receive it. | |
| ElementRef | Ref () const noexcept |
| The registered element, its border-box and padding-box, and its contentTransform. | |
| IntRect | ElementRect () const noexcept |
| IntRect | ElementInnerRect () const noexcept |
| float3x2 | ContentTransform () const noexcept |
| IntRect | GetElementRect (const ElementRef &ref) const noexcept |
| Lookups for other elements, as on CustomDrawContext but with rects in layout space. | |
| IntRect | GetInnerRect (const ElementRef &ref) const noexcept |
| ElementRef | GetParentRef (const ElementRef &ref) const noexcept |
| ElementRef | GetNextSiblingRef (const ElementRef &ref) const noexcept |
| int2 | GetContentSize (const ElementRef &ref) const noexcept |
| int2 | GetInnerSize (const ElementRef &ref) const noexcept |
Context for post-layout callbacks (AddPostLayout).
Fires once per registered element AFTER layout completes and BEFORE rendering starts. Read-only - no drawing primitives.
Use this for state updates that depend on final geometry. For example:
All rects returned are in LAYOUT space (pre-transform, window-local). The element's contentTransform is exposed verbatim for callers that need to map points themselves.
|
inlinenoexcept |
Built by the layout pass; callbacks receive it.
|
inlinenoexcept |
The registered element, its border-box and padding-box, and its contentTransform.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
Lookups for other elements, as on CustomDrawContext but with rects in layout space.
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |