ES-DE/src/components/MenuComponent.h

21 lines
444 B
C
Raw Normal View History

#pragma once
#include "NinePatchComponent.h"
#include "ComponentList.h"
#include "TextComponent.h"
class MenuComponent : public GuiComponent
{
public:
MenuComponent(Window* window, const char* title);
void onSizeChanged() override;
inline void addRow(const ComponentListRow& row, bool setCursorHere = false) { mList.addRow(row, setCursorHere); }
private:
NinePatchComponent mBackground;
TextComponent mTitle;
ComponentList mList;
};