iPlug2 - C++ Audio Plug-in Framework
Loading...
Searching...
No Matches
Classes | Typedefs
IVTabbedPagesControl.h File Reference
#include "IControls.h"
#include "IBubbleControl.h"
#include <map>

Go to the source code of this file.

Classes

class  IVTabPage
 A control used as the base class for a tabbed page of subcontrols. More...
 
class  IVTabbedPagesControl
 A control to manage tabbed pages of sub controls Basic usage example: More...
 

Typedefs

using PageMap = std::map< const char *, IVTabPage * >
 

Detailed Description

A control to manage tabbed pages of sub controls Basic usage example:

pGraphics->AttachControl(new IVTabbedPagesControl(bounds,
{
{"1", new IVTabPage([](IVTabPage* pPage, const IRECT& r) {
pPage->AddChildControl(new IPanelControl(IRECT(), COLOR_RED));
})},
{"2", new IVTabPage([](IVTabPage* pPage, const IRECT& r) {
pPage->AddChildControl(new IPanelControl(IRECT(), COLOR_GREEN));
})},
{"3", new IVTabPage([](IVTabPage* pPage, const IRECT& r) {
pPage->AddChildControl(new IPanelControl(IRECT(), COLOR_BLUE));
})}
}, "Tabbed Pages Demo"));
A basic control to fill a rectangle with a color or gradient.
Definition: IControl.h:1969
A control used as the base class for a tabbed page of subcontrols.
A control to manage tabbed pages of sub controls Basic usage example:
Used to manage a rectangular area, independent of draw class/platform.

Laying out subcontrols on each page is done by passing a ResizeFunc lambda to the IVTabPage constructor, which is called when the page is attached to the IVTabbedPagesControl. The default implementation of this function will resize the single child of the IVTabPage to fit the page bounds, but you can override this

Definition in file IVTabbedPagesControl.h.

Typedef Documentation

◆ PageMap

using PageMap = std::map<const char*, IVTabPage*>

Definition at line 83 of file IVTabbedPagesControl.h.