34 struct ScrollOffsetEntry
38 uint32_t lastSeenFrame = 0;
42 uint32_t m_frameIndex = 0;
44 std::vector<ScrollOffsetEntry> m_scrollOffsets;
45 std::vector<ScrollOffsetHandle> m_scrollOffsetFreeList;
63 for (ScrollOffsetEntry& entry : m_scrollOffsets)
64 if (entry.inUse && use(entry.id, entry.offset))
65 entry.lastSeenFrame = m_frameIndex;
The frame's element tree.
Definition gui_element_storage.h:96
Makes element IDs: per-frame dynamic / ranged IDs (hashed from the call site or a hint and the parent...
Definition gui_id_manager.h:31
A hash map from ID to a small value, for indexes rebuilt or pruned every frame: open addressing in on...
Definition gui_id_map.h:23
ScrollOffsetHandle
A handle to a stored scroll offset.
Definition gui_element_storage.h:31
ScrollAxis
Axis mask for scroll-into-view, so e.g. a horizontal sizer doesn't scroll vertically.
Definition gui_scroll_management.h:22
@ None
Definition gui_element_flags.h:18
@ X
Definition gui_scroll_management.h:24
@ Both
Definition gui_scroll_management.h:26
@ Y
Definition gui_scroll_management.h:25
#define TACHYON_ENUM_OPERATORS(EnumType)
Definition gui_enum_operators.h:8
Definition gui_logging.h:24
An element's slot in ElementStorage: its depth and index within that depth.
Definition gui_element.h:126
A 64-bit element ID whose bit layout depends on its IDMode.
Definition gui_id.h:23
static constexpr ID Invalid()
The "no element" ID (all bits zero); also the default for optional ID parameters.
Definition gui_id.h:66
Definition gui_base_types.h:406
Integer 2D vector.
Definition gui_base_types.h:18