enum EE::UI::UIApplication::QuitPolicy

Overview

Controls when UIApplication stops its main loop. More…

#include <uiapplication.hpp>

enum QuitPolicy: Uint8 {
    OnLastWindowClosed,
    OnPrimaryWindowClosed,
    Explicit,
};

Detailed Documentation

Controls when UIApplication stops its main loop.

See also:

setQuitPolicy()

Enum Values

OnLastWindowClosed

Stops after the last application-owned window closes.

OnPrimaryWindowClosed

Stops when the primary window closes and closes all secondary windows.

Explicit

Window closure never stops the loop; requestQuit() must be called explicitly.