#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
virtual ComponentListener::~ComponentListener |
( |
| ) |
|
|
inlinevirtual |
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, and ModalComponentManager::ModalItem.
void ComponentListener::componentBroughtToFront |
( |
Component & |
component | ) |
|
|
virtual |
void ComponentListener::componentChildrenChanged |
( |
Component & |
component | ) |
|
|
virtual |
void ComponentListener::componentMovedOrResized |
( |
Component & |
component, |
|
|
bool |
wasMoved, |
|
|
bool |
wasResized |
|
) |
| |
|
virtual |
void ComponentListener::componentNameChanged |
( |
Component & |
component | ) |
|
|
virtual |
void ComponentListener::componentParentHierarchyChanged |
( |
Component & |
component | ) |
|
|
virtual |
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 in ComponentMovementWatcher.
void ComponentListener::componentVisibilityChanged |
( |
Component & |
component | ) |
|
|
virtual |
The documentation for this class was generated from the following files: