29namespace scene {
class Surface; }
51 operator
bool() const;
61 operator
std::weak_ptr<
mir::scene::Surface>() const;
62 operator
std::shared_ptr<
mir::scene::Surface>() const;
67 std::shared_ptr <Self> self;
70 friend
bool operator==(
std::shared_ptr<
mir::scene::Surface> const& lhs,
Window const& rhs);
71 friend
bool operator==(
Window const& lhs,
std::shared_ptr<
mir::scene::Surface> const& rhs);
76bool operator==(
std::shared_ptr<
mir::scene::Surface> const& lhs,
Window const& rhs);
77bool operator==(
Window const& lhs,
std::shared_ptr<
mir::scene::Surface> const& rhs);
80inline
bool operator!=(
Window const& lhs,
Window const& rhs) {
return !(lhs == rhs); }
81inline bool operator!=(std::shared_ptr<mir::scene::Surface>
const& lhs,
Window const& rhs) {
return !(lhs == rhs); }
82inline 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:36
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:22
Mir Abstraction Layer.
Definition floating_window_manager.h:29
std::shared_ptr< mir::scene::Session > Application
Definition application.h:32
bool operator>(Window const &lhs, Window const &rhs)
Definition window.h:83
bool operator!=(Output::PhysicalSizeMM const &lhs, Output::PhysicalSizeMM const &rhs)
Definition output.h:127
bool operator<=(Window const &lhs, Window const &rhs)
Definition window.h:84
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