#include "window/Window.h" #include #include "window/sdl/Window.h" namespace eve { namespace window { Module_IMPL(Window, new sdl::Window()); void Window::expose(ssq::Table& table) { auto cls = table.addClass(name, Window::create, false); expose(cls); auto settings = table.addClass("WindowSettings", ssq::Class::Ctor()); settings.addVar("width", &WindowSettings::width); settings.addVar("height", &WindowSettings::height); settings.addVar("centered", &WindowSettings::centered); } void Window::expose(ssq::Class& cls) { cls.addFunc("getName", &Window::getName); cls.addFunc("setSize", &Window::setSize); cls.addFunc("getWidth", &Window::getWidth); cls.addFunc("getHeight", &Window::getHeight); cls.addFunc("setWindowSettings", &Window::setWindowSettings); cls.addFunc("getWindowSettings", &Window::getWindowSettings); cls.addFunc("close", &Window::close); } } // namespace window } // namespace eve