add 'options' selectbox property

This commit is contained in:
MihailRis
2025-06-28 14:01:22 +03:00
parent 2aff1a39eb
commit ba13a4b61c
3 changed files with 55 additions and 0 deletions
+4
View File
@@ -58,6 +58,10 @@ const std::vector<SelectBox::Option>& SelectBox::getOptions() const {
return options;
}
void SelectBox::setOptions(std::vector<Option>&& options) {
this->options = std::move(options);
}
void SelectBox::drawBackground(const DrawContext& pctx, const Assets&) {
glm::vec2 pos = calcPos();
auto batch = pctx.getBatch2D();
+2
View File
@@ -32,6 +32,8 @@ namespace gui {
const std::vector<Option>& getOptions() const;
void setOptions(std::vector<Option>&& options);
void drawBackground(const DrawContext& pctx, const Assets&) override;
};
}