2 * Copyright (C) 2016 Simon Fels <morphis@gravedo.de>
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.
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.
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/>.
18 #ifndef ANBOX_WM_WINDOW_STATE_H_
19 #define ANBOX_WM_WINDOW_STATE_H_
21 #include "anbox/graphics/rect.h"
22 #include "anbox/wm/display.h"
23 #include "anbox/wm/stack.h"
24 #include "anbox/wm/task.h"
33 typedef std::vector<WindowState> List;
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);
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_; }
51 graphics::Rect frame_;
52 std::string package_name_;