mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-27 06:01:14 +01:00
UI
Add virtual event methods to UI_item and override them in derived class
This commit is contained in:
@@ -9,7 +9,7 @@ class UI_slider : public UI_item
|
||||
UI_slider(std::string id, std::string text, Color fg_color, Color bg_color, double min, double max, double value, std::function<void(std::string, double)> on_change = nullptr);
|
||||
UI_slider(const json& j);
|
||||
|
||||
void set_value(double value);
|
||||
void set_value(double value) override;
|
||||
double value() const;
|
||||
|
||||
void from_json(const json& j) override;
|
||||
|
||||
Reference in New Issue
Block a user