118 class MultiChoiceRemapperSource;
119 class MultiChoiceRemapperSourceWithDefault;
122 static int getTotalButtonsHeight (
int);
123 void lookAndFeelChanged()
override;
126 static constexpr int collapsedHeight = 125;
127 static constexpr int buttonHeight = 25;
128 static constexpr int expandAreaHeight = 20;
130 int maxHeight = 0, numHidden = 0;
131 bool expandable =
false, expanded =
false;
135 ShapeButton expandButton {
"Expand", Colours::transparentBlack, Colours::transparentBlack, Colours::transparentBlack };
Holds a resizable array of primitive or copy-by-value objects.
A graphics context, used for drawing a component or image.
A PropertyComponent that shows its value as an expandable list of ToggleButtons.
void resized() override
Called when this component's size has been changed.
void refresh() override
Updates the property component if the item it refers to has changed.
void paint(Graphics &g) override
Components can override this method to draw their content.
bool isExpandable() const noexcept
Returns true if the list of options has been truncated and can be expanded.
bool isExpanded() const noexcept
Returns true if the list of options is expanded.
void setExpanded(bool expanded) noexcept
Expands or shrinks the list of options if they are not all visible.
std::function< void()> onHeightChange
You can assign a lambda to this callback object to have it called when the height of this component c...
An array designed for holding objects.
A base class for a component that goes in a PropertyPanel and displays one of an item's properties.
A special array for holding a list of strings.
This class acts as a wrapper around a property inside a ValueTree.
Represents a shared variant value.
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...