Mir
Public Member Functions | List of all members
mir::geometry::Rectangle Struct Reference

#include <rectangle.h>

Inheritance diagram for mir::geometry::Rectangle:
[legend]

Public Member Functions

Rectangle intersection_with (Rectangle const &r) const
 
- Public Member Functions inherited from mir::geometry::generic::Rectangle< Point, Size >
constexpr Rectangle ()=default
 
constexpr Rectangle (Point const &top_left, Size const &size)
 
Point bottom_right () const
 The bottom right boundary point of the rectangle. More...
 
Point top_right () const
 
Point bottom_left () const
 
bool contains (Point const &p) const
 
bool contains (Rectangle< Point, Size > const &r) const
 Test if the rectangle contains another. More...
 
bool overlaps (Rectangle< Point, Size > const &r) const
 
Corresponding< Point, XTagleft () const
 
Corresponding< Point, XTagright () const
 
Corresponding< Point, YTagtop () const
 
Corresponding< Point, YTagbottom () const
 

Additional Inherited Members

- Public Attributes inherited from mir::geometry::generic::Rectangle< Point, Size >
Point top_left
 
Size size
 

Member Function Documentation

◆ intersection_with()

Rectangle mir::geometry::Rectangle::intersection_with ( Rectangle const &  r) const
inline

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

Copyright © 2012-2022 Canonical Ltd.
Generated on śro, 1 cze 2022, 16:52:55 UTC
This documentation is licensed under the GPL version 2 or 3.