JUCE  v5.1.1-3-g1a0b28c73
JUCE API
DrawablePath::ValueTreeWrapper Class Reference

Internally-used class for wrapping a DrawablePath's state into a ValueTree. More...

#include <juce_DrawablePath.h>

Inheritance diagram for DrawablePath::ValueTreeWrapper:
Collaboration diagram for DrawablePath::ValueTreeWrapper:

Classes

class  Element
 

Public Member Functions

 ValueTreeWrapper (const ValueTree &state)
 
RelativeFillType getFill (const Identifier &fillOrStrokeType, ComponentBuilder::ImageProvider *) const
 
ValueTree getFillState (const Identifier &fillOrStrokeType)
 
String getID () const
 
ValueTree getPathState ()
 
ValueTreegetState () noexcept
 
PathStrokeType getStrokeType () const
 
void readFrom (const RelativePointPath &relativePath, UndoManager *undoManager)
 
void setFill (const Identifier &fillOrStrokeType, const RelativeFillType &newFill, ComponentBuilder::ImageProvider *, UndoManager *)
 
void setID (const String &newID)
 
void setStrokeType (const PathStrokeType &newStrokeType, UndoManager *)
 
void setUsesNonZeroWinding (bool b, UndoManager *undoManager)
 
bool usesNonZeroWinding () const
 
void writeTo (RelativePointPath &relativePath) const
 

Public Attributes

ValueTree state
 

Static Public Attributes

static const Identifier capStyle
 
static const Identifier colour
 
static const Identifier colours
 
static const Identifier fill
 
static const Identifier gradientPoint1
 
static const Identifier gradientPoint2
 
static const Identifier gradientPoint3
 
static const Identifier imageId
 
static const Identifier imageOpacity
 
static const Identifier jointStyle
 
static const Identifier nonZeroWinding
 
static const Identifier path
 
static const Identifier point1
 
static const Identifier point2
 
static const Identifier point3
 
static const Identifier radial
 
static const Identifier stroke
 
static const Identifier strokeWidth
 
static const Identifier type
 

Detailed Description

Internally-used class for wrapping a DrawablePath's state into a ValueTree.

Constructor & Destructor Documentation

◆ ValueTreeWrapper()

DrawablePath::ValueTreeWrapper::ValueTreeWrapper ( const ValueTree state)

Member Function Documentation

◆ getFill()

RelativeFillType DrawableShape::FillAndStrokeState::getFill ( const Identifier fillOrStrokeType,
ComponentBuilder::ImageProvider  
) const
inherited

◆ getFillState()

ValueTree DrawableShape::FillAndStrokeState::getFillState ( const Identifier fillOrStrokeType)
inherited

◆ getID()

String Drawable::ValueTreeWrapperBase::getID ( ) const
inherited

◆ getPathState()

ValueTree DrawablePath::ValueTreeWrapper::getPathState ( )

◆ getState()

ValueTree& Drawable::ValueTreeWrapperBase::getState ( )
inlinenoexceptinherited

◆ getStrokeType()

PathStrokeType DrawableShape::FillAndStrokeState::getStrokeType ( ) const
inherited

◆ readFrom()

void DrawablePath::ValueTreeWrapper::readFrom ( const RelativePointPath relativePath,
UndoManager undoManager 
)

◆ setFill()

void DrawableShape::FillAndStrokeState::setFill ( const Identifier fillOrStrokeType,
const RelativeFillType newFill,
ComponentBuilder::ImageProvider ,
UndoManager  
)
inherited

◆ setID()

void Drawable::ValueTreeWrapperBase::setID ( const String newID)
inherited

◆ setStrokeType()

void DrawableShape::FillAndStrokeState::setStrokeType ( const PathStrokeType newStrokeType,
UndoManager  
)
inherited

◆ setUsesNonZeroWinding()

void DrawablePath::ValueTreeWrapper::setUsesNonZeroWinding ( bool  b,
UndoManager undoManager 
)

◆ usesNonZeroWinding()

bool DrawablePath::ValueTreeWrapper::usesNonZeroWinding ( ) const

◆ writeTo()

void DrawablePath::ValueTreeWrapper::writeTo ( RelativePointPath relativePath) const

Member Data Documentation

◆ capStyle

const Identifier DrawableShape::FillAndStrokeState::capStyle
staticinherited

◆ colour

const Identifier DrawableShape::FillAndStrokeState::colour
staticinherited

◆ colours

const Identifier DrawableShape::FillAndStrokeState::colours
staticinherited

◆ fill

const Identifier DrawableShape::FillAndStrokeState::fill
staticinherited

◆ gradientPoint1

const Identifier DrawableShape::FillAndStrokeState::gradientPoint1
staticinherited

◆ gradientPoint2

const Identifier DrawableShape::FillAndStrokeState::gradientPoint2
staticinherited

◆ gradientPoint3

const Identifier DrawableShape::FillAndStrokeState::gradientPoint3
staticinherited

◆ imageId

const Identifier DrawableShape::FillAndStrokeState::imageId
staticinherited

◆ imageOpacity

const Identifier DrawableShape::FillAndStrokeState::imageOpacity
staticinherited

◆ jointStyle

const Identifier DrawableShape::FillAndStrokeState::jointStyle
staticinherited

◆ nonZeroWinding

const Identifier DrawablePath::ValueTreeWrapper::nonZeroWinding
static

◆ path

const Identifier DrawableShape::FillAndStrokeState::path
staticinherited

◆ point1

const Identifier DrawablePath::ValueTreeWrapper::point1
static

◆ point2

const Identifier DrawablePath::ValueTreeWrapper::point2
static

◆ point3

const Identifier DrawablePath::ValueTreeWrapper::point3
static

◆ radial

const Identifier DrawableShape::FillAndStrokeState::radial
staticinherited

◆ state

ValueTree Drawable::ValueTreeWrapperBase::state
inherited

◆ stroke

const Identifier DrawableShape::FillAndStrokeState::stroke
staticinherited

◆ strokeWidth

const Identifier DrawableShape::FillAndStrokeState::strokeWidth
staticinherited

◆ type

const Identifier DrawableShape::FillAndStrokeState::type
staticinherited

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