![]() |
Umsci
Upmix Spatial Control Interface — OCA/OCP.1 spatial audio utility
|
A juce::PopupMenu::CustomComponent wrapper that embeds an arbitrary juce::Component as a full-size item inside a JUCE PopupMenu.
More...
#include <CustomPopupMenuComponent.h>
Inheritance diagram for CustomAboutItem:
Collaboration diagram for CustomAboutItem:Public Member Functions | |
| CustomAboutItem (juce::Component *componentToHold, juce::Rectangle< int > minIdealSize) | |
| ~CustomAboutItem () | |
| void | getIdealSize (int &idealWidth, int &idealHeight) override |
| void | resized () override |
A juce::PopupMenu::CustomComponent wrapper that embeds an arbitrary juce::Component as a full-size item inside a JUCE PopupMenu.
Used to show AboutComponent inside the settings popup menu without requiring a separate window. getIdealSize() sizes the item to 75 % of the main display dimension (square), clamped to a caller-supplied minimum.
Ownership of componentToHold is not transferred — the caller must keep the component alive for at least as long as this item exists.
Definition at line 36 of file CustomPopupMenuComponent.h.
|
inline |
Definition at line 39 of file CustomPopupMenuComponent.h.
|
inline |
Definition at line 46 of file CustomPopupMenuComponent.h.
|
inlineoverride |
Definition at line 52 of file CustomPopupMenuComponent.h.
|
inlineoverride |
Definition at line 90 of file CustomPopupMenuComponent.h.