Mir
Classes | Namespaces | Typedefs | Functions
dimensions.h File Reference
#include <cstdint>
#include <iosfwd>
Include dependency graph for dimensions.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  mir::geometry::detail::IntWrapper< Tag >
 

Namespaces

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

Typedefs

typedef detail::IntWrapper< struct WidthTag > mir::geometry::Width
 
typedef detail::IntWrapper< struct HeightTag > mir::geometry::Height
 
typedef detail::IntWrapper< struct StrideTag > mir::geometry::Stride
 
typedef detail::IntWrapper< struct XTag > mir::geometry::X
 
typedef detail::IntWrapper< struct YTag > mir::geometry::Y
 
typedef detail::IntWrapper< struct DeltaXTag > mir::geometry::DeltaX
 
typedef detail::IntWrapper< struct DeltaYTag > mir::geometry::DeltaY
 

Functions

template<typename Tag >
std::ostream & mir::geometry::detail::operator<< (std::ostream &out, IntWrapper< Tag > const &value)
 
template<typename Tag >
constexpr bool mir::geometry::detail::operator== (IntWrapper< Tag > const &lhs, IntWrapper< Tag > const &rhs)
 
template<typename Tag >
constexpr bool mir::geometry::detail::operator!= (IntWrapper< Tag > const &lhs, IntWrapper< Tag > const &rhs)
 
template<typename Tag >
constexpr bool mir::geometry::detail::operator<= (IntWrapper< Tag > const &lhs, IntWrapper< Tag > const &rhs)
 
template<typename Tag >
constexpr bool mir::geometry::detail::operator>= (IntWrapper< Tag > const &lhs, IntWrapper< Tag > const &rhs)
 
template<typename Tag >
constexpr bool mir::geometry::detail::operator< (IntWrapper< Tag > const &lhs, IntWrapper< Tag > const &rhs)
 
template<typename Tag >
constexpr bool mir::geometry::detail::operator> (IntWrapper< Tag > const &lhs, IntWrapper< Tag > const &rhs)
 
constexpr DeltaX mir::geometry::operator+ (DeltaX lhs, DeltaX rhs)
 
constexpr DeltaY mir::geometry::operator+ (DeltaY lhs, DeltaY rhs)
 
constexpr DeltaX mir::geometry::operator- (DeltaX lhs, DeltaX rhs)
 
constexpr DeltaY mir::geometry::operator- (DeltaY lhs, DeltaY rhs)
 
DeltaX & mir::geometry::operator+= (DeltaX &lhs, DeltaX rhs)
 
DeltaY & mir::geometry::operator+= (DeltaY &lhs, DeltaY rhs)
 
DeltaX & mir::geometry::operator-= (DeltaX &lhs, DeltaX rhs)
 
DeltaY & mir::geometry::operator-= (DeltaY &lhs, DeltaY rhs)
 
constexpr X mir::geometry::operator+ (X lhs, DeltaX rhs)
 
constexpr Y mir::geometry::operator+ (Y lhs, DeltaY rhs)
 
constexpr X mir::geometry::operator- (X lhs, DeltaX rhs)
 
constexpr Y mir::geometry::operator- (Y lhs, DeltaY rhs)
 
X & mir::geometry::operator+= (X &lhs, DeltaX rhs)
 
Y & mir::geometry::operator+= (Y &lhs, DeltaY rhs)
 
X & mir::geometry::operator-= (X &lhs, DeltaX rhs)
 
Y & mir::geometry::operator-= (Y &lhs, DeltaY rhs)
 
constexpr Width mir::geometry::operator+ (Width lhs, DeltaX rhs)
 
constexpr Height mir::geometry::operator+ (Height lhs, DeltaY rhs)
 
constexpr Width mir::geometry::operator- (Width lhs, DeltaX rhs)
 
constexpr Height mir::geometry::operator- (Height lhs, DeltaY rhs)
 
Width & mir::geometry::operator+= (Width &lhs, DeltaX rhs)
 
Height & mir::geometry::operator+= (Height &lhs, DeltaY rhs)
 
Width & mir::geometry::operator-= (Width &lhs, DeltaX rhs)
 
Height & mir::geometry::operator-= (Height &lhs, DeltaY rhs)
 
constexpr Width mir::geometry::operator+ (Width lhs, Width rhs)
 
constexpr Height mir::geometry::operator+ (Height lhs, Height rhs)
 
Width & mir::geometry::operator+= (Width &lhs, Width rhs)
 
Height & mir::geometry::operator+= (Height &lhs, Height rhs)
 
constexpr DeltaX mir::geometry::operator- (X lhs, X rhs)
 
constexpr DeltaY mir::geometry::operator- (Y lhs, Y rhs)
 
constexpr DeltaX mir::geometry::operator- (Width lhs, Width rhs)
 
constexpr DeltaY mir::geometry::operator- (Height lhs, Height rhs)
 
template<typename Scalar >
constexpr Width mir::geometry::operator* (Scalar scale, Width const &w)
 
template<typename Scalar >
constexpr Height mir::geometry::operator* (Scalar scale, Height const &h)
 
template<typename Scalar >
constexpr DeltaX mir::geometry::operator* (Scalar scale, DeltaX const &dx)
 
template<typename Scalar >
constexpr DeltaY mir::geometry::operator* (Scalar scale, DeltaY const &dy)
 
template<typename Scalar >
constexpr Width mir::geometry::operator* (Width const &w, Scalar scale)
 
template<typename Scalar >
constexpr Height mir::geometry::operator* (Height const &h, Scalar scale)
 
template<typename Scalar >
constexpr DeltaX mir::geometry::operator* (DeltaX const &dx, Scalar scale)
 
template<typename Scalar >
constexpr DeltaY mir::geometry::operator* (DeltaY const &dy, Scalar scale)
 
constexpr Width mir::geometry::as_width (DeltaX const &dx)
 
constexpr Height mir::geometry::as_height (DeltaY const &dy)
 
constexpr X mir::geometry::as_x (DeltaX const &dx)
 
constexpr Y mir::geometry::as_y (DeltaY const &dy)
 
constexpr DeltaX mir::geometry::as_delta (X const &x)
 
constexpr DeltaY mir::geometry::as_delta (Y const &y)
 
constexpr X mir::geometry::as_x (Width const &w)
 
constexpr Y mir::geometry::as_y (Height const &h)
 
constexpr Width mir::geometry::as_width (X const &x)
 
constexpr Height mir::geometry::as_height (Y const &y)
 
constexpr DeltaX mir::geometry::as_delta (Width const &w)
 
constexpr DeltaY mir::geometry::as_delta (Height const &h)
 
template<typename Target , typename Source >
constexpr Target mir::geometry::dim_cast (Source s)
 

Copyright © 2012-2019 Canonical Ltd.
Generated on Fri Dec 6 02:23:43 UTC 2019
This documentation is licensed under the GPL version 2 or 3.