Mir
|
Handle class to manage a Mir surface. It may be null (e.g. default initialized) More...
#include <window.h>
Public Member Functions | |
Window () | |
Window (Application const &application, std::shared_ptr< mir::scene::Surface > const &surface) | |
~Window () | |
auto | top_left () const -> mir::geometry::Point |
The position of the top-left corner of the window frame. More... | |
auto | size () const -> mir::geometry::Size |
The size of the window frame. Units are logical screen coordinates (not necessarily device pixels). Any decorations are included in the size. More... | |
auto | application () const -> Application |
The application that created this window. More... | |
operator bool () const | |
Indicates that the Window isn't null. More... | |
void | resize (mir::geometry::Size const &size) |
Not for external use, use WindowManagerTools::modify_window() instead. More... | |
void | move_to (mir::geometry::Point top_left) |
operator std::weak_ptr< mir::scene::Surface > () const | |
Access to the underlying Mir surface. More... | |
operator std::shared_ptr< mir::scene::Surface > () const | |
Friends | |
bool | operator== (Window const &lhs, Window const &rhs) |
bool | operator== (std::shared_ptr< mir::scene::Surface > const &lhs, Window const &rhs) |
bool | operator== (Window const &lhs, std::shared_ptr< mir::scene::Surface > const &rhs) |
bool | operator< (Window const &lhs, Window const &rhs) |
Handle class to manage a Mir surface. It may be null (e.g. default initialized)
miral::Window::Window | ( | ) |
miral::Window::Window | ( | Application const & | application, |
std::shared_ptr< mir::scene::Surface > const & | surface | ||
) |
miral::Window::~Window | ( | ) |
auto miral::Window::application | ( | ) | const -> Application |
The application that created this window.
void miral::Window::move_to | ( | mir::geometry::Point | top_left | ) |
miral::Window::operator bool | ( | ) | const |
Indicates that the Window isn't null.
miral::Window::operator std::shared_ptr< mir::scene::Surface > | ( | ) | const |
miral::Window::operator std::weak_ptr< mir::scene::Surface > | ( | ) | const |
Access to the underlying Mir surface.
void miral::Window::resize | ( | mir::geometry::Size const & | size | ) |
Not for external use, use WindowManagerTools::modify_window() instead.
auto miral::Window::size | ( | ) | const -> mir::geometry::Size |
The size of the window frame. Units are logical screen coordinates (not necessarily device pixels). Any decorations are included in the size.
auto miral::Window::top_left | ( | ) | const -> mir::geometry::Point |
The position of the top-left corner of the window frame.
|
friend |
|
friend |
Copyright © 2012-2022
Canonical Ltd.
Generated on Fri Aug 26 13:27:37 UTC 2022
This documentation is licensed under the GPL version 2 or 3.