bool Slider::notifyMouseReleased(const int button, const int x, const int y) { if(_isDragging && button == SDL_BUTTON_LEFT) { _isDragging = false; if(_onChangeFunction) { _onChangeFunction(getValue()); } return true; } return false; }
void TextBox::onChange() { if (_onChangeFunction) _onChangeFunction(_onChangeData); }