HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
crt_utils_intf.hpp
1// Copyright Take Vos 2021-2022.
2// Distributed under the Boost Software License, Version 1.0.
3// (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
4
8#pragma once
9
10#include "../utility/utility.hpp"
11#include "../macros.hpp"
12#include <tuple>
13
14hi_export_module(hikogui.crt.crt_utils : intf);
15
16hi_export namespace hi::inline v1 {
17
24inline os_handle crt_application_instance;
25
37std::pair<int, char **> crt_start(int argc, char **argv, void *instance, int show_cmd);
38
48inline std::pair<int, char **> crt_start(void *instance, int show_cmd)
49{
50 return crt_start(0, nullptr, instance, show_cmd);
51}
52
62inline std::pair<int, char **> crt_start(int argc, char **argv)
63{
64 return crt_start(argc, argv, nullptr, 0);
65}
66
76int crt_finish(int argc, char **argv, int exit_code);
77
78} // namespace hi::inline v1
DOXYGEN BUG.
Definition algorithm_misc.hpp:20
int crt_finish(int argc, char **argv, int exit_code)
Finish the hikogui system.
os_handle crt_application_instance
The application instance identified by the operating system.
Definition crt_utils_intf.hpp:24
std::pair< int, char ** > crt_start(int argc, char **argv, void *instance, int show_cmd)
Start the hikogui system.