mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-15 23:48:15 +08:00
Added on_enter() method to toggle
component
This commit is contained in:

committed by
Arthur Sonzogni

parent
a4d72c4d50
commit
33a970530b
@@ -27,7 +27,8 @@ class Toggle : public Component {
|
||||
|
||||
// Callback.
|
||||
std::function<void()> on_change = []() {};
|
||||
|
||||
std::function<void()> on_enter = []() {};
|
||||
|
||||
// Component implementation.
|
||||
Element Render() override;
|
||||
bool OnEvent(Event) override;
|
||||
|
Reference in New Issue
Block a user