JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins

« « « Anklang Documentation
Loading...
Searching...
No Matches
Classes | Public Member Functions | Protected Member Functions | Friends | List of all members
juce::RelativeCoordinatePositionerBase Class Referenceabstract

Base class for Component::Positioners that are based upon relative coordinates. More...

#include "juce_RelativeCoordinatePositioner.h"

Inheritance diagram for juce::RelativeCoordinatePositionerBase:
juce::Component::Positioner juce::ComponentListener juce::MarkerList::Listener juce::RelativeRectangleComponentPositioner

Classes

class  ComponentScope
 Used for resolving a RelativeCoordinate expression in the context of a component. More...
 
class  DependencyFinderScope
 

Public Member Functions

 RelativeCoordinatePositionerBase (Component &)
 
void componentMovedOrResized (Component &, bool, bool) override
 Called when the component's position or size changes.
 
void componentParentHierarchyChanged (Component &) override
 Called to indicate that the component's parents have changed.
 
void componentChildrenChanged (Component &) override
 Called when the component has children added or removed, or their z-order changes.
 
void componentBeingDeleted (Component &) override
 Called when the component is in the process of being deleted.
 
void markersChanged (MarkerList *) override
 Called when something in the given marker list changes.
 
void markerListBeingDeleted (MarkerList *) override
 Called when the given marker list is being deleted.
 
void apply ()
 
bool addCoordinate (const RelativeCoordinate &)
 
bool addPoint (const RelativePoint &)
 
- Public Member Functions inherited from juce::Component::Positioner
 Positioner (Component &component) noexcept
 Creates a Positioner which can control the specified component.
 
virtual ~Positioner ()=default
 Destructor.
 
ComponentgetComponent () const noexcept
 Returns the component that this positioner controls.
 
virtual void applyNewBounds (const Rectangle< int > &newBounds)=0
 Attempts to set the component's position to the given rectangle.
 
- Public Member Functions inherited from juce::ComponentListener
virtual ~ComponentListener ()=default
 Destructor.
 
virtual void componentBroughtToFront (Component &component)
 Called when the component is brought to the top of the z-order.
 
virtual void componentVisibilityChanged (Component &component)
 Called when the component is made visible or invisible.
 
virtual void componentNameChanged (Component &component)
 Called when the component's name is changed.
 
virtual void componentEnablementChanged (Component &component)
 
- Public Member Functions inherited from juce::MarkerList::Listener
virtual ~Listener ()=default
 Destructor.
 

Protected Member Functions

virtual bool registerCoordinates ()=0
 
virtual void applyToComponentBounds ()=0
 

Friends

class DependencyFinderScope
 

Detailed Description

Base class for Component::Positioners that are based upon relative coordinates.

@tags{GUI}

Definition at line 35 of file juce_RelativeCoordinatePositioner.h.

Constructor & Destructor Documentation

◆ RelativeCoordinatePositionerBase()

juce::RelativeCoordinatePositionerBase::RelativeCoordinatePositionerBase ( Component comp)

Definition at line 236 of file juce_RelativeCoordinatePositioner.cpp.

◆ ~RelativeCoordinatePositionerBase()

juce::RelativeCoordinatePositionerBase::~RelativeCoordinatePositionerBase ( )
override

Definition at line 241 of file juce_RelativeCoordinatePositioner.cpp.

Member Function Documentation

◆ addCoordinate()

bool juce::RelativeCoordinatePositionerBase::addCoordinate ( const RelativeCoordinate coord)

Definition at line 291 of file juce_RelativeCoordinatePositioner.cpp.

◆ addPoint()

bool juce::RelativeCoordinatePositionerBase::addPoint ( const RelativePoint point)

Definition at line 299 of file juce_RelativeCoordinatePositioner.cpp.

◆ apply()

void juce::RelativeCoordinatePositionerBase::apply ( )

Definition at line 280 of file juce_RelativeCoordinatePositioner.cpp.

◆ componentBeingDeleted()

void juce::RelativeCoordinatePositionerBase::componentBeingDeleted ( Component component)
overridevirtual

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
componentthe component that was deleted

Reimplemented from juce::ComponentListener.

Definition at line 262 of file juce_RelativeCoordinatePositioner.cpp.

◆ componentChildrenChanged()

void juce::RelativeCoordinatePositionerBase::componentChildrenChanged ( Component component)
overridevirtual

Called when the component has children added or removed, or their z-order changes.

Parameters
componentthe component whose children have changed
See also
Component::childrenChanged, Component::addChildComponent, Component::removeChildComponent

Reimplemented from juce::ComponentListener.

Definition at line 256 of file juce_RelativeCoordinatePositioner.cpp.

◆ componentMovedOrResized()

void juce::RelativeCoordinatePositionerBase::componentMovedOrResized ( Component component,
bool  wasMoved,
bool  wasResized 
)
overridevirtual

Called when the component's position or size changes.

Parameters
componentthe component that was moved or resized
wasMovedtrue if the component's top-left corner has just moved
wasResizedtrue if the component's width or height has just changed
See also
Component::setBounds, Component::resized, Component::moved

Reimplemented from juce::ComponentListener.

Definition at line 246 of file juce_RelativeCoordinatePositioner.cpp.

◆ componentParentHierarchyChanged()

void juce::RelativeCoordinatePositionerBase::componentParentHierarchyChanged ( Component component)
overridevirtual

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
componentthe component that this listener is registered with
See also
Component::parentHierarchyChanged

Reimplemented from juce::ComponentListener.

Definition at line 251 of file juce_RelativeCoordinatePositioner.cpp.

◆ markerListBeingDeleted()

void juce::RelativeCoordinatePositionerBase::markerListBeingDeleted ( MarkerList markerList)
overridevirtual

Called when the given marker list is being deleted.

Reimplemented from juce::MarkerList::Listener.

Definition at line 274 of file juce_RelativeCoordinatePositioner.cpp.

◆ markersChanged()

void juce::RelativeCoordinatePositionerBase::markersChanged ( MarkerList markerList)
overridevirtual

Called when something in the given marker list changes.

Implements juce::MarkerList::Listener.

Definition at line 269 of file juce_RelativeCoordinatePositioner.cpp.

Friends And Related Symbol Documentation

◆ DependencyFinderScope

Definition at line 78 of file juce_RelativeCoordinatePositioner.h.


The documentation for this class was generated from the following files: