Otclient
14/8/2020
|
#include <point.h>
Public Member Functions | |
TSize () | |
TSize (T width, T height) | |
TSize (const TSize< T > &other) | |
TPoint< T > | toPoint () const |
bool | isNull () const |
bool | isEmpty () const |
bool | isValid () const |
int | width () const |
int | height () const |
void | resize (T w, T h) |
void | setWidth (T w) |
void | setHeight (T h) |
TSize< T > | operator- () const |
TSize< T > | operator+ (const TSize< T > &other) const |
TSize< T > & | operator+= (const TSize< T > &other) |
TSize< T > | operator- (const TSize< T > &other) const |
TSize< T > & | operator-= (const TSize< T > &other) |
TSize< T > | operator* (const TSize< T > &other) const |
TSize< T > & | operator*= (const TSize< T > &other) |
TSize< T > | operator/ (const TSize< T > &other) const |
TSize< T > & | operator/= (const TSize< T > &other) |
TSize< T > | operator* (const float v) const |
TSize< T > & | operator*= (const float v) |
TSize< T > | operator/ (const float v) const |
TSize< T > & | operator/= (const float v) |
bool | operator<= (const TSize< T > &other) const |
bool | operator>= (const TSize< T > &other) const |
bool | operator< (const TSize< T > &other) const |
bool | operator> (const TSize< T > &other) const |
TSize< T > & | operator= (const TSize< T > &other) |
bool | operator== (const TSize< T > &other) const |
bool | operator!= (const TSize< T > &other) const |
TSize< T > | expandedTo (const TSize< T > &other) const |
TSize< T > | boundedTo (const TSize< T > &other) const |
void | scale (const TSize< T > &s, Fw::AspectRatioMode mode) |
void | scale (int w, int h, Fw::AspectRatioMode mode) |
float | ratio () const |
T | area () const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |