igraphic 0.2.0
Contrats graphiques chargeables : IGraphic2Module / IGraphic3Module
Loading...
Searching...
No Matches
IWindow.hpp
Go to the documentation of this file.
1
11#ifndef IWINDOW_HPP_
12 #define IWINDOW_HPP_
13 #include "Type.hpp"
14
15namespace graphic {
16
27 class IWindow {
28
29 public:
30
34 virtual ~IWindow() = default;
35
41 virtual bool isOpen() = 0;
42
46 virtual void close() = 0;
47
54 virtual Vector2f getPosition() = 0;
55
61 virtual void setPosition(Vector2f position) = 0;
62
70 virtual Vector2f getSize() = 0;
71
77 virtual void setSize(Vector2f size) = 0;
78
84 virtual void setFrameLimit(int32_t limit) = 0;
85
103 virtual void setMouseVisibility(bool visible) = 0;
104
110 virtual int32_t getDelta() = 0;
111
143 virtual bool pollEvent() = 0;
144
148 virtual void eventClose() = 0;
149
150 private:
151 //your variables here
152 };
153
154} // namespace graphic
155
158#endif /* !IWINDOW_HPP_ */
Window lifecycle. No drawing here : every window, 2D-capable or not, has to open, close and pump its ...
Definition IWindow.hpp:27
virtual ~IWindow()=default
Destroy the IWindow object.
virtual int32_t getDelta()=0
Get the Delta object.
virtual void setFrameLimit(int32_t limit)=0
Set the Frame Limit object.
virtual bool pollEvent()=0
Drains the whole native queue for this frame and refreshes device state. This is the frame's event pu...
virtual Vector2f getPosition()=0
Where the window sits on the desktop, in pixels, origin top-left of the primary screen.
virtual void eventClose()=0
notice the window that a close was requested
virtual void close()=0
close the window
virtual void setSize(Vector2f size)=0
Resize the drawable area.
virtual void setMouseVisibility(bool visible)=0
Show or hide the system cursor over THIS window.
virtual void setPosition(Vector2f position)=0
Move the window on the desktop.
virtual bool isOpen()=0
notice if the window is open
virtual Vector2f getSize()=0
The drawable area, in pixels - NOT the desktop size. A hit-test built on IMouse::getPosition() compar...
Definition IGamepad.hpp:14