19 #ifndef MIRAL_WINDOW_H
20 #define MIRAL_WINDOW_H
31 namespace scene {
class Surface; }
53 operator
bool() const;
63 operator std::weak_ptr<
mir::scene::Surface>() const;
64 operator std::shared_ptr<
mir::scene::Surface>() const;
69 std::shared_ptr <Self> self;
72 friend
bool operator==(std::shared_ptr<
mir::scene::Surface> const& lhs,
Window const& rhs);
73 friend
bool operator==(
Window const& lhs, std::shared_ptr<
mir::scene::Surface> const& rhs);
78 bool operator==(std::shared_ptr<
mir::scene::Surface> const& lhs,
Window const& rhs);
79 bool operator==(
Window const& lhs, std::shared_ptr<
mir::scene::Surface> const& rhs);
82 inline
bool operator!=(
Window const& lhs,
Window const& rhs) {
return !(lhs == rhs); }
83 inline bool operator!=(std::shared_ptr<mir::scene::Surface>
const& lhs,
Window const& rhs) {
return !(lhs == rhs); }
84 inline bool operator!=(
Window const& lhs, std::shared_ptr<mir::scene::Surface>
const& rhs) {
return !(lhs == rhs); }
Handle class to manage a Mir surface. It may be null (e.g. default initialized)
Definition: window.h:38
auto top_left() const -> mir::geometry::Point
The position of the top-left corner of the window frame.
Window(Application const &application, std::shared_ptr< mir::scene::Surface > const &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)
auto application() const -> Application
The application that created this window.
Definition: splash_session.h:24
Mir Abstraction Layer.
Definition: floating_window_manager.h:31
std::shared_ptr< mir::scene::Session > Application
Definition: application.h:34
bool operator>(Window const &lhs, Window const &rhs)
Definition: window.h:85
bool operator!=(Output::PhysicalSizeMM const &lhs, Output::PhysicalSizeMM const &rhs)
Definition: output.h:116
bool operator<=(Window const &lhs, Window const &rhs)
Definition: window.h:86
bool operator>=(Window const &lhs, Window const &rhs)
Definition: window.h:87