Add saucer4lua integration, window management features

Integrates the saucer4lua library for enhanced Lua support and adds new window management functionalities, including window centering and resizing capabilities. Updates related files, such as CMakeLists, headers, and submodules, to support the new library and features effectively.
This commit is contained in:
2025-01-17 09:59:13 +01:00
parent f49d8874c1
commit c93758f732
5 changed files with 63 additions and 1 deletions

View File

@@ -49,6 +49,8 @@ private:
std::string jsonString;
int size_x,size_y;
#ifdef _WIN32
std::filesystem::path userPath = std::getenv("USERPROFILE"); // Windows
#else
@@ -60,6 +62,7 @@ private:
bool serveHtmlFile(const std::string &htmlPath, bool setDecorations);
void configureWindow();
void moveWindowTo(int x, int y);
void loadResources();
void runLuaScript();
@@ -80,6 +83,9 @@ private:
void SetJsonItems();
void openEinst();
void centerWindow();
void resizeWindow(int width, int height);
void resizeWindow(double widthPercent, double heightPercent);
void openIndex();
void getNewContent();