AbstractSliderWrapper.cs 446 B

123456789101112131415161718192021222324
  1. using System;
  2. namespace wf.ui
  3. {
  4. public abstract class AbstractSliderWrapper<T>
  5. {
  6. public abstract T slider { get; }
  7. public abstract float srcValueToSliderValue { get; }
  8. public virtual void Initialize(T setSlider)
  9. {
  10. this.slider_ = setSlider;
  11. }
  12. public abstract void UpdateSlider();
  13. protected abstract void OnChangeSliderValue();
  14. public Action<AbstractSliderWrapper<T>> onChangeSliderValue;
  15. protected T slider_;
  16. }
  17. }