|
LMMS
|
#include <juce_DropShadower.h>
Classes | |
| class | ShadowWindow |
| class | ParentVisibilityChangedListener |
Public Member Functions | |
| DropShadower (const DropShadow &shadowType) | |
| ~DropShadower () override | |
| void | setOwner (Component *componentToFollow) |
Private Member Functions | |
| void | componentMovedOrResized (Component &, bool, bool) override |
| void | componentBroughtToFront (Component &) override |
| void | componentChildrenChanged (Component &) override |
| void | componentParentHierarchyChanged (Component &) override |
| void | componentVisibilityChanged (Component &) override |
| void | updateParent () |
| void | updateShadows () |
| Private Member Functions inherited from juce::ComponentListener | |
| virtual | ~ComponentListener ()=default |
| virtual void | componentNameChanged (Component &component) |
| virtual void | componentBeingDeleted (Component &component) |
| virtual void | componentEnablementChanged (Component &component) |
Private Attributes | |
| WeakReference< Component > | owner |
| OwnedArray< Component > | shadowWindows |
| DropShadow | shadow |
| bool | reentrant = false |
| WeakReference< Component > | lastParentComp |
| std::unique_ptr< ParentVisibilityChangedListener > | visibilityChangedListener |
Adds a drop-shadow to a component.
This object creates and manages a set of components which sit around a component, creating a gaussian shadow around it. The components will track the position of the component and if it's brought to the front they'll also follow this.
For desktop windows you don't need to use this class directly - just set the Component::windowHasDropShadow flag when calling Component::addToDesktop(), and the system will create one of these if it's needed (which it obviously isn't on the Mac, for example).
@tags{GUI}
| juce::DropShadower::DropShadower | ( | const DropShadow & | shadowType | ) |
Creates a DropShadower.
|
override |
Destructor.
Called when the component is brought to the top of the z-order.
| component | the component that was moved |
Reimplemented from juce::ComponentListener.
Called when the component has children added or removed, or their z-order changes.
| component | the component whose children have changed |
Reimplemented from juce::ComponentListener.
|
overrideprivatevirtual |
Called when the component's position or size changes.
| 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 |
Reimplemented from juce::ComponentListener.
|
overrideprivatevirtual |
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).
| component | the component that this listener is registered with |
Reimplemented from juce::ComponentListener.
Called when the component is made visible or invisible.
| component | the component that changed |
Reimplemented from juce::ComponentListener.
Attaches the DropShadower to the component you want to shadow.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |