Mir
Namespaces | Classes | Typedefs | Functions
mir::geometry Namespace Reference

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

Namespaces

 detail
 

Classes

struct  Displacement
 
class  Length
 Length represents a physical length in the real world. The number of pixels this equates to can then be calculated based on a given DPI. More...
 
struct  Point
 
struct  Rectangle
 
class  Rectangles
 A collection of rectangles (with possible duplicates). More...
 
struct  Size
 

Typedefs

typedef detail::IntWrapper< detail::widthWidth
 
typedef detail::IntWrapper< detail::heightHeight
 
typedef detail::IntWrapper< detail::strideStride
 
typedef detail::IntWrapper< detail::xX
 
typedef detail::IntWrapper< detail::yY
 
typedef detail::IntWrapper< detail::dxDeltaX
 
typedef detail::IntWrapper< detail::dyDeltaY
 

Functions

DeltaX operator+ (DeltaX lhs, DeltaX rhs)
 
DeltaX operator- (DeltaX lhs, DeltaX rhs)
 
template<typename Scalar >
Width operator* (Scalar scale, Width const &w)
 
template<typename Scalar >
Height operator* (Scalar scale, Height const &h)
 
template<typename Scalar >
DeltaX operator* (Scalar scale, DeltaX const &dx)
 
template<typename Scalar >
DeltaY operator* (Scalar scale, DeltaY const &dy)
 
template<typename Scalar >
Width operator* (Width const &w, Scalar scale)
 
template<typename Scalar >
Height operator* (Height const &h, Scalar scale)
 
template<typename Scalar >
DeltaX operator* (DeltaX const &dx, Scalar scale)
 
template<typename Scalar >
DeltaY operator* (DeltaY const &dy, Scalar scale)
 
template<typename Target , typename Source >
Target dim_cast (Source s)
 
bool operator== (Displacement const &lhs, Displacement const &rhs)
 
bool operator!= (Displacement const &lhs, Displacement const &rhs)
 
std::ostream & operator<< (std::ostream &out, Displacement const &value)
 
Displacement operator+ (Displacement const &lhs, Displacement const &rhs)
 
Displacement operator- (Displacement const &lhs, Displacement const &rhs)
 
Point operator+ (Point const &lhs, Displacement const &rhs)
 
Point operator- (Point const &lhs, Displacement const &rhs)
 
Displacement operator- (Point const &lhs, Point const &rhs)
 
bool operator< (Displacement const &lhs, Displacement const &rhs)
 
template<typename Scalar >
Displacement operator* (Scalar scale, Displacement const &disp)
 
template<typename Scalar >
Displacement operator* (Displacement const &disp, Scalar scale)
 
Length operator""_mm (long double mag)
 
Length operator""_mm (unsigned long long mag)
 
Length operator""_cm (long double mag)
 
Length operator""_cm (unsigned long long mag)
 
Length operator""_in (long double mag)
 
Length operator""_in (unsigned long long mag)
 
bool operator== (Point const &lhs, Point const &rhs)
 
bool operator!= (Point const &lhs, Point const &rhs)
 
Point operator+ (Point lhs, DeltaX rhs)
 
std::ostream & operator<< (std::ostream &out, Point const &value)
 
bool operator== (Rectangle const &lhs, Rectangle const &rhs)
 
bool operator!= (Rectangle const &lhs, Rectangle const &rhs)
 
std::ostream & operator<< (std::ostream &out, Rectangle const &value)
 
std::ostream & operator<< (std::ostream &out, Rectangles const &value)
 
bool operator== (Size const &lhs, Size const &rhs)
 
bool operator!= (Size const &lhs, Size const &rhs)
 
std::ostream & operator<< (std::ostream &out, Size const &value)
 
template<typename Scalar >
Size operator* (Scalar scale, Size const &size)
 
template<typename Scalar >
Size operator* (Size const &size, Scalar scale)
 

Detailed Description

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

Typedef Documentation

Function Documentation

template<typename Target , typename Source >
Target mir::geometry::dim_cast ( Source  s)
inline
bool mir::geometry::operator!= ( Size const &  lhs,
Size const &  rhs 
)
inline
bool mir::geometry::operator!= ( Point const &  lhs,
Point const &  rhs 
)
inline
bool mir::geometry::operator!= ( Displacement const &  lhs,
Displacement const &  rhs 
)
inline
bool mir::geometry::operator!= ( Rectangle const &  lhs,
Rectangle const &  rhs 
)
inline
Length mir::geometry::operator""_cm ( long double  mag)
inline
Length mir::geometry::operator""_cm ( unsigned long long  mag)
inline
Length mir::geometry::operator""_in ( long double  mag)
inline
Length mir::geometry::operator""_in ( unsigned long long  mag)
inline
Length mir::geometry::operator""_mm ( long double  mag)
inline
Length mir::geometry::operator""_mm ( unsigned long long  mag)
inline
template<typename Scalar >
Size mir::geometry::operator* ( Scalar  scale,
Size const &  size 
)
inline
template<typename Scalar >
Size mir::geometry::operator* ( Size const &  size,
Scalar  scale 
)
inline
template<typename Scalar >
Displacement mir::geometry::operator* ( Scalar  scale,
Displacement const &  disp 
)
inline
template<typename Scalar >
Displacement mir::geometry::operator* ( Displacement const &  disp,
Scalar  scale 
)
inline
template<typename Scalar >
Width mir::geometry::operator* ( Scalar  scale,
Width const &  w 
)
inline
template<typename Scalar >
Height mir::geometry::operator* ( Scalar  scale,
Height const &  h 
)
inline
template<typename Scalar >
DeltaX mir::geometry::operator* ( Scalar  scale,
DeltaX const &  dx 
)
inline
template<typename Scalar >
DeltaY mir::geometry::operator* ( Scalar  scale,
DeltaY const &  dy 
)
inline
template<typename Scalar >
Width mir::geometry::operator* ( Width const &  w,
Scalar  scale 
)
inline
template<typename Scalar >
Height mir::geometry::operator* ( Height const &  h,
Scalar  scale 
)
inline
template<typename Scalar >
DeltaX mir::geometry::operator* ( DeltaX const &  dx,
Scalar  scale 
)
inline
template<typename Scalar >
DeltaY mir::geometry::operator* ( DeltaY const &  dy,
Scalar  scale 
)
inline
Point mir::geometry::operator+ ( Point  lhs,
DeltaX  rhs 
)
inline
Displacement mir::geometry::operator+ ( Displacement const &  lhs,
Displacement const &  rhs 
)
inline
Point mir::geometry::operator+ ( Point const &  lhs,
Displacement const &  rhs 
)
inline
DeltaX mir::geometry::operator+ ( DeltaX  lhs,
DeltaX  rhs 
)
inline
Displacement mir::geometry::operator- ( Displacement const &  lhs,
Displacement const &  rhs 
)
inline
Point mir::geometry::operator- ( Point const &  lhs,
Displacement const &  rhs 
)
inline
Displacement mir::geometry::operator- ( Point const &  lhs,
Point const &  rhs 
)
inline
DeltaX mir::geometry::operator- ( DeltaX  lhs,
DeltaX  rhs 
)
inline
bool mir::geometry::operator< ( Displacement const &  lhs,
Displacement const &  rhs 
)
inline
std::ostream & mir::geometry::operator<< ( std::ostream &  out,
Size const &  value 
)
std::ostream & mir::geometry::operator<< ( std::ostream &  out,
Point const &  value 
)
std::ostream & mir::geometry::operator<< ( std::ostream &  out,
Displacement const &  value 
)
std::ostream & mir::geometry::operator<< ( std::ostream &  out,
Rectangles const &  value 
)
std::ostream & mir::geometry::operator<< ( std::ostream &  out,
Rectangle const &  value 
)
bool mir::geometry::operator== ( Size const &  lhs,
Size const &  rhs 
)
inline
bool mir::geometry::operator== ( Point const &  lhs,
Point const &  rhs 
)
inline
bool mir::geometry::operator== ( Displacement const &  lhs,
Displacement const &  rhs 
)
inline
bool mir::geometry::operator== ( Rectangle const &  lhs,
Rectangle const &  rhs 
)
inline

Copyright © 2012,2013 Canonical Ltd.
Generated on Tue Mar 24 16:15:19 UTC 2015