Create WindowProperties
Some checks failed
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 1m33s

This commit is contained in:
2024-12-08 14:14:48 -05:00
parent e0c001b1f1
commit cb5222e476

View File

@@ -57,6 +57,46 @@ namespace ReWindow {
class GLXRenderer : public GLRenderBase {};
class WGLRenderer : public GLRenderBase {};
class WindowProperties {
public:
WindowProperties() = default;
public:
std::string GetTitle();
int GetWidth();
int GetHeight();
RenderEngine GetRenderEngine();
Vector2 GetSize()
Vector2 GetPos();
public:
bool IsFullscreen();
bool IsResizable();
bool IsVsyncEnabled();
public:
void SetRenderEngine(RenderEngine r);
void SetFullscreen(bool b);
void SetResizable(bool b);
void SetVsyncEnabled(bool b);
void SetTitle(const std::string& t);
void SetSize(int width, int height);
void SetSize(const Vector2& size);
void SetPos(int x, int y);
void SetPos(int x, int y);
protected:
int width = 1280;
int height = 720;
protected:
bool resizable = true;
bool fullscreen_mode = false;
bool vsync = false;
protected:
std::string title = "Redacted Window";
protected:
RenderingEngine renderingengine;
};
// This may be better split into multiple component classes.
@@ -174,7 +214,7 @@ namespace ReWindow {
void SetPos(int x, int y);
/// Requests the operating system to move the window to the specified coordinates on the display.
/// @param pos A Vector2 representing the x,y coordinates of the desired window destination. Fractional values are ignored.
void SetPos(const Vector2& pos);
void SetPos(int x, int y);
void SetCursorCustomIcon() const;
void SetCursorLocked();
void SetCursorCenter();