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

#include <Length.h>

Public Member Functions

 Length (LengthType=Auto)
 
 Length (int value, LengthType, bool hasQuirk=false)
 
 Length (LayoutUnit value, LengthType, bool hasQuirk=false)
 
 Length (float value, LengthType, bool hasQuirk=false)
 
 Length (double value, LengthType, bool hasQuirk=false)
 
WEBCORE_EXPORT Length (Ref< CalculationValue > &&)
 
 Length (const Length &)
 
 Length (Length &&)
 
Lengthoperator= (const Length &)
 
Lengthoperator= (Length &&)
 
 ~Length ()
 
void setValue (LengthType, int value)
 
void setValue (LengthType, float value)
 
void setValue (LengthType, LayoutUnit value)
 
Lengthoperator*= (float)
 
void setHasQuirk (bool)
 
bool operator== (const Length &) const
 
bool operator!= (const Length &) const
 
float value () const
 
int intValue () const
 
float percent () const
 
CalculationValuecalculationValue () const
 
LengthType type () const
 
bool isAuto () const
 
bool isCalculated () const
 
bool isFixed () const
 
bool isMaxContent () const
 
bool isMinContent () const
 
bool isPercent () const
 
bool isRelative () const
 
bool isUndefined () const
 
bool isFillAvailable () const
 
bool isFitContent () const
 
bool hasQuirk () const
 
bool isZero () const
 
bool isPositive () const
 
bool isNegative () const
 
bool isPercentOrCalculated () const
 
bool isIntrinsic () const
 
bool isIntrinsicOrAuto () const
 
bool isSpecified () const
 
bool isSpecifiedOrIntrinsic () const
 
float nonNanCalculatedValue (int maxValue) const
 
 Length (LengthType=Auto)
 
 Length (int value, LengthType, bool hasQuirk=false)
 
 Length (LayoutUnit value, LengthType, bool hasQuirk=false)
 
 Length (float value, LengthType, bool hasQuirk=false)
 
 Length (double value, LengthType, bool hasQuirk=false)
 
WEBCORE_EXPORT Length (Ref< CalculationValue > &&)
 
 Length (const Length &)
 
 Length (Length &&)
 
Lengthoperator= (const Length &)
 
Lengthoperator= (Length &&)
 
 ~Length ()
 
void setValue (LengthType, int value)
 
void setValue (LengthType, float value)
 
void setValue (LengthType, LayoutUnit value)
 
Lengthoperator*= (float)
 
void setHasQuirk (bool)
 
bool operator== (const Length &) const
 
bool operator!= (const Length &) const
 
float value () const
 
int intValue () const
 
float percent () const
 
CalculationValuecalculationValue () const
 
LengthType type () const
 
bool isAuto () const
 
bool isCalculated () const
 
bool isFixed () const
 
bool isMaxContent () const
 
bool isMinContent () const
 
bool isPercent () const
 
bool isRelative () const
 
bool isUndefined () const
 
bool isFillAvailable () const
 
bool isFitContent () const
 
bool hasQuirk () const
 
bool isZero () const
 
bool isPositive () const
 
bool isNegative () const
 
bool isPercentOrCalculated () const
 
bool isIntrinsic () const
 
bool isIntrinsicOrAuto () const
 
bool isSpecified () const
 
bool isSpecifiedOrIntrinsic () const
 
float nonNanCalculatedValue (int maxValue) const
 

Public Attributes

 WTF_MAKE_FAST_ALLOCATED
 
int m_intValue
 
float m_floatValue
 
unsigned m_calculationValueHandle
 

Constructor & Destructor Documentation

◆ Length() [1/16]

WebCore::Length::Length ( LengthType  type = Auto)
inline

◆ Length() [2/16]

WebCore::Length::Length ( int  value,
LengthType  type,
bool  hasQuirk = false 
)
inline

◆ Length() [3/16]

WebCore::Length::Length ( LayoutUnit  value,
LengthType  type,
bool  hasQuirk = false 
)
inline

◆ Length() [4/16]

WebCore::Length::Length ( float  value,
LengthType  type,
bool  hasQuirk = false 
)
inline

◆ Length() [5/16]

WebCore::Length::Length ( double  value,
LengthType  type,
bool  hasQuirk = false 
)
inline

◆ Length() [6/16]

WebCore::Length::Length ( Ref< CalculationValue > &&  value)
explicit

◆ Length() [7/16]

WebCore::Length::Length ( const Length other)
inline

◆ Length() [8/16]

WebCore::Length::Length ( Length &&  other)
inline

◆ ~Length() [1/2]

WebCore::Length::~Length ( )
inline

◆ Length() [9/16]

WebCore::Length::Length ( LengthType  = Auto)

◆ Length() [10/16]

WebCore::Length::Length ( int  value,
LengthType  ,
bool  hasQuirk = false 
)

◆ Length() [11/16]

WebCore::Length::Length ( LayoutUnit  value,
LengthType  ,
bool  hasQuirk = false 
)

◆ Length() [12/16]

WebCore::Length::Length ( float  value,
LengthType  ,
bool  hasQuirk = false 
)

◆ Length() [13/16]

WebCore::Length::Length ( double  value,
LengthType  ,
bool  hasQuirk = false 
)

◆ Length() [14/16]

WEBCORE_EXPORT WebCore::Length::Length ( Ref< CalculationValue > &&  )
explicit

◆ Length() [15/16]

WebCore::Length::Length ( const Length )

◆ Length() [16/16]

WebCore::Length::Length ( Length &&  )

◆ ~Length() [2/2]

WebCore::Length::~Length ( )

Member Function Documentation

◆ calculationValue() [1/2]

CalculationValue & WebCore::Length::calculationValue ( ) const

◆ calculationValue() [2/2]

CalculationValue& WebCore::Length::calculationValue ( ) const

◆ hasQuirk() [1/2]

bool WebCore::Length::hasQuirk ( ) const
inline

◆ hasQuirk() [2/2]

bool WebCore::Length::hasQuirk ( ) const

◆ intValue() [1/2]

int WebCore::Length::intValue ( ) const

◆ intValue() [2/2]

int WebCore::Length::intValue ( ) const
inline

◆ isAuto() [1/2]

bool WebCore::Length::isAuto ( ) const

◆ isAuto() [2/2]

bool WebCore::Length::isAuto ( ) const
inline

◆ isCalculated() [1/2]

bool WebCore::Length::isCalculated ( ) const
inline

◆ isCalculated() [2/2]

bool WebCore::Length::isCalculated ( ) const

◆ isFillAvailable() [1/2]

bool WebCore::Length::isFillAvailable ( ) const
inline

◆ isFillAvailable() [2/2]

bool WebCore::Length::isFillAvailable ( ) const

◆ isFitContent() [1/2]

bool WebCore::Length::isFitContent ( ) const
inline

◆ isFitContent() [2/2]

bool WebCore::Length::isFitContent ( ) const

◆ isFixed() [1/2]

bool WebCore::Length::isFixed ( ) const
inline

◆ isFixed() [2/2]

bool WebCore::Length::isFixed ( ) const

◆ isIntrinsic() [1/2]

bool WebCore::Length::isIntrinsic ( ) const

◆ isIntrinsic() [2/2]

bool WebCore::Length::isIntrinsic ( ) const
inline

◆ isIntrinsicOrAuto() [1/2]

bool WebCore::Length::isIntrinsicOrAuto ( ) const

◆ isIntrinsicOrAuto() [2/2]

bool WebCore::Length::isIntrinsicOrAuto ( ) const
inline

◆ isMaxContent() [1/2]

bool WebCore::Length::isMaxContent ( ) const
inline

◆ isMaxContent() [2/2]

bool WebCore::Length::isMaxContent ( ) const

◆ isMinContent() [1/2]

bool WebCore::Length::isMinContent ( ) const
inline

◆ isMinContent() [2/2]

bool WebCore::Length::isMinContent ( ) const

◆ isNegative() [1/2]

bool WebCore::Length::isNegative ( ) const

◆ isNegative() [2/2]

bool WebCore::Length::isNegative ( ) const
inline

◆ isPercent() [1/2]

bool WebCore::Length::isPercent ( ) const
inline

◆ isPercent() [2/2]

bool WebCore::Length::isPercent ( ) const

◆ isPercentOrCalculated() [1/2]

bool WebCore::Length::isPercentOrCalculated ( ) const
inline

◆ isPercentOrCalculated() [2/2]

bool WebCore::Length::isPercentOrCalculated ( ) const

◆ isPositive() [1/2]

bool WebCore::Length::isPositive ( ) const
inline

◆ isPositive() [2/2]

bool WebCore::Length::isPositive ( ) const

◆ isRelative() [1/2]

bool WebCore::Length::isRelative ( ) const

◆ isRelative() [2/2]

bool WebCore::Length::isRelative ( ) const
inline

◆ isSpecified() [1/2]

bool WebCore::Length::isSpecified ( ) const
inline

◆ isSpecified() [2/2]

bool WebCore::Length::isSpecified ( ) const

◆ isSpecifiedOrIntrinsic() [1/2]

bool WebCore::Length::isSpecifiedOrIntrinsic ( ) const

◆ isSpecifiedOrIntrinsic() [2/2]

bool WebCore::Length::isSpecifiedOrIntrinsic ( ) const
inline

◆ isUndefined() [1/2]

bool WebCore::Length::isUndefined ( ) const
inline

◆ isUndefined() [2/2]

bool WebCore::Length::isUndefined ( ) const

◆ isZero() [1/2]

bool WebCore::Length::isZero ( ) const

◆ isZero() [2/2]

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

◆ nonNanCalculatedValue() [1/2]

float WebCore::Length::nonNanCalculatedValue ( int  maxValue) const

◆ nonNanCalculatedValue() [2/2]

float WebCore::Length::nonNanCalculatedValue ( int  maxValue) const

◆ operator!=() [1/2]

bool WebCore::Length::operator!= ( const Length other) const
inline

◆ operator!=() [2/2]

bool WebCore::Length::operator!= ( const Length ) const

◆ operator*=() [1/2]

Length& WebCore::Length::operator*= ( float  )

◆ operator*=() [2/2]

Length & WebCore::Length::operator*= ( float  value)
inline

◆ operator=() [1/4]

Length& WebCore::Length::operator= ( const Length )

◆ operator=() [2/4]

Length & WebCore::Length::operator= ( const Length other)
inline

◆ operator=() [3/4]

Length & WebCore::Length::operator= ( Length &&  other)
inline

◆ operator=() [4/4]

Length& WebCore::Length::operator= ( Length &&  )

◆ operator==() [1/2]

bool WebCore::Length::operator== ( const Length other) const
inline

◆ operator==() [2/2]

bool WebCore::Length::operator== ( const Length ) const

◆ percent() [1/2]

float WebCore::Length::percent ( ) const

◆ percent() [2/2]

float WebCore::Length::percent ( ) const
inline

◆ setHasQuirk() [1/2]

void WebCore::Length::setHasQuirk ( bool  hasQuirk)
inline

◆ setHasQuirk() [2/2]

void WebCore::Length::setHasQuirk ( bool  )

◆ setValue() [1/6]

void WebCore::Length::setValue ( LengthType  ,
int  value 
)

◆ setValue() [2/6]

void WebCore::Length::setValue ( LengthType  type,
int  value 
)
inline

◆ setValue() [3/6]

void WebCore::Length::setValue ( LengthType  type,
float  value 
)
inline

◆ setValue() [4/6]

void WebCore::Length::setValue ( LengthType  ,
float  value 
)

◆ setValue() [5/6]

void WebCore::Length::setValue ( LengthType  ,
LayoutUnit  value 
)

◆ setValue() [6/6]

void WebCore::Length::setValue ( LengthType  type,
LayoutUnit  value 
)
inline

◆ type() [1/2]

LengthType WebCore::Length::type ( ) const

◆ type() [2/2]

LengthType WebCore::Length::type ( ) const
inline

◆ value() [1/2]

float WebCore::Length::value ( ) const

◆ value() [2/2]

float WebCore::Length::value ( ) const
inline

Member Data Documentation

◆ m_calculationValueHandle

unsigned WebCore::Length::m_calculationValueHandle

◆ m_floatValue

float WebCore::Length::m_floatValue

◆ m_intValue

int WebCore::Length::m_intValue

◆ WTF_MAKE_FAST_ALLOCATED

WebCore::Length::WTF_MAKE_FAST_ALLOCATED

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