Grindstone Game Engine
v0.2.0
An open source game engine and toolkit.
Loading...
Searching...
No Matches
WindowEvent.hpp
1
#pragma once
2
3
#include "BaseEvent.hpp"
4
#include "KeyPressCode.hpp"
5
6
namespace
Grindstone {
7
class
Window;
8
9
namespace
Events {
10
struct
WindowTryQuitEvent
:
public
BaseEvent
{
11
WindowTryQuitEvent
(
Grindstone::Window
* window)
12
: window(window) {}
13
Grindstone::Window
* window;
14
SETUP_EVENT(WindowTryQuit)
15
};
// struct WindowTryQuitEvent
16
17
struct
WindowForceQuitEvent
:
public
BaseEvent
{
18
WindowForceQuitEvent
(
Grindstone::Window
* window)
19
: window(window) {}
20
Grindstone::Window
* window;
21
SETUP_EVENT(WindowForceQuit)
22
};
// struct WindowForceQuitEvent
23
24
struct
WindowResizeEvent
:
public
BaseEvent
{
25
WindowResizeEvent
(
int
width,
int
height)
26
: width(width), height(height) {}
27
int
width;
28
int
height;
29
30
SETUP_EVENT(WindowResize)
31
};
// struct WindowResize
32
33
struct
WindowStartFocusEvent
:
public
BaseEvent
{
34
SETUP_EVENT(WindowStartFocus)
35
};
// struct WindowStartFocus
36
37
struct
WindowKillFocusEvent
:
public
BaseEvent
{
38
SETUP_EVENT(WindowKillFocus)
39
};
// struct WindowKillFocus
40
41
struct
WindowMovedEvent
:
public
BaseEvent
{
42
WindowMovedEvent
(
int
windowPositionX,
int
windowPositionY)
43
: windowPositionX(windowPositionX), windowPositionY(windowPositionY) {}
44
int
windowPositionX;
45
int
windowPositionY;
46
47
SETUP_EVENT(WindowMoved)
48
};
// struct WindowMoved
49
}
// namespace Events
50
}
// namespace Grindstone
Grindstone.Window
Definition
Window.cs:7
Grindstone::Events::BaseEvent
Definition
BaseEvent.hpp:7
Grindstone::Events::WindowForceQuitEvent
Definition
WindowEvent.hpp:17
Grindstone::Events::WindowKillFocusEvent
Definition
WindowEvent.hpp:37
Grindstone::Events::WindowMovedEvent
Definition
WindowEvent.hpp:41
Grindstone::Events::WindowResizeEvent
Definition
WindowEvent.hpp:24
Grindstone::Events::WindowStartFocusEvent
Definition
WindowEvent.hpp:33
Grindstone::Events::WindowTryQuitEvent
Definition
WindowEvent.hpp:10
sources
code
Common
Event
WindowEvent.hpp
Generated by
1.12.0