Pioneer
Loading...
Searching...
No Matches
LuaPiGuiInternal.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 _LUAPIGUI_H
5#define _LUAPIGUI_H
6
7#include "LuaObject.h"
8#include "LuaPushPull.h"
9#include "LuaTable.h"
10
11#include "vector2.h"
12#include "vector3.h"
13
14class Body;
15struct ImGuiStyle;
16struct ImVec2;
17struct ImColor;
18
19void pi_lua_generic_push(lua_State *l, const ImVec2 &vec);
20void pi_lua_generic_pull(lua_State *l, int index, ImVec2 &vec);
21void pi_lua_generic_pull(lua_State *l, int index, ImColor &color);
22
23namespace PiGui {
25
26 struct TScreenSpace {
27 TScreenSpace(const bool onScreen, const vector2d &screenPos, const vector3d &direction) :
28 _onScreen(onScreen), _screenPosition(screenPos), _direction(direction) {}
33 };
34
35 typedef std::vector<TScreenSpace> TSS_vector;
36
37 int pushOnScreenPositionDirection(lua_State *l, vector3d position);
38
39 void load_theme_from_table(LuaTable &table, ImGuiStyle &style);
40} // namespace PiGui
41
42#endif
void pi_lua_generic_push(lua_State *l, const ImVec2 &vec)
Definition LuaPiGui.cpp:130
void pi_lua_generic_pull(lua_State *l, int index, ImVec2 &vec)
Definition LuaPiGui.cpp:124
Definition Body.h:57
Definition LuaTable.h:99
Definition LuaBody.cpp:29
void load_theme_from_table(LuaTable &table, ImGuiStyle &style)
Definition LuaPiGui.cpp:3128
int pushOnScreenPositionDirection(lua_State *l, vector3d position)
Definition LuaPiGui.cpp:135
std::vector< TScreenSpace > TSS_vector
Definition LuaPiGuiInternal.h:35
bool first_body_is_more_important_than(Body *, Body *)
Definition LuaPiGui.cpp:1963
Definition LuaPiGuiInternal.h:26
vector2d _screenPosition
Definition LuaPiGuiInternal.h:30
TScreenSpace(const bool onScreen, const vector2d &screenPos, const vector3d &direction)
Definition LuaPiGuiInternal.h:27
bool _onScreen
Definition LuaPiGuiInternal.h:29
vector3d _direction
Definition LuaPiGuiInternal.h:31
Body * _body
Definition LuaPiGuiInternal.h:32