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);
74 inline
bool operator!=(
Window const& lhs,
Window const& rhs) {
return !(lhs == 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