Gets informed about changes to a component's hierarchy or position.
More...
#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
{GUI}
◆ ~ComponentListener()
virtual juce::ComponentListener::~ComponentListener |
( |
| ) |
|
|
inlinevirtual |
◆ componentBeingDeleted()
virtual void juce::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 juce::ComponentMovementWatcher, and juce::RelativeCoordinatePositionerBase.
◆ componentBroughtToFront()
virtual void juce::ComponentListener::componentBroughtToFront |
( |
Component & |
component | ) |
|
|
virtual |
◆ componentChildrenChanged()
virtual void juce::ComponentListener::componentChildrenChanged |
( |
Component & |
component | ) |
|
|
virtual |
◆ componentEnablementChanged()
virtual void juce::ComponentListener::componentEnablementChanged |
( |
Component & |
component | ) |
|
|
virtual |
◆ componentMovedOrResized()
virtual void juce::ComponentListener::componentMovedOrResized |
( |
Component & |
component, |
|
|
bool |
wasMoved, |
|
|
bool |
wasResized |
|
) |
| |
|
virtual |
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 in juce::StandaloneFilterWindow::MainContentComponent, juce::Label, juce::Viewport, juce::CarbonViewWrapperComponent, juce::SidePanel, juce::AudioProcessorEditor::AudioProcessorEditorListener, juce::ComponentMovementWatcher, juce::DropShadower, and juce::RelativeCoordinatePositionerBase.
◆ componentNameChanged()
virtual void juce::ComponentListener::componentNameChanged |
( |
Component & |
component | ) |
|
|
virtual |
◆ componentParentHierarchyChanged()
virtual void juce::ComponentListener::componentParentHierarchyChanged |
( |
Component & |
component | ) |
|
|
virtual |
◆ componentVisibilityChanged()
virtual void juce::ComponentListener::componentVisibilityChanged |
( |
Component & |
component | ) |
|
|
virtual |
The documentation for this class was generated from the following file: