HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Data Fields
tt::GUISystem_base Class Referenceabstract

#include <TTauri/GUI/GUISystem_base.hpp>

Inheritance diagram for tt::GUISystem_base:
tt::GUISystem_vulkan tt::GUISystem_vulkan_macos tt::GUISystem_vulkan_win32

Public Member Functions

 GUISystem_base (GUISystemDelegate *delegate) noexcept
 
 GUISystem_base (const GUISystem_base &)=delete
 
GUISystem_baseoperator= (const GUISystem_base &)=delete
 
 GUISystem_base (GUISystem_base &&)=delete
 
GUISystem_baseoperator= (GUISystem_base &&)=delete
 
virtual void initialize () noexcept(false)=0
 
template<typename T , typename... Args>
T * makeWindow (Args &&... args)
 
ssize_t getNumberOfWindows ()
 
void render (hires_utc_clock::time_point displayTimePoint)
 
void handleVerticalSync (hires_utc_clock::time_point displayTimePoint)
 

Static Public Member Functions

static void _handleVerticalSync (void *data, hires_utc_clock::time_point displayTimePoint)
 

Data Fields

GUISystemDelegatedelegate
 
std::unique_ptr< VerticalSyncverticalSync
 
std::vector< std::unique_ptr< GUIDevice > > devices
 List of all devices.
 
ssize_t previousNumberOfWindows = 0
 

Detailed Description

Vulkan GUIDevice controller.

Manages Vulkan device and a set of Windows.

Member Function Documentation

◆ getNumberOfWindows()

ssize_t tt::GUISystem_base::getNumberOfWindows ( )

Count the number of windows managed by the GUI.

Field Documentation

◆ devices

std::vector<std::unique_ptr<GUIDevice> > tt::GUISystem_base::devices

List of all devices.

◆ previousNumberOfWindows

ssize_t tt::GUISystem_base::previousNumberOfWindows = 0

Keep track of the numberOfWindows in the previous render cycle. This way we can call closedLastWindow on the application once.


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