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

#include <FloatSize.h>

Public Member Functions

 FloatSize ()
 
 FloatSize (float width, float height)
 
WEBCORE_EXPORT FloatSize (const IntSize &)
 
float width () const
 
float height () const
 
void setWidth (float width)
 
void setHeight (float height)
 
bool isEmpty () const
 
WEBCORE_EXPORT bool isZero () const
 
bool isExpressibleAsIntSize () const
 
float aspectRatio () const
 
void expand (float width, float height)
 
void scale (float s)
 
void scale (float scaleX, float scaleY)
 
WEBCORE_EXPORT FloatSize constrainedBetween (const FloatSize &min, const FloatSize &max) const
 
FloatSize expandedTo (const FloatSize &other) const
 
FloatSize shrunkTo (const FloatSize &other) const
 
WEBCORE_EXPORT float diagonalLength () const
 
float diagonalLengthSquared () const
 
float area () const
 
FloatSize transposedSize () const
 
 FloatSize ()
 
 FloatSize (float width, float height)
 
WEBCORE_EXPORT FloatSize (const IntSize &)
 
float width () const
 
float height () const
 
void setWidth (float width)
 
void setHeight (float height)
 
bool isEmpty () const
 
WEBCORE_EXPORT bool isZero () const
 
bool isExpressibleAsIntSize () const
 
float aspectRatio () const
 
void expand (float width, float height)
 
void scale (float s)
 
void scale (float scaleX, float scaleY)
 
WEBCORE_EXPORT FloatSize constrainedBetween (const FloatSize &min, const FloatSize &max) const
 
FloatSize expandedTo (const FloatSize &other) const
 
FloatSize shrunkTo (const FloatSize &other) const
 
WEBCORE_EXPORT float diagonalLength () const
 
float diagonalLengthSquared () const
 
float area () const
 
FloatSize transposedSize () const
 

Static Public Member Functions

static FloatSize narrowPrecision (double width, double height)
 
static FloatSize narrowPrecision (double width, double height)
 

Constructor & Destructor Documentation

◆ FloatSize() [1/6]

WebCore::FloatSize::FloatSize ( )
inline

◆ FloatSize() [2/6]

WebCore::FloatSize::FloatSize ( float  width,
float  height 
)
inline

◆ FloatSize() [3/6]

WebCore::FloatSize::FloatSize ( const IntSize size)

◆ FloatSize() [4/6]

WebCore::FloatSize::FloatSize ( )
inline

◆ FloatSize() [5/6]

WebCore::FloatSize::FloatSize ( float  width,
float  height 
)
inline

◆ FloatSize() [6/6]

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

Member Function Documentation

◆ area() [1/2]

float WebCore::FloatSize::area ( ) const
inline

◆ area() [2/2]

float WebCore::FloatSize::area ( ) const
inline

◆ aspectRatio() [1/2]

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

◆ aspectRatio() [2/2]

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

◆ constrainedBetween() [1/2]

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

◆ constrainedBetween() [2/2]

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

◆ diagonalLength() [1/2]

float WebCore::FloatSize::diagonalLength ( ) const

◆ diagonalLength() [2/2]

WEBCORE_EXPORT float WebCore::FloatSize::diagonalLength ( ) const

◆ diagonalLengthSquared() [1/2]

float WebCore::FloatSize::diagonalLengthSquared ( ) const
inline

◆ diagonalLengthSquared() [2/2]

float WebCore::FloatSize::diagonalLengthSquared ( ) const
inline

◆ expand() [1/2]

void WebCore::FloatSize::expand ( float  width,
float  height 
)
inline

◆ expand() [2/2]

void WebCore::FloatSize::expand ( float  width,
float  height 
)
inline

◆ expandedTo() [1/2]

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

◆ expandedTo() [2/2]

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

◆ height() [1/2]

float WebCore::FloatSize::height ( ) const
inline

◆ height() [2/2]

float WebCore::FloatSize::height ( ) const
inline

◆ isEmpty() [1/2]

bool WebCore::FloatSize::isEmpty ( ) const
inline

◆ isEmpty() [2/2]

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

◆ isExpressibleAsIntSize() [1/2]

bool WebCore::FloatSize::isExpressibleAsIntSize ( ) const

◆ isExpressibleAsIntSize() [2/2]

bool WebCore::FloatSize::isExpressibleAsIntSize ( ) const

◆ isZero() [1/2]

WEBCORE_EXPORT bool WebCore::FloatSize::isZero ( ) const

◆ isZero() [2/2]

bool WebCore::FloatSize::isZero ( ) const

◆ narrowPrecision() [1/2]

static FloatSize WebCore::FloatSize::narrowPrecision ( double  width,
double  height 
)
static

◆ narrowPrecision() [2/2]

FloatSize WebCore::FloatSize::narrowPrecision ( double  width,
double  height 
)
static

◆ scale() [1/4]

void WebCore::FloatSize::scale ( float  s)
inline

◆ scale() [2/4]

void WebCore::FloatSize::scale ( float  s)
inline

◆ scale() [3/4]

void WebCore::FloatSize::scale ( float  scaleX,
float  scaleY 
)
inline

◆ scale() [4/4]

void WebCore::FloatSize::scale ( float  scaleX,
float  scaleY 
)
inline

◆ setHeight() [1/2]

void WebCore::FloatSize::setHeight ( float  height)
inline

◆ setHeight() [2/2]

void WebCore::FloatSize::setHeight ( float  height)
inline

◆ setWidth() [1/2]

void WebCore::FloatSize::setWidth ( float  width)
inline

◆ setWidth() [2/2]

void WebCore::FloatSize::setWidth ( float  width)
inline

◆ shrunkTo() [1/2]

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

◆ shrunkTo() [2/2]

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

◆ transposedSize() [1/2]

FloatSize WebCore::FloatSize::transposedSize ( ) const
inline

◆ transposedSize() [2/2]

FloatSize WebCore::FloatSize::transposedSize ( ) const
inline

◆ width() [1/2]

float WebCore::FloatSize::width ( ) const
inline

◆ width() [2/2]

float WebCore::FloatSize::width ( ) const
inline

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