-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathWindowWIN32.h
37 lines (30 loc) · 909 Bytes
/
WindowWIN32.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef WINDOWWIN32_H_INCLUDED
#define WINDOWWIN32_H_INCLUDED
// Onut
#include <onut/Window.h>
// Forward Declaration
#include <onut/ForwardDeclaration.h>
OForwardDeclare(WindowWIN32)
namespace onut
{
class WindowWIN32 final : public Window
{
public:
WindowWIN32();
~WindowWIN32();
HWND getHandle();
void setCaption(const std::string& newName) override;
void setFullscreen(bool isFullscreen) override;
bool pollEvents() override;
void setClipboard(const std::string& text) override;
std::string getClipboard() override;
bool hasFocus() const override { return m_hasFocus; };
private:
friend LRESULT CALLBACK WinProc(HWND handle, UINT msg, WPARAM wparam, LPARAM lparam);
HWND m_handle;
bool m_isFullScreen = false;
Point m_resSetting;
bool m_hasFocus = true;
};
}
#endif