webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | List of all members
WebCore::IntSize Class Reference

#include <IntSize.h>

Public Member Functions

 IntSize ()
 
 IntSize (int width, int height)
 
WEBCORE_EXPORT IntSize (const FloatSize &)
 
int width () const
 
int height () const
 
void setWidth (int width)
 
void setHeight (int height)
 
bool isEmpty () const
 
bool isZero () const
 
float aspectRatio () const
 
void expand (int width, int height)
 
void contract (int width, int height)
 
void scale (float widthScale, float heightScale)
 
void scale (float scale)
 
IntSize expandedTo (const IntSize &other) const
 
IntSize shrunkTo (const IntSize &other) const
 
void clampNegativeToZero ()
 
void clampToMinimumSize (const IntSize &minimumSize)
 
WEBCORE_EXPORT IntSize constrainedBetween (const IntSize &min, const IntSize &max) const
 
template<typename T = WTF::CrashOnOverflow>
Checked< unsigned, Tarea () const
 
size_t unclampedArea () const
 
int diagonalLengthSquared () const
 
IntSize transposedSize () const
 
 IntSize ()
 
 IntSize (int width, int height)
 
WEBCORE_EXPORT IntSize (const FloatSize &)
 
int width () const
 
int height () const
 
void setWidth (int width)
 
void setHeight (int height)
 
bool isEmpty () const
 
bool isZero () const
 
float aspectRatio () const
 
void expand (int width, int height)
 
void contract (int width, int height)
 
void scale (float widthScale, float heightScale)
 
void scale (float scale)
 
IntSize expandedTo (const IntSize &other) const
 
IntSize shrunkTo (const IntSize &other) const
 
void clampNegativeToZero ()
 
void clampToMinimumSize (const IntSize &minimumSize)
 
WEBCORE_EXPORT IntSize constrainedBetween (const IntSize &min, const IntSize &max) const
 
template<typename T = WTF::CrashOnOverflow>
Checked< unsigned, Tarea () const
 
size_t unclampedArea () const
 
int diagonalLengthSquared () const
 
IntSize transposedSize () const
 

Constructor & Destructor Documentation

◆ IntSize() [1/6]

WebCore::IntSize::IntSize ( )
inline

◆ IntSize() [2/6]

WebCore::IntSize::IntSize ( int  width,
int  height 
)
inline

◆ IntSize() [3/6]

WebCore::IntSize::IntSize ( const FloatSize s)
explicit

◆ IntSize() [4/6]

WebCore::IntSize::IntSize ( )
inline

◆ IntSize() [5/6]

WebCore::IntSize::IntSize ( int  width,
int  height 
)
inline

◆ IntSize() [6/6]

WEBCORE_EXPORT WebCore::IntSize::IntSize ( const FloatSize )
explicit

Member Function Documentation

◆ area() [1/2]

template<typename T = WTF::CrashOnOverflow>
Checked<unsigned, T> WebCore::IntSize::area ( ) const
inline

◆ area() [2/2]

template<typename T = WTF::CrashOnOverflow>
Checked<unsigned, T> WebCore::IntSize::area ( ) const
inline

◆ aspectRatio() [1/2]

float WebCore::IntSize::aspectRatio ( ) const
inline

◆ aspectRatio() [2/2]

float WebCore::IntSize::aspectRatio ( ) const
inline

◆ clampNegativeToZero() [1/2]

void WebCore::IntSize::clampNegativeToZero ( )
inline

◆ clampNegativeToZero() [2/2]

void WebCore::IntSize::clampNegativeToZero ( )
inline

◆ clampToMinimumSize() [1/2]

void WebCore::IntSize::clampToMinimumSize ( const IntSize minimumSize)
inline

◆ clampToMinimumSize() [2/2]

void WebCore::IntSize::clampToMinimumSize ( const IntSize minimumSize)
inline

◆ constrainedBetween() [1/2]

IntSize WebCore::IntSize::constrainedBetween ( const IntSize min,
const IntSize max 
) const

◆ constrainedBetween() [2/2]

WEBCORE_EXPORT IntSize WebCore::IntSize::constrainedBetween ( const IntSize min,
const IntSize max 
) const

◆ contract() [1/2]

void WebCore::IntSize::contract ( int  width,
int  height 
)
inline

◆ contract() [2/2]

void WebCore::IntSize::contract ( int  width,
int  height 
)
inline

◆ diagonalLengthSquared() [1/2]

int WebCore::IntSize::diagonalLengthSquared ( ) const
inline

◆ diagonalLengthSquared() [2/2]

int WebCore::IntSize::diagonalLengthSquared ( ) const
inline

◆ expand() [1/2]

void WebCore::IntSize::expand ( int  width,
int  height 
)
inline

◆ expand() [2/2]

void WebCore::IntSize::expand ( int  width,
int  height 
)
inline

◆ expandedTo() [1/2]

IntSize WebCore::IntSize::expandedTo ( const IntSize other) const
inline

◆ expandedTo() [2/2]

IntSize WebCore::IntSize::expandedTo ( const IntSize other) const
inline

◆ height() [1/2]

int WebCore::IntSize::height ( ) const
inline

◆ height() [2/2]

int WebCore::IntSize::height ( ) const
inline

◆ isEmpty() [1/2]

bool WebCore::IntSize::isEmpty ( void  ) const
inline

◆ isEmpty() [2/2]

bool WebCore::IntSize::isEmpty ( void  ) const
inline

◆ isZero() [1/2]

bool WebCore::IntSize::isZero ( ) const
inline

◆ isZero() [2/2]

bool WebCore::IntSize::isZero ( ) const
inline

◆ scale() [1/4]

void WebCore::IntSize::scale ( float  widthScale,
float  heightScale 
)
inline

◆ scale() [2/4]

void WebCore::IntSize::scale ( float  widthScale,
float  heightScale 
)
inline

◆ scale() [3/4]

void WebCore::IntSize::scale ( float  scale)
inline

◆ scale() [4/4]

void WebCore::IntSize::scale ( float  scale)
inline

◆ setHeight() [1/2]

void WebCore::IntSize::setHeight ( int  height)
inline

◆ setHeight() [2/2]

void WebCore::IntSize::setHeight ( int  height)
inline

◆ setWidth() [1/2]

void WebCore::IntSize::setWidth ( int  width)
inline

◆ setWidth() [2/2]

void WebCore::IntSize::setWidth ( int  width)
inline

◆ shrunkTo() [1/2]

IntSize WebCore::IntSize::shrunkTo ( const IntSize other) const
inline

◆ shrunkTo() [2/2]

IntSize WebCore::IntSize::shrunkTo ( const IntSize other) const
inline

◆ transposedSize() [1/2]

IntSize WebCore::IntSize::transposedSize ( ) const
inline

◆ transposedSize() [2/2]

IntSize WebCore::IntSize::transposedSize ( ) const
inline

◆ unclampedArea() [1/2]

size_t WebCore::IntSize::unclampedArea ( ) const
inline

◆ unclampedArea() [2/2]

size_t WebCore::IntSize::unclampedArea ( ) const
inline

◆ width() [1/2]

int WebCore::IntSize::width ( ) const
inline

◆ width() [2/2]

int WebCore::IntSize::width ( ) const
inline

The documentation for this class was generated from the following files: