WidgetFunctionView.h 720 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // WidgetFunctionView.h
  3. // ;ForStudent
  4. //
  5. // Created by 王智 on 2022/9/13.
  6. //
  7. #import <UIKit/UIKit.h>
  8. #import "WidgetDotView.h"
  9. @protocol MetronomeFunctionDelegate <NSObject>
  10. /** 加减号改变频率 */
  11. - (void)clickChangeSpeed:(int)speed;
  12. - (void)clickChangeBeat;
  13. @end
  14. NS_ASSUME_NONNULL_BEGIN
  15. @interface WidgetFunctionView : UIView
  16. @property (nonatomic, assign) KSMetronomeType currentMetronomeType;
  17. @property (nonatomic, assign) int speed;
  18. @property (weak, nonatomic) IBOutlet UIButton *signatureButton;
  19. @property (nonatomic, assign) CGFloat volumeRate;
  20. + (instancetype)shareInstance;
  21. /** 代理 */
  22. @property (nonatomic, weak) id <MetronomeFunctionDelegate> delegate;
  23. @end
  24. NS_ASSUME_NONNULL_END