Umsci
Upmix Spatial Control Interface — OCA/OCP.1 spatial audio utility
Loading...
Searching...
No Matches
CustomAboutItem Class Reference

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ CustomAboutItem()

CustomAboutItem::CustomAboutItem ( juce::Component *  componentToHold,
juce::Rectangle< int >  minIdealSize 
)
inline

Definition at line 39 of file CustomPopupMenuComponent.h.

◆ ~CustomAboutItem()

CustomAboutItem::~CustomAboutItem ( )
inline

Definition at line 46 of file CustomPopupMenuComponent.h.

Member Function Documentation

◆ getIdealSize()

void CustomAboutItem::getIdealSize ( int &  idealWidth,
int &  idealHeight 
)
inlineoverride

Definition at line 52 of file CustomPopupMenuComponent.h.

◆ resized()

void CustomAboutItem::resized ( )
inlineoverride

Definition at line 90 of file CustomPopupMenuComponent.h.


The documentation for this class was generated from the following file: