aboutsummaryrefslogtreecommitdiff
path: root/src/ui/window_class.hpp
blob: 72a7c4315c48d84db2e7c56085ecd384c2c6dfd0 (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
25
26
#pragma once
#include "pre.hpp"

#include <Windows.h>

#include "base.hpp"

namespace cru::ui {
class WindowClass : public Object {
 public:
  WindowClass(const String& 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() override = default;

  const wchar_t* GetName() const { return name_.c_str(); }

  ATOM GetAtom() const { return atom_; }

 private:
  String name_;
  ATOM atom_;
};
}  // namespace cru::ui