|
Krotos Modules 3
|
#include <ResizableComponent.h>
Public Member Functions | |
| ResizableComponent (String name, int minimumWidth=15, int minumumHeight=15) | |
| void | resized () override |
| void | paint (Graphics &g) override |
| void | setResizable (bool isResizable) |
| ComponentBoundsConstrainer & | getConstrainer () |
Private Attributes | |
| std::unique_ptr< ResizableBorderComponent > | resizableBorder |
| ComponentBoundsConstrainer | constrainer |
A simple component that can resize itself and its children using a resizable border.
Add a component to this as a child and it will be automatically resized when this is resized. Think of it like a resizable wrapper around a component.
| krotos::ResizableComponent::ResizableComponent | ( | String | name, |
| int | minimumWidth = 15, | ||
| int | minumumHeight = 15 ) |
Creates a resizable component, setting it's name at the same time. Use just like you would a normal juce component. name The component name
|
inline |
Returns a reference to the ComponentBoundsConstrainer to allow configuration of constraint restrictions such as minimum & maximum size, etc.
|
override |
|
override |
|
inline |
Sets the visibility of the ResizableBorder
|
private |
|
private |