#include <IntSize.h>
|
| | 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, T > | area () 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, T > | area () const |
| |
| size_t | unclampedArea () const |
| |
| int | diagonalLengthSquared () const |
| |
| IntSize | transposedSize () const |
| |
◆ 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]
◆ 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]
◆ constrainedBetween() [2/2]
◆ 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]
◆ expandedTo() [2/2]
◆ 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]
◆ shrunkTo() [2/2]
◆ 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:
- DerivedData/WebKit/Build/Products/Debug/WebCore.framework/Versions/A/PrivateHeaders/IntSize.h
- Source/WebCore/platform/graphics/IntSize.cpp