TachyonUI 0.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.
std::unordered_map< tachyon::ID, tachyon::IntRect > & TriggerRects ()
 For the AddPostLayout lambdas to write into.
std::unordered_map< tachyon::ID, tachyon::IntRect > & WindowRects ()

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()

std::unordered_map< tachyon::ID, tachyon::IntRect > & tachyon::MenuRectsSubsystem::TriggerRects ( )
inline

For the AddPostLayout lambdas to write into.

◆ WindowRects()

std::unordered_map< tachyon::ID, tachyon::IntRect > & tachyon::MenuRectsSubsystem::WindowRects ( )
inline

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