Files
Upsilon/apps/settings/settings_node.h
Émilie Feral ca9ff19c21 [apps/settings] Implement setting menu with a tree (for navigation)
Change-Id: Ie27c3c25085a279c47eb53f3f1054d970b607f8b
2017-01-30 15:30:58 +01:00

24 lines
439 B
C++

#ifndef SETTINGS_NODE_H
#define SETTINGS_NODE_H
#include "../node.h"
namespace Settings {
class SettingsNode : public Node {
public:
constexpr SettingsNode(const char * label = nullptr, const SettingsNode * children = nullptr, int numberOfChildren = 0) :
Node(label, numberOfChildren),
m_children(children)
{
};
const Node * children(int index) const override;
private:
const SettingsNode * m_children;
};
}
#endif