aboutsummaryrefslogtreecommitdiff
path: root/include/cru/win/native/window_class.hpp
blob: 2140c304401ccd2962868d0bc02704d1709282dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once
#include "base.hpp"

#include <string>

namespace cru::platform::native::win {
class WindowClass : public Object {
 public:
  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(); }

  ATOM GetAtom() const { return atom_; }

 private:
  std::wstring name_;
  ATOM atom_;
};
}  // namespace cru::platform::native::win