JUCE
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
Classes | Public Member Functions | Static Public Attributes
DrawablePath Class Reference

A drawable object which renders a filled or outlined shape. More...

Inherits DrawableShape.

List of all members.

Classes

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

Public Member Functions

 DrawablePath ()
 Creates a DrawablePath.
 DrawablePath (const DrawablePath &other)
 ~DrawablePath ()
 Destructor.
void setPath (const Path &newPath)
 Changes the path that will be drawn.
void setPath (const RelativePointPath &newPath)
 Sets the path using a RelativePointPath.
const PathgetPath () const
 Returns the current path.
const PathgetStrokePath () const
 Returns the current path for the outline.
DrawablecreateCopy () const
void refreshFromValueTree (const ValueTree &tree, ComponentBuilder &builder)
ValueTree createValueTree (ComponentBuilder::ImageProvider *imageProvider) const

Static Public Attributes

static const Identifier valueTreeType

Detailed Description

A drawable object which renders a filled or outlined shape.

For details on how to change the fill and stroke, see the DrawableShape class.

See also:
Drawable, DrawableShape

Constructor & Destructor Documentation

Creates a DrawablePath.

Destructor.


Member Function Documentation

void DrawablePath::setPath ( const Path newPath)

Changes the path that will be drawn.

See also:
setFillColour, setStrokeType
void DrawablePath::setPath ( const RelativePointPath newPath)

Sets the path using a RelativePointPath.

Calling this will set up a Component::Positioner to automatically update the path if any of the points in the source path are dynamic.

const Path& DrawablePath::getPath ( ) const

Returns the current path.

Returns the current path for the outline.

Drawable* DrawablePath::createCopy ( ) const [virtual]

Implements Drawable.

void DrawablePath::refreshFromValueTree ( const ValueTree tree,
ComponentBuilder builder 
)

Implements Drawable.


Member Data Documentation


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