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

#include <StepRange.h>

Classes

struct  StepDescription
 

Public Types

enum  StepValueShouldBe {
  StepValueShouldBeReal, ParsedStepValueShouldBeInteger, ScaledStepValueShouldBeInteger, StepValueShouldBeReal,
  ParsedStepValueShouldBeInteger, ScaledStepValueShouldBeInteger
}
 
enum  StepValueShouldBe {
  StepValueShouldBeReal, ParsedStepValueShouldBeInteger, ScaledStepValueShouldBeInteger, StepValueShouldBeReal,
  ParsedStepValueShouldBeInteger, ScaledStepValueShouldBeInteger
}
 

Public Member Functions

 StepRange ()
 
 StepRange (const StepRange &)
 
 StepRange (const Decimal &stepBase, RangeLimitations, const Decimal &minimum, const Decimal &maximum, const Decimal &step, const StepDescription &)
 
Decimal acceptableError () const
 
Decimal alignValueForStep (const Decimal &currentValue, const Decimal &newValue) const
 
Decimal clampValue (const Decimal &value) const
 
bool hasStep () const
 
bool hasRangeLimitations () const
 
Decimal maximum () const
 
Decimal minimum () const
 
Decimal step () const
 
Decimal stepBase () const
 
int stepScaleFactor () const
 
bool stepMismatch (const Decimal &) const
 
Decimal defaultValue () const
 
Decimal proportionFromValue (const Decimal &value) const
 
Decimal valueFromProportion (const Decimal &proportion) const
 
 StepRange ()
 
 StepRange (const StepRange &)
 
 StepRange (const Decimal &stepBase, RangeLimitations, const Decimal &minimum, const Decimal &maximum, const Decimal &step, const StepDescription &)
 
Decimal acceptableError () const
 
Decimal alignValueForStep (const Decimal &currentValue, const Decimal &newValue) const
 
Decimal clampValue (const Decimal &value) const
 
bool hasStep () const
 
bool hasRangeLimitations () const
 
Decimal maximum () const
 
Decimal minimum () const
 
Decimal step () const
 
Decimal stepBase () const
 
int stepScaleFactor () const
 
bool stepMismatch (const Decimal &) const
 
Decimal defaultValue () const
 
Decimal proportionFromValue (const Decimal &value) const
 
Decimal valueFromProportion (const Decimal &proportion) const
 

Static Public Member Functions

static Decimal parseStep (AnyStepHandling, const StepDescription &, const String &)
 
static Decimal parseStep (AnyStepHandling, const StepDescription &, const String &)
 

Member Enumeration Documentation

◆ StepValueShouldBe [1/2]

Enumerator
StepValueShouldBeReal 
ParsedStepValueShouldBeInteger 
ScaledStepValueShouldBeInteger 
StepValueShouldBeReal 
ParsedStepValueShouldBeInteger 
ScaledStepValueShouldBeInteger 

◆ StepValueShouldBe [2/2]

Enumerator
StepValueShouldBeReal 
ParsedStepValueShouldBeInteger 
ScaledStepValueShouldBeInteger 
StepValueShouldBeReal 
ParsedStepValueShouldBeInteger 
ScaledStepValueShouldBeInteger 

Constructor & Destructor Documentation

◆ StepRange() [1/6]

WebCore::StepRange::StepRange ( )

◆ StepRange() [2/6]

WebCore::StepRange::StepRange ( const StepRange stepRange)

◆ StepRange() [3/6]

WebCore::StepRange::StepRange ( const Decimal stepBase,
RangeLimitations  rangeLimitations,
const Decimal minimum,
const Decimal maximum,
const Decimal step,
const StepDescription stepDescription 
)

◆ StepRange() [4/6]

WebCore::StepRange::StepRange ( )

◆ StepRange() [5/6]

WebCore::StepRange::StepRange ( const StepRange )

◆ StepRange() [6/6]

WebCore::StepRange::StepRange ( const Decimal stepBase,
RangeLimitations  ,
const Decimal minimum,
const Decimal maximum,
const Decimal step,
const StepDescription  
)

Member Function Documentation

◆ acceptableError() [1/2]

Decimal WebCore::StepRange::acceptableError ( ) const

◆ acceptableError() [2/2]

Decimal WebCore::StepRange::acceptableError ( ) const

◆ alignValueForStep() [1/2]

Decimal WebCore::StepRange::alignValueForStep ( const Decimal currentValue,
const Decimal newValue 
) const

◆ alignValueForStep() [2/2]

Decimal WebCore::StepRange::alignValueForStep ( const Decimal currentValue,
const Decimal newValue 
) const

◆ clampValue() [1/2]

Decimal WebCore::StepRange::clampValue ( const Decimal value) const

◆ clampValue() [2/2]

Decimal WebCore::StepRange::clampValue ( const Decimal value) const

◆ defaultValue() [1/2]

Decimal WebCore::StepRange::defaultValue ( ) const
inline

◆ defaultValue() [2/2]

Decimal WebCore::StepRange::defaultValue ( ) const
inline

◆ hasRangeLimitations() [1/2]

bool WebCore::StepRange::hasRangeLimitations ( ) const
inline

◆ hasRangeLimitations() [2/2]

bool WebCore::StepRange::hasRangeLimitations ( ) const
inline

◆ hasStep() [1/2]

bool WebCore::StepRange::hasStep ( ) const
inline

◆ hasStep() [2/2]

bool WebCore::StepRange::hasStep ( ) const
inline

◆ maximum() [1/2]

Decimal WebCore::StepRange::maximum ( ) const
inline

◆ maximum() [2/2]

Decimal WebCore::StepRange::maximum ( ) const
inline

◆ minimum() [1/2]

Decimal WebCore::StepRange::minimum ( ) const
inline

◆ minimum() [2/2]

Decimal WebCore::StepRange::minimum ( ) const
inline

◆ parseStep() [1/2]

Decimal WebCore::StepRange::parseStep ( AnyStepHandling  anyStepHandling,
const StepDescription stepDescription,
const String stepString 
)
static

◆ parseStep() [2/2]

static Decimal WebCore::StepRange::parseStep ( AnyStepHandling  ,
const StepDescription ,
const String  
)
static

◆ proportionFromValue() [1/2]

Decimal WebCore::StepRange::proportionFromValue ( const Decimal value) const
inline

◆ proportionFromValue() [2/2]

Decimal WebCore::StepRange::proportionFromValue ( const Decimal value) const
inline

◆ step() [1/2]

Decimal WebCore::StepRange::step ( ) const
inline

◆ step() [2/2]

Decimal WebCore::StepRange::step ( ) const
inline

◆ stepBase() [1/2]

Decimal WebCore::StepRange::stepBase ( ) const
inline

◆ stepBase() [2/2]

Decimal WebCore::StepRange::stepBase ( ) const
inline

◆ stepMismatch() [1/2]

bool WebCore::StepRange::stepMismatch ( const Decimal ) const

◆ stepMismatch() [2/2]

bool WebCore::StepRange::stepMismatch ( const Decimal valueForCheck) const

◆ stepScaleFactor() [1/2]

int WebCore::StepRange::stepScaleFactor ( ) const
inline

◆ stepScaleFactor() [2/2]

int WebCore::StepRange::stepScaleFactor ( ) const
inline

◆ valueFromProportion() [1/2]

Decimal WebCore::StepRange::valueFromProportion ( const Decimal proportion) const
inline

◆ valueFromProportion() [2/2]

Decimal WebCore::StepRange::valueFromProportion ( const Decimal proportion) const
inline

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