aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/ThemeManager.hpp
blob: c9e176807a01dc8730eed82074b832ed1c2ac0d1 (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
#pragma once
#include "Base.hpp"
#include "cru/common/Base.hpp"
#include "cru/common/Event.hpp"

#include <boost/property_tree/ptree.hpp>
#include <cstddef>

namespace cru::ui {
class ThemeManager : public Object {
 public:
  ThemeManager();

  CRU_DELETE_COPY(ThemeManager)
  CRU_DELETE_MOVE(ThemeManager)

  ~ThemeManager() override;

  IEvent<std::nullptr_t>* ThemeResourceChangeEvent() {
    return &theme_resource_change_event_;
  }

 private:
  Event<std::nullptr_t> theme_resource_change_event_;
  boost::property_tree::iptree theme_tree_;
};
}  // namespace cru::ui