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

#include <IntPoint.h>

Public Member Functions

 IntPoint ()
 
 IntPoint (int x, int y)
 
WEBCORE_EXPORT IntPoint (const IntSize &size)
 
WEBCORE_EXPORT IntPoint (const FloatPoint &)
 
bool isZero () const
 
int x () const
 
int y () const
 
void setX (int x)
 
void setY (int y)
 
void move (const IntSize &s)
 
void moveBy (const IntPoint &offset)
 
void move (int dx, int dy)
 
void scale (float sx, float sy)
 
void scale (float scale)
 
IntPoint expandedTo (const IntPoint &other) const
 
IntPoint shrunkTo (const IntPoint &other) const
 
WEBCORE_EXPORT IntPoint constrainedBetween (const IntPoint &min, const IntPoint &max) const
 
int distanceSquaredToPoint (const IntPoint &) const
 
void clampNegativeToZero ()
 
IntPoint transposedPoint () const
 
 IntPoint ()
 
 IntPoint (int x, int y)
 
WEBCORE_EXPORT IntPoint (const IntSize &size)
 
WEBCORE_EXPORT IntPoint (const FloatPoint &)
 
bool isZero () const
 
int x () const
 
int y () const
 
void setX (int x)
 
void setY (int y)
 
void move (const IntSize &s)
 
void moveBy (const IntPoint &offset)
 
void move (int dx, int dy)
 
void scale (float sx, float sy)
 
void scale (float scale)
 
IntPoint expandedTo (const IntPoint &other) const
 
IntPoint shrunkTo (const IntPoint &other) const
 
WEBCORE_EXPORT IntPoint constrainedBetween (const IntPoint &min, const IntPoint &max) const
 
int distanceSquaredToPoint (const IntPoint &) const
 
void clampNegativeToZero ()
 
IntPoint transposedPoint () const
 

Static Public Member Functions

static IntPoint zero ()
 
static IntPoint zero ()
 

Constructor & Destructor Documentation

◆ IntPoint() [1/8]

WebCore::IntPoint::IntPoint ( )
inline

◆ IntPoint() [2/8]

WebCore::IntPoint::IntPoint ( int  x,
int  y 
)
inline

◆ IntPoint() [3/8]

WEBCORE_EXPORT WebCore::IntPoint::IntPoint ( const IntSize size)
inlineexplicit

◆ IntPoint() [4/8]

WebCore::IntPoint::IntPoint ( const FloatPoint p)
explicit

◆ IntPoint() [5/8]

WebCore::IntPoint::IntPoint ( )
inline

◆ IntPoint() [6/8]

WebCore::IntPoint::IntPoint ( int  x,
int  y 
)
inline

◆ IntPoint() [7/8]

WEBCORE_EXPORT WebCore::IntPoint::IntPoint ( const IntSize size)
inlineexplicit

◆ IntPoint() [8/8]

WEBCORE_EXPORT WebCore::IntPoint::IntPoint ( const FloatPoint )
explicit

Member Function Documentation

◆ clampNegativeToZero() [1/2]

void WebCore::IntPoint::clampNegativeToZero ( )
inline

◆ clampNegativeToZero() [2/2]

void WebCore::IntPoint::clampNegativeToZero ( )
inline

◆ constrainedBetween() [1/2]

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

◆ constrainedBetween() [2/2]

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

◆ distanceSquaredToPoint() [1/2]

int WebCore::IntPoint::distanceSquaredToPoint ( const IntPoint ) const

◆ distanceSquaredToPoint() [2/2]

int WebCore::IntPoint::distanceSquaredToPoint ( const IntPoint point) const
inline

◆ expandedTo() [1/2]

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

◆ expandedTo() [2/2]

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

◆ isZero() [1/2]

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

◆ isZero() [2/2]

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

◆ move() [1/4]

void WebCore::IntPoint::move ( const IntSize s)
inline

◆ move() [2/4]

void WebCore::IntPoint::move ( const IntSize s)
inline

◆ move() [3/4]

void WebCore::IntPoint::move ( int  dx,
int  dy 
)
inline

◆ move() [4/4]

void WebCore::IntPoint::move ( int  dx,
int  dy 
)
inline

◆ moveBy() [1/2]

void WebCore::IntPoint::moveBy ( const IntPoint offset)
inline

◆ moveBy() [2/2]

void WebCore::IntPoint::moveBy ( const IntPoint offset)
inline

◆ scale() [1/4]

void WebCore::IntPoint::scale ( float  sx,
float  sy 
)
inline

◆ scale() [2/4]

void WebCore::IntPoint::scale ( float  sx,
float  sy 
)
inline

◆ scale() [3/4]

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

◆ scale() [4/4]

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

◆ setX() [1/2]

void WebCore::IntPoint::setX ( int  x)
inline

◆ setX() [2/2]

void WebCore::IntPoint::setX ( int  x)
inline

◆ setY() [1/2]

void WebCore::IntPoint::setY ( int  y)
inline

◆ setY() [2/2]

void WebCore::IntPoint::setY ( int  y)
inline

◆ shrunkTo() [1/2]

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

◆ shrunkTo() [2/2]

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

◆ transposedPoint() [1/2]

IntPoint WebCore::IntPoint::transposedPoint ( ) const
inline

◆ transposedPoint() [2/2]

IntPoint WebCore::IntPoint::transposedPoint ( ) const
inline

◆ x() [1/2]

int WebCore::IntPoint::x ( ) const
inline

◆ x() [2/2]

int WebCore::IntPoint::x ( ) const
inline

◆ y() [1/2]

int WebCore::IntPoint::y ( ) const
inline

◆ y() [2/2]

int WebCore::IntPoint::y ( ) const
inline

◆ zero() [1/2]

static IntPoint WebCore::IntPoint::zero ( )
inlinestatic

◆ zero() [2/2]

static IntPoint WebCore::IntPoint::zero ( )
inlinestatic

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