2024-02-25 15:46:47 +01:00
|
|
|
#pragma once
|
2023-06-20 14:33:09 +10:00
|
|
|
|
|
|
|
#include "StarLua.hpp"
|
|
|
|
#include "StarGuiReader.hpp"
|
|
|
|
|
|
|
|
namespace Star {
|
|
|
|
|
|
|
|
STAR_CLASS(Widget);
|
2023-07-04 19:27:16 +10:00
|
|
|
STAR_CLASS(CanvasWidget);
|
|
|
|
|
|
|
|
template <>
|
|
|
|
struct LuaConverter<CanvasWidgetPtr> : LuaUserDataConverter<CanvasWidgetPtr> {};
|
|
|
|
|
|
|
|
template <>
|
|
|
|
struct LuaUserDataMethods<CanvasWidgetPtr> {
|
|
|
|
static LuaMethods<CanvasWidgetPtr> make();
|
|
|
|
};
|
2023-06-20 14:33:09 +10:00
|
|
|
|
|
|
|
namespace LuaBindings {
|
2023-07-04 22:36:27 +10:00
|
|
|
LuaCallbacks makeWidgetCallbacks(Widget* parentWidget, GuiReaderPtr reader = {});
|
2023-06-20 14:33:09 +10:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|