Grindstone Game Engine v0.2.0
An open source game engine and toolkit.
Loading...
Searching...
No Matches
X11Window.hpp
1#pragma once
2
3#include "Window.hpp"
4#include <X11/Xlib.h>
5
6class InputInterface;
7
8namespace Grindstone {
10 public:
11 virtual bool Initialize(CreateInfo& createInfo) override;
12 virtual void Show() override;
13 virtual bool ShouldClose() override;
14 virtual void HandleEvents() override;
15 virtual void SetFullscreen(FullscreenMode mode) override;
16 virtual void GetWindowRect(unsigned int& left, unsigned int& top, unsigned int& right, unsigned int& bottom) override;
17 virtual void GetWindowSize(unsigned int& width, unsigned int& height) override;
18 virtual void SetWindowSize(unsigned int width, unsigned int height) override;
19 virtual void SetMousePos(unsigned int x, unsigned int y) override;
20 virtual void GetMousePos(unsigned int& x, unsigned int& y) override;
21 virtual void SetWindowPos(unsigned int x, unsigned int y) override;
22 virtual void GetWindowPos(unsigned int& x, unsigned int& y) override;
23 virtual void SetWindowFocus() override;
24 virtual bool GetWindowFocus() override;
25 virtual bool GetWindowMinimized() override;
26 virtual void SetWindowTitle(const char* title) override;
27 virtual void SetWindowAlpha(float alpha) override;
28 virtual float GetWindowDpiScale() override;
29 virtual void Close() override;
30
31 virtual bool CopyStringToClipboard(const std::string& stringToCopy) override;
32 virtual std::string OpenFileDialogue(const char* filter) override;
33 virtual std::string SaveFileDialogue(const char* filter) override;
34 virtual void ExplorePath(const char* path) override;
35 virtual void OpenFileUsingDefaultProgram(const char* path) override;
36 public:
37 ::Window GetHandle();
38
39 private:
40 ::Display* xDisplay;
41 ::Window xWindow;
42 unsigned int width;
43 unsigned int height;
44 FullscreenMode fullscreenMode;
45 EngineCore* engineCore = nullptr;
46 bool shouldClose;
47 };
48};
Definition EngineCore.hpp:57
Definition Window.cs:7
Definition X11Window.hpp:9
Definition Window.hpp:20