mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-18 00:54:19 +00:00
Added a BurgerMenu component which will display your menus and menu items in a "burger" menu
This commit is contained in:
parent
ccbe16f7df
commit
e2a0759ab3
10 changed files with 561 additions and 34 deletions
|
|
@ -124,6 +124,8 @@ public:
|
|||
demoList.getViewport()->setScrollOnDragEnabled (true);
|
||||
|
||||
addAndMakeVisible (demoList);
|
||||
addAndMakeVisible (sidePanel);
|
||||
sidePanel.setAlwaysOnTop (true);
|
||||
}
|
||||
|
||||
~ContentComponent()
|
||||
|
|
@ -246,9 +248,15 @@ public:
|
|||
return currentDemo != nullptr && currentDemo->getName().contains ("OpenGL 2D");
|
||||
}
|
||||
|
||||
SidePanel& getSharedSidePanel()
|
||||
{
|
||||
return sidePanel;
|
||||
}
|
||||
|
||||
private:
|
||||
ListBox demoList;
|
||||
ScopedPointer<Component> currentDemo;
|
||||
SidePanel sidePanel {"Menu", 300, false};
|
||||
|
||||
LookAndFeel_V1 lookAndFeelV1;
|
||||
LookAndFeel_V2 lookAndFeelV2;
|
||||
|
|
@ -745,6 +753,11 @@ int MainAppWindow::getActiveRenderingEngine() const
|
|||
return 0;
|
||||
}
|
||||
|
||||
SidePanel& MainAppWindow::getSharedSidePanel()
|
||||
{
|
||||
return getMainAppWindow()->contentComponent->getSharedSidePanel();
|
||||
}
|
||||
|
||||
Path MainAppWindow::getJUCELogoPath()
|
||||
{
|
||||
return Drawable::parseSVGPath (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue