Go to the documentation of this file.
19 #ifndef MIR_GEOMETRY_SIZE_H_
20 #define MIR_GEOMETRY_SIZE_H_
33 constexpr
Size() noexcept {}
34 constexpr
Size(
Size const&) noexcept =
default;
37 template<
typename W
idthType,
typename HeightType>
54 std::ostream&
operator<<(std::ostream& out, Size
const& value);
56 template<
typename Scalar>
62 template<
typename Scalar>
constexpr Size(WidthType &&width, HeightType &&height) noexcept
Definition: size.h:38
X x
Definition: point.h:39
constexpr bool operator==(Displacement const &lhs, Displacement const &rhs)
Definition: displacement.h:52
Definition: splash_session.h:24
Height height
Definition: size.h:41
Size & operator=(Size const &) noexcept=default
constexpr Size() noexcept
Definition: size.h:33
constexpr Width operator*(Scalar scale, Width const &w)
Definition: dimensions.h:162
constexpr bool operator!=(Displacement const &lhs, Displacement const &rhs)
Definition: displacement.h:57
Y y
Definition: point.h:40
constexpr Point as_point(Displacement const &disp)
Definition: displacement.h:126
constexpr Size as_size(Displacement const &disp)
Definition: displacement.h:116
std::ostream & operator<<(std::ostream &out, Displacement const &value)
Width width
Definition: size.h:40
constexpr int as_int() const
Definition: dimensions.h:53
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.