Mir
Loading...
Searching...
No Matches
miral::Window Class Reference

Handle class to manage a Mir surface. It may be null (e.g. default initialized). More...

#include <window.h>

Public Member Functions

 Window ()
 Window (Application const &application, std::shared_ptr< mir::scene::Surface > const &surface)
 ~Window ()
auto top_left () const -> mir::geometry::Point
auto size () const -> mir::geometry::Size
auto application () const -> Application
 operator bool () const
void resize (mir::geometry::Size const &size)
void move_to (mir::geometry::Point top_left)
 operator std::weak_ptr< mir::scene::Surface > () const
 operator std::shared_ptr< mir::scene::Surface > () const

Friends

bool operator== (Window const &lhs, Window const &rhs)
bool operator== (std::shared_ptr< mir::scene::Surface > const &lhs, Window const &rhs)
bool operator== (Window const &lhs, std::shared_ptr< mir::scene::Surface > const &rhs)
bool operator< (Window const &lhs, Window const &rhs)

Detailed Description

Handle class to manage a Mir surface. It may be null (e.g. default initialized).

Constructor & Destructor Documentation

◆ Window() [1/2]

miral::Window::Window ( )

◆ Window() [2/2]

miral::Window::Window ( Application const & application,
std::shared_ptr< mir::scene::Surface > const & surface )

◆ ~Window()

miral::Window::~Window ( )

Member Function Documentation

◆ application()

auto miral::Window::application ( ) const->Application

◆ move_to()

void miral::Window::move_to ( mir::geometry::Point top_left)

◆ operator bool()

miral::Window::operator bool ( ) const

◆ operator std::shared_ptr< mir::scene::Surface >()

miral::Window::operator std::shared_ptr< mir::scene::Surface > ( ) const

◆ operator std::weak_ptr< mir::scene::Surface >()

miral::Window::operator std::weak_ptr< mir::scene::Surface > ( ) const

◆ resize()

void miral::Window::resize ( mir::geometry::Size const & size)

◆ size()

auto miral::Window::size ( ) const->mir::geometry::Size

◆ top_left()

auto miral::Window::top_left ( ) const->mir::geometry::Point

◆ operator<

bool operator< ( Window const & lhs,
Window const & rhs )
friend

◆ operator== [1/3]

bool operator== ( std::shared_ptr< mir::scene::Surface > const & lhs,
Window const & rhs )
friend

◆ operator== [2/3]

bool operator== ( Window const & lhs,
std::shared_ptr< mir::scene::Surface > const & rhs )
friend

◆ operator== [3/3]

bool operator== ( Window const & lhs,
Window const & rhs )
friend

The documentation for this class was generated from the following file:

Copyright © 2012-2026 Canonical Ltd.
Generated on Sun Mar 15 06:10:58 UTC 2026
This documentation is licensed under the GPL version 2 or 3.