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

23 lines
412 B
C
Raw Normal View History

2020-06-27 09:47:30 +00:00
#pragma once
#include "Widget.h"
#include "StackWidget.h"
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>;