SPAOP
|
A GUI component that wraps another ComponentWithFocusPoint, adding the ability to zoom in and out and to scroll. More...
#include <ZoomPort.h>
Public Member Functions | |
ZoomPort (const String &componentName=String::empty) | |
Constructor. More... | |
virtual | ~ZoomPort () |
Destructor. More... | |
bool | setWrappedComponent (ComponentWithFocusPoint *wrappedComponent) |
Sets the component that is wrapped by this ZoomPort. More... | |
void | paint (Graphics &) |
void | resized () |
void | setZoomFactor (float zoomFactor) |
Sets the zoom-factor. More... | |
float | getZoomFactor () |
Returns the current zoom-factor. More... | |
A GUI component that wraps another ComponentWithFocusPoint, adding the ability to zoom in and out and to scroll.
Note that the child component is assumed to have the same size as this component: setting the zoom-factor to 1.0 will set the size of the wrapped component to the size of this component.
wonderjuce::ZoomPort::ZoomPort | ( | const String & | componentName = String::empty | ) |
Constructor.
|
virtual |
Destructor.
float wonderjuce::ZoomPort::getZoomFactor | ( | ) |
void wonderjuce::ZoomPort::paint | ( | Graphics & | g | ) |
void wonderjuce::ZoomPort::resized | ( | ) |
bool wonderjuce::ZoomPort::setWrappedComponent | ( | ComponentWithFocusPoint * | wrappedComponent | ) |
void wonderjuce::ZoomPort::setZoomFactor | ( | float | zoomFactor | ) |