19 #ifndef MIR_GEOMETRY_SIZE_H_
20 #define MIR_GEOMETRY_SIZE_H_
36 template<
typename W
idthType,
typename HeightType>
53 std::ostream&
operator<<(std::ostream& out, Size
const& value);
55 template<
typename Scalar>
61 template<
typename Scalar>
67 #ifdef MIR_GEOMETRY_DISPLACEMENT_H_
68 inline Displacement as_displacement(Size
const&
size)
70 return Displacement{size.width.as_int(), size.height.as_int()};
73 inline Size as_size(Displacement
const& disp)
75 return Size{disp.dx.as_int(), disp.dy.as_int()};
All things Mir.
Definition: atomic_callback.h:25
Width operator*(Scalar scale, Width const &w)
Definition: dimensions.h:148
Size & operator=(Size const &)=default
bool operator!=(Displacement const &lhs, Displacement const &rhs)
Definition: displacement.h:56
bool operator==(Displacement const &lhs, Displacement const &rhs)
Definition: displacement.h:51
std::ostream & operator<<(std::ostream &out, Displacement const &value)
Definition: ostream.cpp:28
Size(WidthType &&width, HeightType &&height)
Definition: size.h:37
Height height
Definition: size.h:40
Width width
Definition: size.h:39
Size()
Definition: size.h:32
int const size
Definition: make_socket_rpc_channel.cpp:51