aboutsummaryrefslogtreecommitdiff
path: root/include/cru/win/native/window_class.hpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2019-12-12 23:26:04 +0800
committercrupest <crupest@outlook.com>2019-12-12 23:26:04 +0800
commitf2aa96fba0b72eeeadf5160ea5df2c8143ec8aa0 (patch)
treeb045d35bb2cf7281ab69abbd51302c85ea9ec3ef /include/cru/win/native/window_class.hpp
parent02f46ada9ef85165759f5e58d665510077149ef3 (diff)
downloadcru-f2aa96fba0b72eeeadf5160ea5df2c8143ec8aa0.tar.gz
cru-f2aa96fba0b72eeeadf5160ea5df2c8143ec8aa0.tar.bz2
cru-f2aa96fba0b72eeeadf5160ea5df2c8143ec8aa0.zip
...
Diffstat (limited to 'include/cru/win/native/window_class.hpp')
-rw-r--r--include/cru/win/native/window_class.hpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/include/cru/win/native/window_class.hpp b/include/cru/win/native/window_class.hpp
index fec3b32e..fd5102a5 100644
--- a/include/cru/win/native/window_class.hpp
+++ b/include/cru/win/native/window_class.hpp
@@ -8,12 +8,11 @@
namespace cru::platform::native::win {
class WindowClass : public Object {
public:
- WindowClass(const std::wstring& name, WNDPROC window_proc,
- HINSTANCE h_instance);
- WindowClass(const WindowClass& other) = delete;
- WindowClass(WindowClass&& other) = delete;
- WindowClass& operator=(const WindowClass& other) = delete;
- WindowClass& operator=(WindowClass&& other) = delete;
+ WindowClass(std::wstring name, WNDPROC window_proc, HINSTANCE h_instance);
+
+ CRU_DELETE_COPY(WindowClass)
+ CRU_DELETE_MOVE(WindowClass)
+
~WindowClass() override = default;
const wchar_t* GetName() const { return name_.c_str(); }
@@ -24,4 +23,4 @@ class WindowClass : public Object {
std::wstring name_;
ATOM atom_;
};
-} // namespace cru::win::native
+} // namespace cru::platform::native::win