2
3
4
5
6
7
8
9
10
11
12
13
14
15
20#include "miral/application.h"
22#include <mir/geometry/point.h>
23#include <mir/geometry/size.h>
29namespace scene {
class Surface; }
39 Window(Application
const& application, std::shared_ptr<
mir::
scene::Surface>
const& surface);
67 std::shared_ptr <Self> self;
Handle class to manage a Mir surface. It may be null (e.g. default initialized)
Definition: window.h:36
friend bool operator==(Window const &lhs, Window const &rhs)
auto top_left() const -> mir::geometry::Point
The position of the top-left corner of the window frame.
operator std::shared_ptr< mir::scene::Surface >() const
Window(Application const &application, std::shared_ptr< mir::scene::Surface > const &surface)
friend bool operator==(std::shared_ptr< mir::scene::Surface > const &lhs, Window const &rhs)
operator std::weak_ptr< mir::scene::Surface >() const
Access to the underlying Mir surface.
auto size() const -> mir::geometry::Size
The size of the window frame. Units are logical screen coordinates (not necessarily device pixels)....
void resize(mir::geometry::Size const &size)
Not for external use, use WindowManagerTools::modify_window() instead.
void move_to(mir::geometry::Point top_left)
operator bool() const
Indicates that the Window isn't null.
auto application() const -> Application
The application that created this window.
friend bool operator<(Window const &lhs, Window const &rhs)
friend bool operator==(Window const &lhs, std::shared_ptr< mir::scene::Surface > const &rhs)
Basic geometry types. Types for dimensions, displacements, etc. and the operations that they support.
Definition: size.h:27
Definition: internal_client.h:24
Mir Abstraction Layer.
Definition: runner.h:35
bool operator!=(Window const &lhs, std::shared_ptr< mir::scene::Surface > const &rhs)
Definition: window.h:82
bool operator!=(std::shared_ptr< mir::scene::Surface > const &lhs, Window const &rhs)
Definition: window.h:81
bool operator>(Window const &lhs, Window const &rhs)
Definition: window.h:83
bool operator<=(Window const &lhs, Window const &rhs)
Definition: window.h:84
bool operator!=(Window const &lhs, Window const &rhs)
Definition: window.h:80
void PrintTo(Window const &bar, std::ostream *os)
Customization for Google test (to print surface name in errors)
bool operator>=(Window const &lhs, Window const &rhs)
Definition: window.h:85