Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <Geometry.h>
Public Types | |
typedef CSizeGen< T > | this_type |
Public Member Functions | |
CSizeGen () noexcept=default | |
CSizeGen (T width, T height) | |
T | Width () const |
T | Height () const |
void | SetWidth (T width) |
void | SetHeight (T height) |
void | Set (T width, T height) |
bool | IsZero () const |
T | Area () const |
CPointGen< T > | ToPoint () const |
template<class U > | |
CSizeGen (const CSizeGen< U > &rhs) | |
this_type | operator+ (const this_type &size) const |
this_type & | operator+= (const this_type &size) |
this_type | operator- (const this_type &size) const |
this_type & | operator-= (const this_type &size) |
this_type | operator* (T factor) const |
this_type & | operator*= (T factor) |
this_type | operator/ (T factor) const |
this_type & | operator/= (T factor) |
Generic two-dimensional size representation
Class invariant: width and height are both non-negative Throws std::out_of_range if invariant would be violated. The class is exception-safe. If modification would violate the invariant, the size is not changed.
|
defaultnoexcept |
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |