Mir
Loading...
Searching...
No Matches
displacement.h File Reference
#include "mir/geometry/dimensions.h"
#include "mir/geometry/point.h"
#include "mir/geometry/size.h"
#include <iosfwd>
Include dependency graph for displacement.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mir::geometry::Displacement

Namespaces

namespace  mir
namespace  mir::geometry
 Basic geometry types. Types for dimensions, displacements, etc. and the operations that they support.

Functions

constexpr bool mir::geometry::operator== (Displacement const &lhs, Displacement const &rhs)
constexpr bool mir::geometry::operator!= (Displacement const &lhs, Displacement const &rhs)
std::ostream & mir::geometry::operator<< (std::ostream &out, Displacement const &value)
constexpr Displacement mir::geometry::operator+ (Displacement const &lhs, Displacement const &rhs)
constexpr Displacement mir::geometry::operator- (Displacement const &lhs, Displacement const &rhs)
constexpr Point mir::geometry::operator+ (Point const &lhs, Displacement const &rhs)
constexpr Point mir::geometry::operator+ (Displacement const &lhs, Point const &rhs)
constexpr Point mir::geometry::operator- (Point const &lhs, Displacement const &rhs)
constexpr Displacement mir::geometry::operator- (Point const &lhs, Point const &rhs)
constexpr Pointmir::geometry::operator+= (Point &lhs, Displacement const &rhs)
constexpr Pointmir::geometry::operator-= (Point &lhs, Displacement const &rhs)
bool mir::geometry::operator< (Displacement const &lhs, Displacement const &rhs)
template<typename Scalar>
constexpr Displacement mir::geometry::operator* (Scalar scale, Displacement const &disp)
template<typename Scalar>
constexpr Displacement mir::geometry::operator* (Displacement const &disp, Scalar scale)
constexpr Displacement mir::geometry::as_displacement (Size const &size)
constexpr Size mir::geometry::as_size (Displacement const &disp)
constexpr Displacement mir::geometry::as_displacement (Point const &point)
constexpr Point mir::geometry::as_point (Displacement const &disp)

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