openshot-audio  0.1.2
Public Member Functions | List of all members
Drawable::Positioner< DrawableType > Class Template Reference

#include <juce_Drawable.h>

Inheritance diagram for Drawable::Positioner< DrawableType >:
RelativeCoordinatePositionerBase Component::Positioner ComponentListener MarkerList::Listener

Public Member Functions

 Positioner (DrawableType &c)
 
bool registerCoordinates () override
 
void applyToComponentBounds () override
 
void applyNewBounds (const Rectangle< int > &) override
 
- Public Member Functions inherited from RelativeCoordinatePositionerBase
 RelativeCoordinatePositionerBase (Component &component)
 
 ~RelativeCoordinatePositionerBase ()
 
void componentMovedOrResized (Component &, bool, bool)
 
void componentParentHierarchyChanged (Component &)
 
void componentChildrenChanged (Component &component)
 
void componentBeingDeleted (Component &component)
 
void markersChanged (MarkerList *)
 
void markerListBeingDeleted (MarkerList *markerList)
 
void apply ()
 
bool addCoordinate (const RelativeCoordinate &coord)
 
bool addPoint (const RelativePoint &point)
 
- Public Member Functions inherited from Component::Positioner
 Positioner (Component &component) noexcept
 
virtual ~Positioner ()
 
ComponentgetComponent () const noexcept
 
- Public Member Functions inherited from ComponentListener
virtual ~ComponentListener ()
 
virtual void componentBroughtToFront (Component &component)
 
virtual void componentVisibilityChanged (Component &component)
 
virtual void componentNameChanged (Component &component)
 
- Public Member Functions inherited from MarkerList::Listener
virtual ~Listener ()
 

Additional Inherited Members

Detailed Description

template<class DrawableType>
class Drawable::Positioner< DrawableType >

Internal utility class used by Drawables.

Constructor & Destructor Documentation

template<class DrawableType >
Drawable::Positioner< DrawableType >::Positioner ( DrawableType &  c)
inline

Member Function Documentation

template<class DrawableType >
void Drawable::Positioner< DrawableType >::applyNewBounds ( const Rectangle< int > &  newBounds)
inlineoverridevirtual

Attempts to set the component's position to the given rectangle. Unlike simply calling Component::setBounds(), this may involve the positioner being smart enough to adjust itself to fit the new bounds, e.g. a RelativeRectangle's positioner may try to reverse the expressions used to make them fit these new coordinates.

Implements Component::Positioner.

template<class DrawableType >
void Drawable::Positioner< DrawableType >::applyToComponentBounds ( )
inlineoverridevirtual
template<class DrawableType >
bool Drawable::Positioner< DrawableType >::registerCoordinates ( )
inlineoverridevirtual

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