Simulant  21.12-574
A portable game engine for Windows, OSX, Linux, Dreamcast, and PSP
partitioner_panel.h
1 /* * Copyright (c) 2011-2017 Luke Benstead https://simulant-engine.appspot.com
2  *
3  * This file is part of Simulant.
4  *
5  * Simulant is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU Lesser General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * Simulant is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with Simulant. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #pragma once
20 
21 #include <unordered_map>
22 #include "panel.h"
23 #include "../types.h"
24 #include "../generic/managed.h"
25 
26 namespace smlt {
27 
28 class Window;
29 
31  public Panel,
32  public RefCounted<PartitionerPanel> {
33 
34 public:
35  PartitionerPanel(Window* window);
36 
37  bool init() override;
38  void clean_up() override;
39 
40 private:
41  Window* window_ = nullptr;
42 
43  void do_activate() override;
44  void do_deactivate() override;
45 
46  std::unordered_map<StageID, ActorPtr> debug_actors_;
47 
48  sig::connection stage_added_;
49  sig::connection stage_removed_;
50 };
51 
52 }
smlt::sig::Connection
Definition: signal.h:65
smlt::RefCounted
Definition: managed.h:65
smlt
Definition: animation.cpp:25
smlt::Panel
Definition: panel.h:29
smlt::Window
Definition: window.h:65
smlt::PartitionerPanel
Definition: partitioner_panel.h:32