#include <juce_ComponentListener.h>
Gets informed about changes to a component's hierarchy or position.
To monitor a component for changes, register a subclass of ComponentListener with the component using Component::addComponentListener().
Be sure to deregister listeners before you delete them!
- See also
- Component::addComponentListener, Component::removeComponentListener
◆ ~ComponentListener()
virtual ComponentListener::~ComponentListener |
( |
| ) |
|
|
inlinevirtual |
◆ componentBeingDeleted()
void ComponentListener::componentBeingDeleted |
( |
Component & |
component | ) |
|
|
virtual |
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!
Reimplemented in ComponentMovementWatcher, ModalComponentManager::ModalItem, and RelativeCoordinatePositionerBase.
◆ componentBroughtToFront()
void ComponentListener::componentBroughtToFront |
( |
Component & |
component | ) |
|
|
virtual |
◆ componentChildrenChanged()
void ComponentListener::componentChildrenChanged |
( |
Component & |
component | ) |
|
|
virtual |
◆ componentMovedOrResized()
void ComponentListener::componentMovedOrResized |
( |
Component & |
component, |
|
|
bool |
wasMoved, |
|
|
bool |
wasResized |
|
) |
| |
|
virtual |
◆ componentNameChanged()
void ComponentListener::componentNameChanged |
( |
Component & |
component | ) |
|
|
virtual |
◆ componentParentHierarchyChanged()
void ComponentListener::componentParentHierarchyChanged |
( |
Component & |
component | ) |
|
|
virtual |
◆ componentVisibilityChanged()
void ComponentListener::componentVisibilityChanged |
( |
Component & |
component | ) |
|
|
virtual |
The documentation for this class was generated from the following files: