Pioneer
Loading...
Searching...
No Matches
LuaPiGui.h
Go to the documentation of this file.
1// Copyright © 2008-2023 Pioneer Developers. See AUTHORS.txt for details
2// Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
3
4#ifndef PIGUI_LUA_H
5#define PIGUI_LUA_H
6
7#include "lua/LuaObject.h"
8
9struct ImGuiStyle;
10
11namespace PiGui {
12
13 // Get registered PiGui handlers.
15
16 // Get registered PiGui themes.
18
19 // Get a table of key name to SDL-keycode mappings
21
22 namespace Lua {
23 void RegisterSandbox();
24
25 void Init();
26 void Uninit();
27 } // namespace Lua
28
29 // Run a lua PiGui handler.
30 void RunHandler(double delta, std::string handler = "GAME");
31
32 // Load a pigui theme into the specified ImGui style.
33 void LoadTheme(ImGuiStyle &style, std::string theme);
34
35 // FIXME: TEMPORARY to resolve loading order fiasco
36 // we want themes up as soon as possible (because they're usually flat data objects)
37 // so this function exists to load a theme out-of-order from Lua::InitModules
38 void LoadThemeFromDisk(std::string theme);
39} // namespace PiGui
40
41#endif
Definition LuaRef.h:12
Definition Lua.cpp:41
void Uninit()
Definition LuaPiGui.cpp:67
void RegisterSandbox()
Definition PiGuiSandbox.cpp:140
void Init()
Definition LuaPiGui.cpp:42
Definition LuaBody.cpp:29
LuaRef GetHandlers()
Definition LuaPiGui.cpp:76
void LoadTheme(ImGuiStyle &style, std::string theme)
Definition LuaPiGui.cpp:90
LuaRef GetThemes()
Definition LuaPiGui.cpp:78
LuaRef GetKeys()
Definition LuaPiGui.cpp:77
void LoadThemeFromDisk(std::string theme)
Definition LuaPiGui.cpp:102
void RunHandler(double delta, std::string handler)
Definition LuaPiGui.cpp:80