stuff-from-scratch/src/client/TabbedPanelWidget.h

24 lines
430 B
C
Raw Normal View History

2020-06-27 09:47:30 +00:00
#pragma once
#include "Widget.h"
#include "StackWidget.h"
2021-09-26 20:42:35 +00:00
#include <string>
2020-06-27 09:47:30 +00:00
class TabbedPanelWidget : public Widget
{
Widget* mNavPanel;
StackWidget* mStack;
public:
TabbedPanelWidget();
static std::unique_ptr<TabbedPanelWidget> Create();
void AddPanel(WidgetUPtr panel, const std::string& label);
StackWidget* GetStack() const;
};
using TabbedPanelWidgetUPtr = std::unique_ptr<TabbedPanelWidget>;