mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-12-02 08:53:42 +00:00
20 lines
318 B
C
20 lines
318 B
C
|
|
||
|
#pragma once
|
||
|
|
||
|
#include "../../core/widget.h"
|
||
|
#include <vector>
|
||
|
|
||
|
class ListView : public Widget
|
||
|
{
|
||
|
public:
|
||
|
ListView(Widget* parent = nullptr);
|
||
|
|
||
|
void AddItem(const std::string& text);
|
||
|
|
||
|
protected:
|
||
|
void OnPaint(Canvas* canvas) override;
|
||
|
void OnPaintFrame(Canvas* canvas) override;
|
||
|
|
||
|
std::vector<std::string> items;
|
||
|
};
|