add 'select' element (WIP)

This commit is contained in:
MihailRis
2025-06-27 22:50:47 +03:00
parent f473df33fb
commit 3571d0c902
4 changed files with 91 additions and 3 deletions
+26
View File
@@ -0,0 +1,26 @@
#pragma once
#include "Button.hpp"
namespace gui {
class Label;
class SelectBox : public Button {
public:
struct Element {
std::string value;
std::wstring text;
};
private:
std::vector<Element> elements;
Element selected {};
public:
SelectBox(
GUI& gui,
std::vector<Element>&& elements,
Element selected,
int contentWidth,
const glm::vec4& padding
);
};
}