AUI Framework  master
Cross-platform module-based framework for developing C++20 desktop applications
AStubWindowManager Class Reference

Window manager used to stub the default window manager. More...

Detailed Description

Window manager used to stub the default window manager.

Useful for command-line only use-cases where the actual windows are not viable (i.e. tests). Rendering is switched to software when.

window = _new<AWindow>("");
window->show();
...
auto screenshot = AStubWindowManager::makeScreenshot(window);

Public Member Functions

void initNativeWindow (const IRenderingContext::Init &init) override
 
- Public Member Functions inherited from AWindowManager
AWatchdogwatchdog () noexcept
 
void removeAllWindows ()
 
void closeAllWindows ()
 
void notifyProcessMessages () override
 Notifies this IEventLoop that its thread got a new message to process. More...
 
void loop () override
 Do message processing loop. More...
 
const ADeque< _< AWindow > > & getWindows () const
 
void start ()
 
void stop ()
 
template<typename T >
ADeque< _< T > > getWindowsOfType () const
 

Static Public Member Functions

static AImage makeScreenshot (aui::no_escape< AWindow > window)
 
static void drawFrame ()
 

Additional Inherited Members

- Protected Attributes inherited from AWindowManager
IEventLoop::Handle mHandle
 
ADeque< _< AWindow > > mWindows
 
bool mLoopRunning = false
 

Member Function Documentation

◆ initNativeWindow()

void AStubWindowManager::initNativeWindow ( const IRenderingContext::Init init)
overridevirtual

Reimplemented from AWindowManager.

#include <AUI/Util/AStubWindowManager.h>


The documentation for this class was generated from the following files:
Inheritance diagram for AStubWindowManager:
Collaboration diagram for AStubWindowManager: