Go to the documentation of this file.
19 #ifndef MIRAL_WINDOW_H
20 #define MIRAL_WINDOW_H
31 namespace scene {
class Surface; }
49 operator bool()
const;
56 operator std::weak_ptr<mir::scene::Surface>()
const;
57 operator std::shared_ptr<mir::scene::Surface>()
const;
61 std::shared_ptr <Self>
self;
64 friend bool operator==(std::shared_ptr<mir::scene::Surface>
const& lhs,
Window const& rhs);
65 friend bool operator==(
Window const& lhs, std::shared_ptr<mir::scene::Surface>
const& rhs);
70 bool operator==(std::shared_ptr<mir::scene::Surface>
const& lhs,
Window const& rhs);
71 bool operator==(
Window const& lhs, std::shared_ptr<mir::scene::Surface>
const& rhs);
75 inline bool operator!=(std::shared_ptr<mir::scene::Surface>
const& lhs,
Window const& rhs) {
return !(lhs == rhs); }
76 inline bool operator!=(
Window const& lhs, std::shared_ptr<mir::scene::Surface>
const& rhs) {
return !(lhs == rhs); }
82 #endif //MIRAL_WINDOW_H
void move_to(mir::geometry::Point top_left)
Mir Abstraction Layer.
Definition: floating_window_manager.h:29
bool operator!=(Output::PhysicalSizeMM const &lhs, Output::PhysicalSizeMM const &rhs)
Definition: output.h:111
friend bool operator<(Window const &lhs, Window const &rhs)
bool operator>(Window const &lhs, Window const &rhs)
Definition: window.h:77
auto size() const -> mir::geometry::Size
bool operator<(Window const &lhs, Window const &rhs)
std::shared_ptr< mir::scene::Session > Application
Definition: application.h:34
bool operator>=(Window const &lhs, Window const &rhs)
Definition: window.h:79
Handle class to manage a Mir surface. It may be null (e.g. default initialized)
Definition: window.h:37
Definition: splash_session.h:24
void resize(mir::geometry::Size const &size)
auto application() const -> Application
auto top_left() const -> mir::geometry::Point
bool operator<=(Window const &lhs, Window const &rhs)
Definition: window.h:78
bool operator==(Output::PhysicalSizeMM const &lhs, Output::PhysicalSizeMM const &rhs)
friend bool operator==(Window const &lhs, Window const &rhs)
Copyright © 2012-2021
Canonical Ltd.
Generated on Fri Nov 19 11:53:53 UTC 2021
This documentation is licensed under the GPL version 2 or 3.