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

#include <PathTraversalState.h>

Public Types

enum  Action { Action::TotalLength, Action::VectorAtLength, Action::SegmentAtLength }
 

Public Member Functions

 PathTraversalState (Action, float desiredLength=0)
 
bool processPathElement (PathElementType, const FloatPoint *)
 
bool processPathElement (const PathElement &element)
 
Action action () const
 
void setAction (Action action)
 
float desiredLength () const
 
void setDesiredLength (float desiredLength)
 
bool success () const
 
float totalLength () const
 
FloatPoint current () const
 
float normalAngle () const
 

Member Enumeration Documentation

◆ Action

Enumerator
TotalLength 
VectorAtLength 
SegmentAtLength 

Constructor & Destructor Documentation

◆ PathTraversalState()

WebCore::PathTraversalState::PathTraversalState ( Action  action,
float  desiredLength = 0 
)

Member Function Documentation

◆ action()

Action WebCore::PathTraversalState::action ( ) const
inline

◆ current()

FloatPoint WebCore::PathTraversalState::current ( void  ) const
inline

◆ desiredLength()

float WebCore::PathTraversalState::desiredLength ( ) const
inline

◆ normalAngle()

float WebCore::PathTraversalState::normalAngle ( ) const
inline

◆ processPathElement() [1/2]

bool WebCore::PathTraversalState::processPathElement ( PathElementType  type,
const FloatPoint points 
)

◆ processPathElement() [2/2]

bool WebCore::PathTraversalState::processPathElement ( const PathElement element)
inline

◆ setAction()

void WebCore::PathTraversalState::setAction ( Action  action)
inline

◆ setDesiredLength()

void WebCore::PathTraversalState::setDesiredLength ( float  desiredLength)
inline

◆ success()

bool WebCore::PathTraversalState::success ( ) const
inline

◆ totalLength()

float WebCore::PathTraversalState::totalLength ( ) const
inline

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