DISTRHO Plugin Framework
|
#include <Geometry.hpp>
Public Member Functions | |
Size () noexcept | |
Size (const T &width, const T &height) noexcept | |
Size (const Size< T > &size) noexcept | |
const T & | getWidth () const noexcept |
const T & | getHeight () const noexcept |
void | setWidth (const T &width) noexcept |
void | setHeight (const T &height) noexcept |
void | setSize (const T &width, const T &height) noexcept |
void | setSize (const Size< T > &size) noexcept |
void | growBy (double multiplier) noexcept |
void | shrinkBy (double divider) noexcept |
bool | isNull () const noexcept |
bool | isNotNull () const noexcept |
bool | isValid () const noexcept |
bool | isInvalid () const noexcept |
Size< int > | toInt () const noexcept |
Size< T > | operator+ (const Size< T > &size) noexcept |
Size< T > | operator- (const Size< T > &size) noexcept |
Size< T > & | operator= (const Size< T > &size) noexcept |
Size< T > & | operator+= (const Size< T > &size) noexcept |
Size< T > & | operator-= (const Size< T > &size) noexcept |
Size< T > & | operator*= (double m) noexcept |
Size< T > & | operator/= (double d) noexcept |
Size< T > | operator* (double m) const noexcept |
Size< T > | operator/ (double m) const noexcept |
bool | operator== (const Size< T > &size) const noexcept |
bool | operator!= (const Size< T > &size) const noexcept |
Friends | |
template<typename > | |
class | Rectangle |
DGL Size class.
This class describes a size, defined by a width and height value.
Constructor using custom width and height values.
Constructor using another Size class values.
|
noexcept |
Get width.
|
noexcept |
Get height.
|
noexcept |
Set width.
|
noexcept |
Set height.
|
noexcept |
Set size to width and height.
|
noexcept |
Grow size by multiplier.
|
noexcept |
Shrink size by divider.
|
noexcept |
Return true if size is null (0x0). An null size is also invalid.
|
noexcept |
Return true if size is not null (0x0). A non-null size is still invalid if its width or height are negative.
|
noexcept |
Return true if size is valid (width and height are higher than zero).
|
noexcept |
Return true if size is invalid (width or height are lower or equal to zero). An invalid size might not be null under some circumstances.