20 #ifndef ZOOMPORT_H_INCLUDED
21 #define ZOOMPORT_H_INCLUDED
24 #include "JuceHeader.h"
43 ZoomPort(
const String& componentName = String::empty);
57 void paint (Graphics&);
78 void setWrappedComponentsSize();
85 JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (
ZoomPort)
91 #endif // ZOOMPORT_H_INCLUDED
An abstract class extending juce::Component, adding methods to query a "focus point".
Definition: ComponentWithFocusPoint.h:32
virtual ~ZoomPort()
Destructor.
Definition: ZoomPort.cpp:31
void paint(Graphics &)
Definition: ZoomPort.cpp:48
void setZoomFactor(float zoomFactor)
Sets the zoom-factor.
Definition: ZoomPort.cpp:58
void resized()
Definition: ZoomPort.cpp:53
float getZoomFactor()
Returns the current zoom-factor.
Definition: ZoomPort.cpp:75
A GUI component that wraps another ComponentWithFocusPoint, adding the ability to zoom in and out and...
Definition: ZoomPort.h:39
bool setWrappedComponent(ComponentWithFocusPoint *wrappedComponent)
Sets the component that is wrapped by this ZoomPort.
Definition: ZoomPort.cpp:35
ZoomPort(const String &componentName=String::empty)
Constructor.
Definition: ZoomPort.cpp:24