Mema
Memory Matrix — multi-channel audio matrix monitor and router
Loading...
Searching...
No Matches
CustomAboutItem Class Reference

#include <CustomPopupMenuComponent.h>

+ Inheritance diagram for CustomAboutItem:
+ Collaboration diagram for CustomAboutItem:

Public Member Functions

 CustomAboutItem (juce::Component *componentToHold, juce::Rectangle< int > minIdealSize)
 Constructs the item, holding the given component with a minimum size hint.
 
 ~CustomAboutItem ()
 
void getIdealSize (int &idealWidth, int &idealHeight) override
 Returns the ideal display size for this item, scaled to the main window.
 
void resized () override
 Resizes the held component to fill the item bounds.
 

Detailed Description

popup menu item that wraps an arbitrary component and computes a sensible ideal size.

Definition at line 25 of file CustomPopupMenuComponent.h.

Constructor & Destructor Documentation

◆ CustomAboutItem()

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

Constructs the item, holding the given component with a minimum size hint.

Definition at line 29 of file CustomPopupMenuComponent.h.

◆ ~CustomAboutItem()

CustomAboutItem::~CustomAboutItem ( )
inline

Definition at line 36 of file CustomPopupMenuComponent.h.

Member Function Documentation

◆ getIdealSize()

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

Returns the ideal display size for this item, scaled to the main window.

Definition at line 43 of file CustomPopupMenuComponent.h.

◆ resized()

void CustomAboutItem::resized ( )
inlineoverride

Resizes the held component to fill the item bounds.

Definition at line 82 of file CustomPopupMenuComponent.h.


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