Mir
Public Member Functions | Friends | List of all members
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
 The position of the top-left corner of the window frame. More...
 
auto size () const -> mir::geometry::Size
 The size of the window frame. Units are logical screen coordinates (not necessarily device pixels). Any decorations are included in the size. More...
 
auto application () const -> Application
 The application that created this window. More...
 
 operator bool () const
 Indicates that the Window isn't null. More...
 
void resize (mir::geometry::Size const &size)
 Not for external use, use WindowManagerTools::modify_window() instead. More...
 
void move_to (mir::geometry::Point top_left)
 
 operator std::weak_ptr< mir::scene::Surface > () const
 Access to the underlying Mir surface. More...
 
 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)

size () const ->   Copyright © 2012-2023 Canonical Ltd.
Generate -> auto  () const -> H
std::vector< std::string > const &   

If X11 is enabled, then launch with client environment configured for X11. For the occasions it is desired to coerce applications into using X11.

Returns
The pid of the proc2417ab10eedb9706a329">auto  operator== (std::shared_ptr< m (window.h>

operator== (std::shared_ptr< mir::scene::Suection return">
Returns
The pid of the proc2417ab10eedb9706a32html#ae8dd3738281c9b5a90f1167769d613ff">tools)
 
Window const &rhs)
Friends |