ca24b8d5d80179eff4d1db880420fb89f73dbb2d
[iec.git] / src / type3_AndroidCloud / anbox-master / src / anbox / wm / window_state.h
1 /*
2  * Copyright (C) 2016 Simon Fels <morphis@gravedo.de>
3  *
4  * This program is free software: you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License version 3, as published
6  * by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful, but
9  * WITHOUT ANY WARRANTY; without even the implied warranties of
10  * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
11  * PURPOSE.  See the GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License along
14  * with this program.  If not, see <http://www.gnu.org/licenses/>.
15  *
16  */
17
18 #ifndef ANBOX_WM_WINDOW_STATE_H_
19 #define ANBOX_WM_WINDOW_STATE_H_
20
21 #include "anbox/graphics/rect.h"
22 #include "anbox/wm/display.h"
23 #include "anbox/wm/stack.h"
24 #include "anbox/wm/task.h"
25
26 #include <string>
27 #include <vector>
28
29 namespace anbox {
30 namespace wm {
31 class WindowState {
32  public:
33   typedef std::vector<WindowState> List;
34
35   WindowState();
36   WindowState(const Display::Id &display, bool has_surface,
37               const graphics::Rect &frame, const std::string &package_name,
38               const Task::Id &task, const Stack::Id &stack);
39   ~WindowState();
40
41   Display::Id display() const { return display_; }
42   bool has_surface() const { return has_surface_; }
43   graphics::Rect frame() const { return frame_; }
44   std::string package_name() const { return package_name_; }
45   Task::Id task() const { return task_; }
46   Stack::Id stack() const { return stack_; }
47
48  private:
49   Display::Id display_;
50   bool has_surface_;
51   graphics::Rect frame_;
52   std::string package_name_;
53   Task::Id task_;
54   Stack::Id stack_;
55 };
56 }  // namespace wm
57 }  // namespace anbox
58
59 #endif