add 'options' selectbox property
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user