AUI Framework  develop
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
AStubWindowManager Class Reference

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

#include <AUI/Util/AStubWindowManager.h>

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.
 
void loop () override
 Do message processing loop.
 
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 Member Functions inherited from AWindowManager
void xProcessEvent (XEvent &ev)
 
void xClipboardCopyImpl (const AString &text)
 
AString xClipboardPasteImpl ()
 
- Protected Attributes inherited from AWindowManager
IEventLoop::Handle mHandle
 
ADeque< _< AWindow > > mWindows
 
bool mLoopRunning = false
 
Pipe mNotifyPipe
 
std::atomic_bool mFastPathNotify = false
 
std::string mXClipboardText
 

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

Member Function Documentation

◆ initNativeWindow()

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

Reimplemented from AWindowManager.


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