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

Enumerations

enum  PixelFormat : uint32_t {
  PixelFormat::invalid, PixelFormat::abgr_8888, PixelFormat::xbgr_8888, PixelFormat::argb_8888,
  PixelFormat::xrgb_8888, PixelFormat::bgr_888
}
 

Functions

DeltaX operator+ (DeltaX lhs, DeltaX rhs)
 
DeltaX operator- (DeltaX lhs, DeltaX rhs)
 
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)
 
bool operator== (Point const &lhs, Point const &rhs)
 
bool operator!= (Point const &lhs, Point const &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

Enumeration Type Documentation

enum mir::geometry::PixelFormat : uint32_t
strong
Enumerator
invalid 
abgr_8888 
xbgr_8888 
argb_8888 
xrgb_8888 
bgr_888 

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
Displacement mir::geometry::operator+ ( Displacement const &  lhs,
Displacement const &  rhs 
)
inline
Point mir::geometry::operator+ ( Point const &  lhs,
Displacement const &  rhs 
)
inline
X 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,
Point const &  value 
)
inline
std::ostream& mir::geometry::operator<< ( std::ostream &  out,
Size const &  value 
)
inline
std::ostream & mir::geometry::operator<< ( std::ostream &  out,
Rectangles const &  value 
)
std::ostream& mir::geometry::operator<< ( std::ostream &  out,
Displacement const &  value 
)
inline
std::ostream& mir::geometry::operator<< ( std::ostream &  out,
Rectangle const &  value 
)
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

Copyright © 2012,2013 Canonical Ltd.
Generated on Wed Oct 30 18:52:19 UTC 2013