TachyonUI 1.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::MenuRectsSubsystem Class Reference

Last frame's screen rects of menu triggers and popups, written by AddPostLayout callbacks. More...

#include <gui_controls/subsystems/gui_subsystem_state.h>

Public Member Functions

const tachyon::IntRect * FindTriggerRect (tachyon::ID id) const
 Last frame's rect of menu trigger id; nullptr if absent.
const tachyon::IntRect * FindWindowRect (tachyon::ID id) const
 Last frame's rect of menu popup window id; nullptr if absent.
RecentIDMap< tachyon::IntRect > & TriggerRects ()
 For the AddPostLayout lambdas to write into.
RecentIDMap< tachyon::IntRect > & WindowRects ()
void EndFrame ()
 Once per frame: the rects of menus no longer built go after a while.
size_t Size () const

Detailed Description

Last frame's screen rects of menu triggers and popups, written by AddPostLayout callbacks.

BeginMenu sizes the popup from them (trigger width when it opens above/below, content width when flipped to the side).

Member Function Documentation

◆ FindTriggerRect()

const tachyon::IntRect * tachyon::MenuRectsSubsystem::FindTriggerRect ( tachyon::ID id) const
inline

Last frame's rect of menu trigger id; nullptr if absent.

◆ FindWindowRect()

const tachyon::IntRect * tachyon::MenuRectsSubsystem::FindWindowRect ( tachyon::ID id) const
inline

Last frame's rect of menu popup window id; nullptr if absent.

◆ TriggerRects()

RecentIDMap< tachyon::IntRect > & tachyon::MenuRectsSubsystem::TriggerRects ( )
inline

For the AddPostLayout lambdas to write into.

◆ WindowRects()

RecentIDMap< tachyon::IntRect > & tachyon::MenuRectsSubsystem::WindowRects ( )
inline

◆ EndFrame()

void tachyon::MenuRectsSubsystem::EndFrame ( )
inline

Once per frame: the rects of menus no longer built go after a while.

◆ Size()

size_t tachyon::MenuRectsSubsystem::Size ( ) const
inline

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