20 #ifndef COMPONENTWITHFOCUSPOINT_H_INCLUDED
21 #define COMPONENTWITHFOCUSPOINT_H_INCLUDED
23 #include "JuceHeader.h"
25 namespace wonderjuce {
37 Component(componentName)
71 #endif // COMPONENTWITHFOCUSPOINT_H_INCLUDED
An abstract class extending juce::Component, adding methods to query a "focus point".
Definition: ComponentWithFocusPoint.h:32
virtual ~ComponentWithFocusPoint()
Destructor.
Definition: ComponentWithFocusPoint.h:41
virtual Point< float > getFocusPoint()=0
Returns the "focus point", the point where this component shall be auto-centered (for example...
virtual float getFocusPointY()=0
Returns the y-coordinate of the "focus point".
virtual float getFocusPointX()=0
Returns the x-coordinate of the "focus point".
ComponentWithFocusPoint(const String &componentName=String::empty)
Constructor.
Definition: ComponentWithFocusPoint.h:36