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

A Drawable object which draws a rectangle. More...

Inherits DrawableShape.

List of all members.

Classes

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

Public Member Functions

 DrawableRectangle ()
 DrawableRectangle (const DrawableRectangle &other)
 ~DrawableRectangle ()
 Destructor.
void setRectangle (const RelativeParallelogram &newBounds)
 Sets the rectangle's bounds.
const RelativeParallelogramgetRectangle () const noexcept
 Returns the rectangle's bounds.
const RelativePointgetCornerSize () const noexcept
 Returns the corner size to be used.
void setCornerSize (const RelativePoint &newSize)
 Sets a new corner size for the rectangle.
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 draws a rectangle.

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

See also:
Drawable, DrawableShape

Constructor & Destructor Documentation

Destructor.


Member Function Documentation

Sets the rectangle's bounds.

Returns the rectangle's bounds.

Returns the corner size to be used.

Sets a new corner size for the rectangle.

Implements Drawable.

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

Implements Drawable.


Member Data Documentation


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