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

A drawable object which acts as a container for a set of other Drawables. More...

Inherits Drawable.

List of all members.

Classes

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

Public Member Functions

 DrawableComposite ()
 Creates a composite Drawable.
 DrawableComposite (const DrawableComposite &other)
 Creates a copy of a DrawableComposite.
 ~DrawableComposite ()
 Destructor.
void setBoundingBox (const RelativeParallelogram &newBoundingBox)
 Sets the parallelogram that defines the target position of the content rectangle when the drawable is rendered.
const RelativeParallelogramgetBoundingBox () const noexcept
 Returns the parallelogram that defines the target position of the content rectangle when the drawable is rendered.
void resetBoundingBoxToContentArea ()
 Changes the bounding box transform to match the content area, so that any sub-items will be drawn at their untransformed positions.
RelativeRectangle getContentArea () const
 Returns the main content rectangle.
void setContentArea (const RelativeRectangle &newArea)
 Changes the main content area.
void resetContentAreaAndBoundingBoxToFitChildren ()
 Resets the content area and the bounding transform to fit around the area occupied by the child components (ignoring any markers).
DrawablecreateCopy () const
void refreshFromValueTree (const ValueTree &tree, ComponentBuilder &builder)
ValueTree createValueTree (ComponentBuilder::ImageProvider *imageProvider) const
Rectangle< float > getDrawableBounds () const
void childBoundsChanged (Component *)
void childrenChanged ()
void parentHierarchyChanged ()
MarkerListgetMarkers (bool xAxis)

Static Public Attributes

static const char *const contentLeftMarkerName
 The name of the marker that defines the left edge of the content area.
static const char *const contentRightMarkerName
 The name of the marker that defines the right edge of the content area.
static const char *const contentTopMarkerName
 The name of the marker that defines the top edge of the content area.
static const char *const contentBottomMarkerName
 The name of the marker that defines the bottom edge of the content area.
static const Identifier valueTreeType

Detailed Description

A drawable object which acts as a container for a set of other Drawables.

See also:
Drawable

Constructor & Destructor Documentation

Creates a composite Drawable.

Creates a copy of a DrawableComposite.

Destructor.


Member Function Documentation

void DrawableComposite::setBoundingBox ( const RelativeParallelogram newBoundingBox)

Sets the parallelogram that defines the target position of the content rectangle when the drawable is rendered.

See also:
setContentArea

Returns the parallelogram that defines the target position of the content rectangle when the drawable is rendered.

See also:
setBoundingBox

Changes the bounding box transform to match the content area, so that any sub-items will be drawn at their untransformed positions.

Returns the main content rectangle.

The content area is actually defined by the markers named "left", "right", "top" and "bottom", but this method is a shortcut that returns them all at once.

See also:
contentLeftMarkerName, contentRightMarkerName, contentTopMarkerName, contentBottomMarkerName

Changes the main content area.

The content area is actually defined by the markers named "left", "right", "top" and "bottom", but this method is a shortcut that sets them all at once.

See also:
setBoundingBox, contentLeftMarkerName, contentRightMarkerName, contentTopMarkerName, contentBottomMarkerName

Resets the content area and the bounding transform to fit around the area occupied by the child components (ignoring any markers).

Implements Drawable.

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

Implements Drawable.

Rectangle<float> DrawableComposite::getDrawableBounds ( ) const [virtual]

Implements Drawable.

Reimplemented from Component.

Reimplemented from Component.

Reimplemented from Drawable.

MarkerList* DrawableComposite::getMarkers ( bool  xAxis) [virtual]

Reimplemented from Component.


Member Data Documentation

const char* const DrawableComposite::contentLeftMarkerName [static]

The name of the marker that defines the left edge of the content area.

const char* const DrawableComposite::contentRightMarkerName [static]

The name of the marker that defines the right edge of the content area.

const char* const DrawableComposite::contentTopMarkerName [static]

The name of the marker that defines the top edge of the content area.

const char* const DrawableComposite::contentBottomMarkerName [static]

The name of the marker that defines the bottom edge of the content area.


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