aboutsummaryrefslogtreecommitdiff
path: root/include/cru/win/gui/WindowClass.hpp
blob: 2c07b68f192275269590edc20aa1d482a92179f1 (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::gui::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::gui::win