Mir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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
 
struct  Size
 

Typedefs

typedef detail::IntWrapper
< detail::width
Width
 
typedef detail::IntWrapper
< detail::height
Height
 
typedef detail::IntWrapper
< detail::stride
Stride
 
typedef detail::IntWrapper
< detail::x
X
 
typedef detail::IntWrapper
< detail::y
Y
 
typedef detail::IntWrapper
< detail::dx
DeltaX
 
typedef detail::IntWrapper
< detail::dy
DeltaY
 

Functions

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)
 
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)
 
DeltaX operator+ (DeltaX lhs, DeltaX rhs)
 
DeltaX operator- (DeltaX lhs, DeltaX rhs)
 
template<typename Target , typename Source >
Target dim_cast (Source s)
 
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)
 

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!= ( Point const &  lhs,
Point const &  rhs 
)
inline
bool mir::geometry::operator!= ( Size const &  lhs,
Size 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
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== ( Point const &  lhs,
Point const &  rhs 
)
inline
bool mir::geometry::operator== ( Size const &  lhs,
Size 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 Fri Oct 10 14:07:14 UTC 2014