|
LMMS
|
#include <juce_FocusOutline.h>
Classes | |
| struct | OutlineWindowProperties |
Public Member Functions | |
| FocusOutline (std::unique_ptr< OutlineWindowProperties > props) | |
| ~FocusOutline () override | |
| void | setOwner (Component *componentToFollow) |
Private Member Functions | |
| void | componentMovedOrResized (Component &, bool, bool) override |
| void | componentBroughtToFront (Component &) override |
| void | componentParentHierarchyChanged (Component &) override |
| void | componentVisibilityChanged (Component &) override |
| void | updateOutlineWindow () |
| void | updateParent () |
| Private Member Functions inherited from juce::ComponentListener | |
| virtual | ~ComponentListener ()=default |
| virtual void | componentChildrenChanged (Component &component) |
| virtual void | componentNameChanged (Component &component) |
| virtual void | componentBeingDeleted (Component &component) |
| virtual void | componentEnablementChanged (Component &component) |
Private Attributes | |
| std::unique_ptr< OutlineWindowProperties > | properties |
| WeakReference< Component > | owner |
| std::unique_ptr< Component > | outlineWindow |
| WeakReference< Component > | lastParentComp |
| bool | reentrant = false |
Adds a focus outline to a component.
This object creates and manages a component that sits on top of a target component. It will track the position of the target component and will be brought to the front with the tracked component.
Use the Component::setHasFocusOutline() method to indicate that a component should have a focus outline drawn around it, and when it receives keyboard focus one of these objects will be created using the LookAndFeel::createFocusOutlineForComponent() method. You can override this method in your own LookAndFeel classes to draw a custom outline if required.
@tags{GUI}
| juce::FocusOutline::FocusOutline | ( | std::unique_ptr< OutlineWindowProperties > | props | ) |
Creates a FocusOutline.
Call setOwner to attach it to a component.
|
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.
|
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 outline to a component.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |