Wayverb
hover.h
1 #pragma once
2 
3 #include "combined/model/member.h"
4 
5 namespace wayverb {
6 namespace combined {
7 namespace model {
8 
9 class hover_state final : public basic_member<hover_state> {
10 public:
11  void set_hovered(bool hovered);
12  bool get_hovered() const;
13 
14  void set_selected(bool selected);
15  bool get_selected() const;
16 
17  NOTIFYING_COPY_ASSIGN_DECLARATION(hover_state)
18 private:
19  void swap(hover_state& other) noexcept {
20  using std::swap;
21  swap(hovered_, other.hovered_);
22  swap(selected_, other.selected_);
23  }
24 
25  bool hovered_ = false;
26  bool selected_ = false;
27 };
28 
29 } // namespace model
30 } // namespace combined
31 } // namespace wayverb
Definition: capsule_base.h:9