X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=src%2Ftype3_AndroidCloud%2Fanbox-master%2Fsrc%2Fanbox%2Fwm%2Fwindow_state.h;fp=src%2Ftype3_AndroidCloud%2Fanbox-master%2Fsrc%2Fanbox%2Fwm%2Fwindow_state.h;h=ca24b8d5d80179eff4d1db880420fb89f73dbb2d;hb=e26c1ec581be598521517829adba8c8dd23a768f;hp=0000000000000000000000000000000000000000;hpb=6699c1aea74eeb0eb400e6299079f0c7576f716f;p=iec.git diff --git a/src/type3_AndroidCloud/anbox-master/src/anbox/wm/window_state.h b/src/type3_AndroidCloud/anbox-master/src/anbox/wm/window_state.h new file mode 100644 index 0000000..ca24b8d --- /dev/null +++ b/src/type3_AndroidCloud/anbox-master/src/anbox/wm/window_state.h @@ -0,0 +1,59 @@ +/* + * Copyright (C) 2016 Simon Fels + * + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 3, as published + * by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranties of + * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program. If not, see . + * + */ + +#ifndef ANBOX_WM_WINDOW_STATE_H_ +#define ANBOX_WM_WINDOW_STATE_H_ + +#include "anbox/graphics/rect.h" +#include "anbox/wm/display.h" +#include "anbox/wm/stack.h" +#include "anbox/wm/task.h" + +#include +#include + +namespace anbox { +namespace wm { +class WindowState { + public: + typedef std::vector List; + + WindowState(); + WindowState(const Display::Id &display, bool has_surface, + const graphics::Rect &frame, const std::string &package_name, + const Task::Id &task, const Stack::Id &stack); + ~WindowState(); + + Display::Id display() const { return display_; } + bool has_surface() const { return has_surface_; } + graphics::Rect frame() const { return frame_; } + std::string package_name() const { return package_name_; } + Task::Id task() const { return task_; } + Stack::Id stack() const { return stack_; } + + private: + Display::Id display_; + bool has_surface_; + graphics::Rect frame_; + std::string package_name_; + Task::Id task_; + Stack::Id stack_; +}; +} // namespace wm +} // namespace anbox + +#endif