Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
2 contributors

Users who have contributed to this file

@Maddimax @gitoby
41 lines (31 sloc) 916 Bytes
#pragma once
#include <bdn/ui/View.h>
#include <bdn/ui/ViewUtilities.h>
#include <deque>
namespace bdn::ui
{
namespace detail
{
VIEW_CORE_REGISTRY_DECLARATION(NavigationView)
}
class NavigationView : public View
{
public:
NavigationView(std::shared_ptr<ViewCoreFactory> viewCoreFactory = nullptr);
~NavigationView() override = default;
void pushView(std::shared_ptr<View> view, std::string title);
void popView();
public:
std::vector<std::shared_ptr<View>> childViews() const override;
protected:
void bindViewCore() override;
public:
class Core
{
public:
virtual void pushView(std::shared_ptr<View> view, std::string title) = 0;
virtual void popView() = 0;
virtual std::vector<std::shared_ptr<View>> childViews() const = 0;
};
};
}
You can’t perform that action at this time.