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

#include <LayoutSize.h>

Public Member Functions

 LayoutSize ()
 
 LayoutSize (const IntSize &size)
 
 LayoutSize (LayoutUnit width, LayoutUnit height)
 
 LayoutSize (const FloatSize &size)
 
LayoutUnit width () const
 
LayoutUnit height () const
 
void setWidth (LayoutUnit width)
 
void setHeight (LayoutUnit height)
 
bool isEmpty () const
 
bool isZero () const
 
float aspectRatio () const
 
void expand (LayoutUnit width, LayoutUnit height)
 
void shrink (LayoutUnit width, LayoutUnit height)
 
void scale (float scale)
 
void scale (float widthScale, float heightScale)
 
LayoutSize constrainedBetween (const LayoutSize &min, const LayoutSize &max) const
 
LayoutSize expandedTo (const LayoutSize &other) const
 
LayoutSize shrunkTo (const LayoutSize &other) const
 
void clampNegativeToZero ()
 
void clampToMinimumSize (const LayoutSize &minimumSize)
 
LayoutSize transposedSize () const
 
 operator FloatSize () const
 
LayoutSize fitToAspectRatio (const LayoutSize &aspectRatio, AspectRatioFit fit) const
 
 LayoutSize ()
 
 LayoutSize (const IntSize &size)
 
 LayoutSize (LayoutUnit width, LayoutUnit height)
 
 LayoutSize (const FloatSize &size)
 
LayoutUnit width () const
 
LayoutUnit height () const
 
void setWidth (LayoutUnit width)
 
void setHeight (LayoutUnit height)
 
bool isEmpty () const
 
bool isZero () const
 
float aspectRatio () const
 
void expand (LayoutUnit width, LayoutUnit height)
 
void shrink (LayoutUnit width, LayoutUnit height)
 
void scale (float scale)
 
void scale (float widthScale, float heightScale)
 
LayoutSize constrainedBetween (const LayoutSize &min, const LayoutSize &max) const
 
LayoutSize expandedTo (const LayoutSize &other) const
 
LayoutSize shrunkTo (const LayoutSize &other) const
 
void clampNegativeToZero ()
 
void clampToMinimumSize (const LayoutSize &minimumSize)
 
LayoutSize transposedSize () const
 
 operator FloatSize () const
 
LayoutSize fitToAspectRatio (const LayoutSize &aspectRatio, AspectRatioFit fit) const
 

Constructor & Destructor Documentation

◆ LayoutSize() [1/8]

WebCore::LayoutSize::LayoutSize ( )
inline

◆ LayoutSize() [2/8]

WebCore::LayoutSize::LayoutSize ( const IntSize size)
inline

◆ LayoutSize() [3/8]

WebCore::LayoutSize::LayoutSize ( LayoutUnit  width,
LayoutUnit  height 
)
inline

◆ LayoutSize() [4/8]

WebCore::LayoutSize::LayoutSize ( const FloatSize size)
inlineexplicit

◆ LayoutSize() [5/8]

WebCore::LayoutSize::LayoutSize ( )
inline

◆ LayoutSize() [6/8]

WebCore::LayoutSize::LayoutSize ( const IntSize size)
inline

◆ LayoutSize() [7/8]

WebCore::LayoutSize::LayoutSize ( LayoutUnit  width,
LayoutUnit  height 
)
inline

◆ LayoutSize() [8/8]

WebCore::LayoutSize::LayoutSize ( const FloatSize size)
inlineexplicit

Member Function Documentation

◆ aspectRatio() [1/2]

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

◆ aspectRatio() [2/2]

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

◆ clampNegativeToZero() [1/2]

void WebCore::LayoutSize::clampNegativeToZero ( )
inline

◆ clampNegativeToZero() [2/2]

void WebCore::LayoutSize::clampNegativeToZero ( )
inline

◆ clampToMinimumSize() [1/2]

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

◆ clampToMinimumSize() [2/2]

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

◆ constrainedBetween() [1/2]

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

◆ constrainedBetween() [2/2]

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

◆ expand() [1/2]

void WebCore::LayoutSize::expand ( LayoutUnit  width,
LayoutUnit  height 
)
inline

◆ expand() [2/2]

void WebCore::LayoutSize::expand ( LayoutUnit  width,
LayoutUnit  height 
)
inline

◆ expandedTo() [1/2]

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

◆ expandedTo() [2/2]

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

◆ fitToAspectRatio() [1/2]

LayoutSize WebCore::LayoutSize::fitToAspectRatio ( const LayoutSize aspectRatio,
AspectRatioFit  fit 
) const
inline

◆ fitToAspectRatio() [2/2]

LayoutSize WebCore::LayoutSize::fitToAspectRatio ( const LayoutSize aspectRatio,
AspectRatioFit  fit 
) const
inline

◆ height() [1/2]

LayoutUnit WebCore::LayoutSize::height ( ) const
inline

◆ height() [2/2]

LayoutUnit WebCore::LayoutSize::height ( ) const
inline

◆ isEmpty() [1/2]

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

◆ isEmpty() [2/2]

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

◆ isZero() [1/2]

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

◆ isZero() [2/2]

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

◆ operator FloatSize() [1/2]

WebCore::LayoutSize::operator FloatSize ( ) const
inline

◆ operator FloatSize() [2/2]

WebCore::LayoutSize::operator FloatSize ( ) const
inline

◆ scale() [1/4]

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

◆ scale() [2/4]

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

◆ scale() [3/4]

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

◆ scale() [4/4]

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

◆ setHeight() [1/2]

void WebCore::LayoutSize::setHeight ( LayoutUnit  height)
inline

◆ setHeight() [2/2]

void WebCore::LayoutSize::setHeight ( LayoutUnit  height)
inline

◆ setWidth() [1/2]

void WebCore::LayoutSize::setWidth ( LayoutUnit  width)
inline

◆ setWidth() [2/2]

void WebCore::LayoutSize::setWidth ( LayoutUnit  width)
inline

◆ shrink() [1/2]

void WebCore::LayoutSize::shrink ( LayoutUnit  width,
LayoutUnit  height 
)
inline

◆ shrink() [2/2]

void WebCore::LayoutSize::shrink ( LayoutUnit  width,
LayoutUnit  height 
)
inline

◆ shrunkTo() [1/2]

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

◆ shrunkTo() [2/2]

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

◆ transposedSize() [1/2]

LayoutSize WebCore::LayoutSize::transposedSize ( ) const
inline

◆ transposedSize() [2/2]

LayoutSize WebCore::LayoutSize::transposedSize ( ) const
inline

◆ width() [1/2]

LayoutUnit WebCore::LayoutSize::width ( ) const
inline

◆ width() [2/2]

LayoutUnit WebCore::LayoutSize::width ( ) const
inline

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