Skip to content

File include/brisk/window/WindowApplication.hpp


Window class

Window

WindowApplication class

WindowApplication

WindowApplication

run function (WindowApplication::run)

int run()

Runs the application event loop.

Creates PlatformWindow for each added Window instance and makes it visible if not hidden
Param idle Function to call on every cycle
Returns int Exit code if quit called, otherwise 0

int run(Rc<Window> mainWindow)

Sets main window and runs the application event loop
Note (UNKNOWN ID: ('ref', 'WindowApplication::run()'))

quit function (WindowApplication::quit)

void quit(int exitCode = 0)

Quits the application and returns from run
Param exitCode Exit code to return from run

addWindow function (WindowApplication::addWindow)

void addWindow(Rc<Window> window, bool makeVisible = true)

Adds window to the window application
Param window window to add

showModalWindow function (WindowApplication::showModalWindow)

template <std::derived_from<Window> TWindow>
Rc<TWindow> showModalWindow(Rc<TWindow> window)

Adds window to the window application and open it as a modal window
Param window window to be shown

hasWindow function (WindowApplication::hasWindow)

bool hasWindow(const Rc<Window> &window)

Checks if the specific window is registered to the WindowApplication
Param window

isActive function (WindowApplication::isActive)

bool isActive() const

Returns true if the main loop is active

windows function (WindowApplication::windows)

const std::vector<Rc<Window>> &windows() const

Returns the windows list.

hasQuit function (WindowApplication::hasQuit)

bool hasQuit() const

Returns true if quit has called

start function (WindowApplication::start)

void start()

Start the main loop
Details This function is internal. Use only if you know what you do

stop function (WindowApplication::stop)

void stop()

Stops the main loop
Details This function is internal. Use only if you know what you do

cycle function (WindowApplication::cycle)

void cycle(ProcessEventsMode mode)

Run one cycle of the main loop
Param mode Mode of processing events
Details This function is internal. Use only if you know what you do


Auto-generated from sources, Revision , https://github.com/brisklib/brisk/blob//include/brisk/