Mir
|
Basic geometry types. Types for dimensions, displacements, etc. and the operations that they support. More...
Namespaces | |
namespace | generic |
Classes | |
struct | DeltaXTag |
struct | DeltaYTag |
struct | HeightTag |
class | Rectangles |
A collection of rectangles (with possible duplicates). More... | |
struct | StrideTag |
struct | WidthTag |
These tag types determine what type of dimension a value holds and what operations are possible with it. They are only used as template parameters, are never instantiated and should only require forward declarations, but some compiler versions seem to fail if they aren't given real declarations. More... | |
struct | XTag |
struct | YTag |
Typedefs | |
using | Width = generic::Width< int > |
using | Height = generic::Height< int > |
using | X = generic::X< int > |
using | Y = generic::Y< int > |
using | DeltaX = generic::DeltaX< int > |
using | DeltaY = generic::DeltaY< int > |
using | WidthF = generic::Width< float > |
using | HeightF = generic::Height< float > |
using | XF = generic::X< float > |
using | YF = generic::Y< float > |
using | DeltaXF = generic::DeltaX< float > |
using | DeltaYF = generic::DeltaY< float > |
using | Stride = generic::Value< int, StrideTag > |
using | Point = generic::Point< int > |
using | Size = generic::Size< int > |
using | Displacement = generic::Displacement< int > |
using | Rectangle = generic::Rectangle< int > |
using | PointF = generic::Point< float > |
using | SizeF = generic::Size< float > |
using | DisplacementF = generic::Displacement< float > |
using | RectangleF = generic::Rectangle< int > |
Functions | |
template<typename T > | |
constexpr generic::Width< T > | as_width (generic::DeltaX< T > const &dx) |
template<typename T > | |
constexpr generic::Height< T > | as_height (generic::DeltaY< T > const &dy) |
template<typename T > | |
constexpr generic::X< T > | as_x (generic::DeltaX< T > const &dx) |
template<typename T > | |
constexpr generic::Y< T > | as_y (generic::DeltaY< T > const &dy) |
template<typename T > | |
constexpr generic::DeltaX< T > | as_delta (generic::X< T > const &x) |
template<typename T > | |
constexpr generic::DeltaY< T > | as_delta (generic::Y< T > const &y) |
template<typename T > | |
constexpr generic::X< T > | as_x (generic::Width< T > const &w) |
template<typename T > | |
constexpr generic::Y< T > | as_y (generic::Height< T > const &h) |
template<typename T > | |
constexpr generic::Width< T > | as_width (generic::X< T > const &x) |
template<typename T > | |
constexpr generic::Height< T > | as_height (generic::Y< T > const &y) |
template<typename T > | |
constexpr generic::DeltaX< T > | as_delta (generic::Width< T > const &w) |
template<typename T > | |
constexpr generic::DeltaY< T > | as_delta (generic::Height< T > const &h) |
std::ostream & | operator<< (std::ostream &out, Rectangles const &value) |
Basic geometry types. Types for dimensions, displacements, etc. and the operations that they support.
using mir::geometry::DeltaX = typedef generic::DeltaX<int> |
using mir::geometry::DeltaXF = typedef generic::DeltaX<float> |
using mir::geometry::DeltaY = typedef generic::DeltaY<int> |
using mir::geometry::DeltaYF = typedef generic::DeltaY<float> |
using mir::geometry::Displacement = typedef generic::Displacement<int> |
using mir::geometry::DisplacementF = typedef generic::Displacement<float> |
using mir::geometry::Height = typedef generic::Height<int> |
using mir::geometry::HeightF = typedef generic::Height<float> |
using mir::geometry::Point = typedef generic::Point<int> |
using mir::geometry::PointF = typedef generic::Point<float> |
using mir::geometry::Rectangle = typedef generic::Rectangle<int> |
using mir::geometry::RectangleF = typedef generic::Rectangle<int> |
using mir::geometry::Size = typedef generic::Size<int> |
using mir::geometry::SizeF = typedef generic::Size<float> |
using mir::geometry::Stride = typedef generic::Value<int, StrideTag> |
using mir::geometry::Width = typedef generic::Width<int> |
using mir::geometry::WidthF = typedef generic::Width<float> |
using mir::geometry::X = typedef generic::X<int> |
using mir::geometry::XF = typedef generic::X<float> |
using mir::geometry::Y = typedef generic::Y<int> |
using mir::geometry::YF = typedef generic::Y<float> |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
std::ostream & mir::geometry::operator<< | ( | std::ostream & | out, |
Rectangles const & | value | ||
) |
Copyright © 2012-2023
Canonical Ltd.
Generated on Tue 2 May 10:01:24 UTC 2023
This documentation is licensed under the GPL version 2 or 3.