19 #ifndef MIRAL_WINDOW_H 20 #define MIRAL_WINDOW_H 31 namespace scene {
class Surface; }
41 Window(
Application const& application, std::shared_ptr<mir::scene::Surface>
const& 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
AutoUnblockThread is a helper thread class that can gracefully shutdown at destruction time...
Definition: blob.h:26
constexpr bool operator<=(IntWrapper< Tag, ValueType > const &lhs, IntWrapper< Tag, ValueType > const &rhs)
Definition: int_wrapper.h:59
constexpr bool operator==(Flags< Enum > flags, Enum e) noexcept
Definition: flags.h:125
constexpr bool operator>=(IntWrapper< Tag, ValueType > const &lhs, IntWrapper< Tag, ValueType > const &rhs)
Definition: int_wrapper.h:65
bool operator>(Window const &lhs, Window const &rhs)
Definition: window.h:77
Handle class to manage a Mir surface. It may be null (e.g. default initialized)
Definition: window.h:37
std::shared_ptr< mir::scene::Session > Application
Definition: application.h:34
constexpr bool operator<(IntWrapper< Tag, ValueType > const &lhs, IntWrapper< Tag, ValueType > const &rhs)
Definition: int_wrapper.h:71
Mir Abstraction Layer.
Definition: add_init_callback.h:26
constexpr bool operator!=(IntWrapper< Tag, ValueType > const &lhs, IntWrapper< Tag, ValueType > const &rhs)
Definition: int_wrapper.h:53