osb/source/windowing/StarWidgetLuaBindings.hpp

27 lines
514 B
C++
Raw Normal View History

2023-06-20 04:33:09 +00:00
#ifndef STAR_WIDGET_LUA_BINDINGS_HPP
#define STAR_WIDGET_LUA_BINDINGS_HPP
#include "StarLua.hpp"
#include "StarGuiReader.hpp"
namespace Star {
STAR_CLASS(Widget);
STAR_CLASS(CanvasWidget);
template <>
struct LuaConverter<CanvasWidgetPtr> : LuaUserDataConverter<CanvasWidgetPtr> {};
template <>
struct LuaUserDataMethods<CanvasWidgetPtr> {
static LuaMethods<CanvasWidgetPtr> make();
};
2023-06-20 04:33:09 +00:00
namespace LuaBindings {
2023-07-04 12:36:27 +00:00
LuaCallbacks makeWidgetCallbacks(Widget* parentWidget, GuiReaderPtr reader = {});
2023-06-20 04:33:09 +00:00
}
}
#endif