aboutsummaryrefslogtreecommitdiff
path: root/include/cru/platform/native/cursor.hpp
blob: b8604ecbf6992819d34f8c06666206a5ed535438 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
#pragma once

#include "../native_resource.hpp"

#include <memory>

namespace cru::platform::native {
class Cursor : public NativeResource {
 public:
  Cursor() = default;

  CRU_DELETE_COPY(Cursor)
  CRU_DELETE_MOVE(Cursor)

  ~Cursor() override = default;
};

enum class SystemCursor {
  Arrow,
  Hand,
};

class CursorManager : public NativeResource {
 public:
  CursorManager() = default;

  CRU_DELETE_COPY(CursorManager)
  CRU_DELETE_MOVE(CursorManager)

  ~CursorManager() override = default;

 public:
  virtual std::shared_ptr<Cursor> GetSystemCursor(SystemCursor type) = 0;

  //TODO: Add method to create cursor.
};

std::shared_ptr<Cursor> GetSystemCursor(SystemCursor type);
}  // namespace cru::platform::native