FuncDoodle
Loading...
Searching...
No Matches
PopupRegistry.h File Reference

Central registry for UI popup state management. More...

#include <functional>
#include <string_view>
#include <unordered_map>
#include "UI/Gui.h"

Go to the source code of this file.

Classes

struct  FuncDoodle::PopupEntry
 Struct to store popup state like animation progress and if its open. More...
class  FuncDoodle::PopupRegistry
 Stores all popups used in FuncDoodle. More...

Namespaces

namespace  FuncDoodle
 The FuncDoodle C++ namespace.

Detailed Description

Central registry for UI popup state management.

This file defines the PopupRegistry class, which manages the open/close state of UI popups within FuncDoodle.

Responsibilities include:

  • Registering popup identifiers
  • Opening and closing individual popups
  • Querying popup visibility state
  • Bulk closing operations (all or all except one)

Popups are stored in a map keyed by string_view identifiers.

Note
Popup state is stored as simple boolean flags.
Warning
string_view keys must reference stable string storage elsewhere.