FuncDoodle
Loading...
Searching...
No Matches
FuncDoodle::UIManager Class Reference

Renders main FuncDoodle UI. More...

#include <UIManager.h>

Public Member Functions

 UIManager ()
void Render ()
 Renders the top-level UI for the current frame.
void Options ()
 Renders the main options/preferences UI.
PopupRegistryGetPopups ()
 Returns the popup state registry owned by the UI manager.

Private Member Functions

void SaveChanges ()
void MainMenuBar ()
void Keybinds ()
void CheckKeybinds ()
void NewProj ()
void EditProj ()
void ExportProj ()
void EditPrefs ()
void Rotate ()

Private Attributes

const char * m_WaitingForKey = nullptr
std::array< float, 3 > m_CacheBGCol = {1.0f, 1.0f, 1.0f}
PopupRegistry m_Popups
int m_Deg = 90

Detailed Description

Renders main FuncDoodle UI.

Renders main menu bar, most popups and owns the PopupRegistry

Invariant
m_CacheBGCol values are in [0.0f, 1.0f]
See also
PopupRegistry

Constructor & Destructor Documentation

◆ UIManager()

FuncDoodle::UIManager::UIManager ( )

Member Function Documentation

◆ CheckKeybinds()

void FuncDoodle::UIManager::CheckKeybinds ( )
private

◆ EditPrefs()

void FuncDoodle::UIManager::EditPrefs ( )
private

◆ EditProj()

void FuncDoodle::UIManager::EditProj ( )
private

◆ ExportProj()

void FuncDoodle::UIManager::ExportProj ( )
private

◆ GetPopups()

PopupRegistry & FuncDoodle::UIManager::GetPopups ( )
inline

Returns the popup state registry owned by the UI manager.

◆ Keybinds()

void FuncDoodle::UIManager::Keybinds ( )
private

◆ MainMenuBar()

void FuncDoodle::UIManager::MainMenuBar ( )
private

◆ NewProj()

void FuncDoodle::UIManager::NewProj ( )
private

◆ Options()

void FuncDoodle::UIManager::Options ( )

Renders the main options/preferences UI.

◆ Render()

void FuncDoodle::UIManager::Render ( )

Renders the top-level UI for the current frame.

◆ Rotate()

void FuncDoodle::UIManager::Rotate ( )
private

◆ SaveChanges()

void FuncDoodle::UIManager::SaveChanges ( )
private

Member Data Documentation

◆ m_CacheBGCol

std::array<float, 3> FuncDoodle::UIManager::m_CacheBGCol = {1.0f, 1.0f, 1.0f}
private

◆ m_Deg

int FuncDoodle::UIManager::m_Deg = 90
private

◆ m_Popups

PopupRegistry FuncDoodle::UIManager::m_Popups
private

◆ m_WaitingForKey

const char* FuncDoodle::UIManager::m_WaitingForKey = nullptr
private

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