MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
System.hpp
Go to the documentation of this file.
1#pragma once
2
3namespace MayaFlux::Core {
4class SystemBackend;
5}
6
8
9/**
10 * @brief Access the active platform backend.
11 *
12 * Returns nullptr if Portal::System has not been initialized.
13 * Intended for use by Portal::System sub-modules only.
14 */
15MAYAFLUX_API Core::SystemBackend* get_backend();
16
17/**
18 * @brief Initialize Portal::System.
19 *
20 * Must be called before any Portal::System free functions are used.
21 * No subsystem dependency is required; call at any point after engine
22 * construction and before the first dialog or OS interaction.
23 *
24 * Initializes, in order:
25 * - Portal::System::Dialog (file chooser, save, folder picker)
26 *
27 * @return True if initialization succeeded.
28 */
29MAYAFLUX_API bool initialize();
30
31/**
32 * @brief Stop active Portal::System operations.
33 *
34 * Cancels any in-progress dialog if the platform backend supports it.
35 * Call before shutdown().
36 */
37MAYAFLUX_API void stop();
38
39/**
40 * @brief Shutdown Portal::System and release all resources.
41 *
42 * Must be called after stop().
43 */
44MAYAFLUX_API void shutdown();
45
46/**
47 * @brief Return true if Portal::System has been initialized.
48 */
49MAYAFLUX_API bool is_initialized();
50
51} // namespace MayaFlux::Portal::System
bool initialize()
Initialize Portal::System.
Definition System.cpp:27
bool is_initialized()
Return true if Portal::System has been initialized.
Definition System.cpp:85
void shutdown()
Shutdown Portal::System and release all resources.
Definition System.cpp:69
Core::SystemBackend * get_backend()
Access the active platform backend.
Definition System.cpp:22
void stop()
Stop active Portal::System operations.
Definition System.cpp:59