LibreOffice Module tools (master) 1
|
#include <gen.hxx>
Public Member Functions | |
constexpr | Size () |
constexpr | Size (tools::Long nWidth, tools::Long nHeight) |
constexpr tools::Long | Width () const |
constexpr tools::Long | Height () const |
tools::Long | AdjustWidth (tools::Long n) |
tools::Long | AdjustHeight (tools::Long n) |
constexpr tools::Long | getWidth () const |
constexpr tools::Long | getHeight () const |
void | setWidth (tools::Long nWidth) |
void | setHeight (tools::Long nHeight) |
bool | IsEmpty () const |
void | extendBy (tools::Long x, tools::Long y) |
Pair const & | toPair () const |
Pair & | toPair () |
Size & | operator+= (const Size &rSize) |
Size & | operator-= (const Size &rSize) |
Size & | operator*= (const tools::Long nVal) |
Size & | operator/= (const tools::Long nVal) |
constexpr Size | scale (sal_Int64 nMulX, sal_Int64 nDivX, sal_Int64 nMulY, sal_Int64 nDivY) const |
TOOLS_DLLPUBLIC rtl::OString | toString () const |
TOOLS_DLLPUBLIC size_t | GetHashValue () const |
Friends | |
Size | operator+ (const Size &rVal1, const Size &rVal2) |
Size | operator- (const Size &rVal1, const Size &rVal2) |
Size | operator* (const Size &rVal1, const tools::Long nVal2) |
Size | operator/ (const Size &rVal1, const tools::Long nVal2) |
Additional Inherited Members | |
Protected Member Functions inherited from Pair | |
constexpr | Pair () |
constexpr | Pair (tools::Long nA, tools::Long nB) |
tools::Long | A () const |
tools::Long | B () const |
tools::Long & | A () |
tools::Long & | B () |
TOOLS_DLLPUBLIC rtl::OString | toString () const |
TOOLS_DLLPUBLIC size_t | GetHashValue () const |
Protected Attributes inherited from Pair | |
tools::Long | mnA |
tools::Long | mnB |
|
inlineconstexpr |
|
inlineconstexpr |
|
inline |
|
inline |
|
inline |
|
inlineconstexpr |
Definition at line 224 of file gen.hxx.
References Height.
Referenced by tools::GenericTypeSerializer::writeSize().
|
inlineconstexpr |
Definition at line 223 of file gen.hxx.
References Width.
Referenced by tools::GenericTypeSerializer::writeSize().
|
inlineconstexpr |
Definition at line 218 of file gen.hxx.
Referenced by Point::Move(), tools::Rectangle::Move(), tools::GenericTypeSerializer::readSize(), scale(), and tools::Rectangle::SetSize().
|
inline |
|
inline |
|
inlineconstexpr |
Definition at line 315 of file gen.hxx.
References o3tl::convert(), Height(), Size(), and Width().
Referenced by o3tl::convert().
|
inline |
Definition at line 226 of file gen.hxx.
Referenced by tools::GenericTypeSerializer::readSize().
|
inline |
Definition at line 225 of file gen.hxx.
Referenced by tools::GenericTypeSerializer::readSize().
|
inline |
Definition at line 236 of file gen.hxx.
Referenced by operator==().
|
inlineconstexpr |
Definition at line 217 of file gen.hxx.
Referenced by Point::Move(), tools::Rectangle::Move(), tools::GenericTypeSerializer::readSize(), tools::Rectangle::SaturatingSetSize(), scale(), and tools::Rectangle::SetSize().
|
friend |
|
friend |