Base class for Component::Positioners that are based upon relative coordinates.
More...
#include <juce_RelativeCoordinatePositioner.h>
Base class for Component::Positioners that are based upon relative coordinates.
◆ RelativeCoordinatePositionerBase()
RelativeCoordinatePositionerBase::RelativeCoordinatePositionerBase |
( |
Component & | | ) |
|
◆ ~RelativeCoordinatePositionerBase()
RelativeCoordinatePositionerBase::~RelativeCoordinatePositionerBase |
( |
| ) |
|
|
override |
◆ componentMovedOrResized()
void RelativeCoordinatePositionerBase::componentMovedOrResized |
( |
Component & | component, |
|
|
bool | wasMoved, |
|
|
bool | wasResized ) |
|
overridevirtual |
Called when the component's position or size changes.
- Parameters
-
component | the component that was moved or resized |
wasMoved | true if the component's top-left corner has just moved |
wasResized | true if the component's width or height has just changed |
- See also
- Component::setBounds, Component::resized, Component::moved
Reimplemented from ComponentListener.
◆ componentParentHierarchyChanged()
void RelativeCoordinatePositionerBase::componentParentHierarchyChanged |
( |
Component & | component | ) |
|
|
overridevirtual |
Called to indicate that the component's parents have changed.
When a component is added or removed from its parent, all of its children will produce this notification (recursively - so all children of its children will also be called as well).
- Parameters
-
component | the component that this listener is registered with |
- See also
- Component::parentHierarchyChanged
Reimplemented from ComponentListener.
◆ componentChildrenChanged()
void RelativeCoordinatePositionerBase::componentChildrenChanged |
( |
Component & | component | ) |
|
|
overridevirtual |
Called when the component has children added or removed, or their z-order changes.
- Parameters
-
component | the component whose children have changed |
- See also
- Component::childrenChanged, Component::addChildComponent, Component::removeChildComponent
Reimplemented from ComponentListener.
◆ componentBeingDeleted()
void RelativeCoordinatePositionerBase::componentBeingDeleted |
( |
Component & | component | ) |
|
|
overridevirtual |
Called when the component is in the process of being deleted.
This callback is made from inside the destructor, so be very, very cautious about what you do in here.
In particular, bear in mind that it's the Component base class's destructor that calls this - so if the object that's being deleted is a subclass of Component, then the subclass layers of the object will already have been destructed when it gets to this point!
- Parameters
-
component | the component that was deleted |
Reimplemented from ComponentListener.
◆ markersChanged()
void RelativeCoordinatePositionerBase::markersChanged |
( |
MarkerList * | markerList | ) |
|
|
overridevirtual |
◆ markerListBeingDeleted()
void RelativeCoordinatePositionerBase::markerListBeingDeleted |
( |
MarkerList * | markerList | ) |
|
|
overridevirtual |
◆ apply()
void RelativeCoordinatePositionerBase::apply |
( |
| ) |
|
◆ addCoordinate()
◆ addPoint()
bool RelativeCoordinatePositionerBase::addPoint |
( |
const RelativePoint & | | ) |
|
◆ registerCoordinates()
virtual bool RelativeCoordinatePositionerBase::registerCoordinates |
( |
| ) |
|
|
protectedpure virtual |
◆ applyToComponentBounds()
virtual void RelativeCoordinatePositionerBase::applyToComponentBounds |
( |
| ) |
|
|
protectedpure virtual |
The documentation for this class was generated from the following file: