gzdoom/libraries/ZWidget/include/zwidget/widgets/listview/listview.h

20 lines
318 B
C
Raw Normal View History

2023-12-26 23:44:40 +00:00
#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;
};