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_H_
19 #define ANBOX_WM_WINDOW_H_
21 #include "anbox/wm/window_state.h"
34 // FIXME(morphis): move this somewhere else once we have the integration
35 // with the emugl layer.
38 graphics::Rect frame() const { return frame_; }
41 graphics::Rect frame_;
46 typedef std::vector<Window> List;
48 Window(const std::shared_ptr<Renderer> &renderer, const Task::Id &task, const graphics::Rect &frame, const std::string &title);
54 void update_state(const WindowState::List &states);
55 void update_frame(const graphics::Rect &frame);
57 virtual EGLNativeWindowType native_handle() const;
58 graphics::Rect frame() const;
59 Task::Id task() const;
60 std::string title() const;
63 std::shared_ptr<Renderer> renderer_;
65 graphics::Rect frame_;
67 bool attached_ = false;