mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-24 15:15:38 +00:00
3ba7cd1247
More new art to go with it (thanks Nils!).
21 lines
444 B
C++
21 lines
444 B
C++
#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;
|
|
};
|