#include <ModulationAssignerDropArea.h>
◆ ModulationAssignerDropArea()
| krotos::ModulationAssignerDropArea::ModulationAssignerDropArea |
( |
| ) |
|
◆ addDropComponent()
◆ addMultiDropComponent()
◆ drawSingleRowAsColumn()
| void krotos::ModulationAssignerDropArea::drawSingleRowAsColumn |
( |
bool | isColumn | ) |
|
|
inline |
Set this to true if a DropArea with a single row of items should draw as a column, i.e. The drop components will span the full horizontal width of the DropArea.
◆ findDropComponent()
| DropComponent * krotos::ModulationAssignerDropArea::findDropComponent |
( |
const String & | kwidgetID, |
|
|
int | modSourceID ) |
Searches all the DropComponents in this DropArea to find which one is attached to the given kwidget modulation source, and returns a pointer to it.
- Parameters
-
| kwidgetID | The ID of the modulator kwidget that this DropComponent is assigned to |
| modSourceID | The index of the modulation source that this DropComponent is assigned to e.g. ("XYPad1", 0) would try and return the DropComponent that is being used to assign modulation to XYPad1's X axis. |
- Returns
- A pointer to the DropComponent, or nullptr if not found.
◆ getDropComponents()
| const OwnedArray< DropComponent > & krotos::ModulationAssignerDropArea::getDropComponents |
( |
| ) |
const |
|
inlinenoexcept |
Returns an array of the child drop components.
◆ getNumDropComponents()
| int krotos::ModulationAssignerDropArea::getNumDropComponents |
( |
| ) |
const |
|
inlinenoexcept |
Returns the number of child drop components.
◆ paint()
| void krotos::ModulationAssignerDropArea::paint |
( |
Graphics & | g | ) |
|
|
override |
◆ removeComponent()
| void krotos::ModulationAssignerDropArea::removeComponent |
( |
const String & | kwidgetID | ) |
|
Remove a drop component using its associated kwidgetID.
◆ resized()
| void krotos::ModulationAssignerDropArea::resized |
( |
| ) |
|
|
override |
◆ setMargin()
| void krotos::ModulationAssignerDropArea::setMargin |
( |
float | margin | ) |
|
Sets the flex box margin.
◆ setNumComponentsPerRow()
| void krotos::ModulationAssignerDropArea::setNumComponentsPerRow |
( |
int | min, |
|
|
int | max ) |
|
inline |
Set the min / max number of drop components allowed per row in the flex box.
◆ m_borderColour
| Colour krotos::ModulationAssignerDropArea::m_borderColour {Colours::red} |
|
private |
◆ m_dropComponents
| OwnedArray<DropComponent> krotos::ModulationAssignerDropArea::m_dropComponents |
|
private |
◆ m_margin
| float krotos::ModulationAssignerDropArea::m_margin {1.0f} |
|
private |
◆ m_maxPerRow
| int krotos::ModulationAssignerDropArea::m_maxPerRow {3} |
|
private |
◆ m_minPerRow
| int krotos::ModulationAssignerDropArea::m_minPerRow {3} |
|
private |
◆ m_multiDropComponents
◆ m_singleRowColumn
| bool krotos::ModulationAssignerDropArea::m_singleRowColumn {false} |
|
private |
The documentation for this class was generated from the following files: