Grindstone Game Engine v0.2.0
An open source game engine and toolkit.
Loading...
Searching...
No Matches
Grindstone::X11Window Class Reference
Inheritance diagram for Grindstone::X11Window:
Grindstone.Window

Public Member Functions

virtual bool Initialize (CreateInfo &createInfo) override
 
virtual void Show () override
 
virtual bool ShouldClose () override
 
virtual void HandleEvents () override
 
virtual void SetFullscreen (FullscreenMode mode) override
 
virtual void GetWindowRect (unsigned int &left, unsigned int &top, unsigned int &right, unsigned int &bottom) override
 
virtual void GetWindowSize (unsigned int &width, unsigned int &height) override
 
virtual void SetWindowSize (unsigned int width, unsigned int height) override
 
virtual void SetMousePos (unsigned int x, unsigned int y) override
 
virtual void GetMousePos (unsigned int &x, unsigned int &y) override
 
virtual void SetWindowPos (unsigned int x, unsigned int y) override
 
virtual void GetWindowPos (unsigned int &x, unsigned int &y) override
 
virtual void SetWindowFocus () override
 
virtual bool GetWindowFocus () override
 
virtual bool GetWindowMinimized () override
 
virtual void SetWindowTitle (const char *title) override
 
virtual void SetWindowAlpha (float alpha) override
 
virtual float GetWindowDpiScale () override
 
virtual void Close () override
 
virtual bool CopyStringToClipboard (const std::string &stringToCopy) override
 
virtual std::string OpenFileDialogue (const char *filter) override
 
virtual std::string SaveFileDialogue (const char *filter) override
 
virtual void ExplorePath (const char *path) override
 
virtual void OpenFileUsingDefaultProgram (const char *path) override
 
::Window GetHandle ()
 
- Public Member Functions inherited from Grindstone.Window
virtual void Hide ()=0
 
virtual void GetWindowRect (unsigned int &left, unsigned int &top, unsigned int &right, unsigned int &bottom) const =0
 
virtual void GetWindowSize (unsigned int &width, unsigned int &height) const =0
 
virtual void GetMousePos (unsigned int &x, unsigned int &y) const =0
 
virtual void SetCursorMode (Grindstone::Input::CursorMode cursorMode)=0
 
virtual Grindstone::Input::CursorMode GetCursorMode () const =0
 
virtual void SetMouseIsRawMotion (bool isRawMotion)=0
 
virtual bool GetMouseIsRawMotion () const =0
 
virtual void GetWindowPos (unsigned int &x, unsigned int &y) const =0
 
virtual void SetWindowFocus (bool isFocused)=0
 
virtual bool GetWindowFocus () const =0
 
virtual bool GetWindowMinimized () const =0
 
virtual void GetTitle (char *allocatedBuffer) const =0
 
virtual void SetTitle (const char *title)=0
 
virtual float GetWindowDpiScale () const =0
 
virtual std::filesystem::path BrowseFolder (std::filesystem::path &defaultPath)=0
 
Grindstone::GraphicsAPI::WindowGraphicsBindingGetWindowGraphicsBinding () const
 
void AddBinding (Grindstone::GraphicsAPI::WindowGraphicsBinding *wgb)
 
void ImmediateSetContext ()
 
void ImmediateSwapBuffers ()
 
bool IsSwapchainControlledByEngine () const
 
 Window (System.IntPtr p)
 
void Close ()
 
void Show ()
 
void Hide ()
 

Additional Inherited Members

- Public Types inherited from Grindstone.Window
enum class  FullscreenMode
 
enum  FullscreenMode { Windowed , Borderless , Fullscreen }
 
- Static Public Member Functions inherited from Grindstone.Window
static Grindstone::WindowCreate (CreateInfo &createInfo)
 
- Protected Attributes inherited from Grindstone.Window
Grindstone::GraphicsAPI::WindowGraphicsBindingwindowsGraphicsBinding = nullptr
 
bool isSwapchainControlledByEngine
 
- Properties inherited from Grindstone.Window
static Window Current [get]
 
FullscreenMode Fullscreen [set]
 
Rect WindowRect [get]
 
Float2 Size [get, set]
 
Float2 Position [get, set]
 
bool IsFocused [get, set]
 
bool IsMinimized [get]
 
string Title [get, set]
 

Member Function Documentation

◆ Close()

void X11Window::Close ( )
overridevirtual

Implements Grindstone.Window.

◆ CopyStringToClipboard()

bool X11Window::CopyStringToClipboard ( const std::string & stringToCopy)
overridevirtual

Implements Grindstone.Window.

◆ ExplorePath()

void X11Window::ExplorePath ( const char * path)
overridevirtual

Implements Grindstone.Window.

◆ HandleEvents()

void X11Window::HandleEvents ( )
overridevirtual

Implements Grindstone.Window.

◆ Initialize()

bool X11Window::Initialize ( CreateInfo & createInfo)
overridevirtual

Implements Grindstone.Window.

◆ OpenFileDialogue()

std::string X11Window::OpenFileDialogue ( const char * filter)
overridevirtual

Implements Grindstone.Window.

◆ OpenFileUsingDefaultProgram()

void X11Window::OpenFileUsingDefaultProgram ( const char * path)
overridevirtual

Implements Grindstone.Window.

◆ SaveFileDialogue()

std::string X11Window::SaveFileDialogue ( const char * filter)
overridevirtual

Implements Grindstone.Window.

◆ SetFullscreen()

void X11Window::SetFullscreen ( FullscreenMode mode)
overridevirtual

Implements Grindstone.Window.

◆ SetMousePos()

void X11Window::SetMousePos ( unsigned int x,
unsigned int y )
overridevirtual

Implements Grindstone.Window.

◆ SetWindowAlpha()

void X11Window::SetWindowAlpha ( float alpha)
overridevirtual

Implements Grindstone.Window.

◆ SetWindowPos()

void X11Window::SetWindowPos ( unsigned int x,
unsigned int y )
overridevirtual

Implements Grindstone.Window.

◆ SetWindowSize()

void X11Window::SetWindowSize ( unsigned int width,
unsigned int height )
overridevirtual

Implements Grindstone.Window.

◆ ShouldClose()

bool X11Window::ShouldClose ( )
overridevirtual

Implements Grindstone.Window.

◆ Show()

void X11Window::Show ( )
overridevirtual

Implements Grindstone.Window.


The documentation for this class was generated from the following files: