Gets informed about changes to a component's hierarchy or position.
More...
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 |
( |
| ) |
|
|
virtualdefault |
◆ componentMovedOrResized()
virtual void ComponentListener::componentMovedOrResized |
( |
Component & |
component, |
|
|
bool |
wasMoved, |
|
|
bool |
wasResized |
|
) |
| |
|
virtual |
◆ componentBroughtToFront()
virtual void ComponentListener::componentBroughtToFront |
( |
Component & |
component | ) |
|
|
virtual |
◆ componentVisibilityChanged()
virtual void ComponentListener::componentVisibilityChanged |
( |
Component & |
component | ) |
|
|
virtual |
◆ componentChildrenChanged()
virtual void ComponentListener::componentChildrenChanged |
( |
Component & |
component | ) |
|
|
virtual |
◆ componentParentHierarchyChanged()
virtual void ComponentListener::componentParentHierarchyChanged |
( |
Component & |
component | ) |
|
|
virtual |
◆ componentNameChanged()
virtual void ComponentListener::componentNameChanged |
( |
Component & |
component | ) |
|
|
virtual |
◆ componentBeingDeleted()
virtual 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!
- Parameters
-
component | the component that was deleted |
Reimplemented in ComponentMovementWatcher, and RelativeCoordinatePositionerBase.
◆ componentEnablementChanged()
virtual void ComponentListener::componentEnablementChanged |
( |
Component & |
component | ) |
|
|
virtual |
The documentation for this class was generated from the following file: