//
|
// HDLDiyArcSeekbar.h
|
// HDL_Widget_iOS
|
//
|
// Created by 陈嘉乐 on 2020/6/15.
|
// Copyright © 2020 JLChen. All rights reserved.
|
//
|
|
#import <UIKit/UIKit.h>
|
#import "SeekBarDelegate.h"
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface HDLDiyArcSeekbar : UIControl
|
|
|
/**
|
是否可以点击
|
*/
|
@property (nonatomic, assign) BOOL isClickable;
|
|
/**
|
背景颜色
|
*/
|
@property (nonatomic, strong) UIColor* mArcBackBarColor;
|
|
/**
|
当前值
|
*/
|
@property (nonatomic, assign) float mProgressCurrentValue;
|
|
/**
|
圆弧宽度
|
*/
|
@property (nonatomic, assign) float mArcWidth;
|
|
|
|
|
#pragma mark HDLRollSeekBarSeekBarProgressChangedDelegate
|
/**
|
进度值改变代理事件
|
*/
|
@property (nonatomic,weak) id<HDLSeekBarProgressChangedDelegate> mProgressChangedDelegate;
|
|
#pragma mark 对外接口方法
|
/**
|
设置进度值
|
|
@param mProgress 进度值
|
*/
|
-(void)setProgress:(int)mProgress;
|
|
/**
|
设置开口角度
|
|
@param mOpenAngle 开口角度
|
*/
|
-(void)setOpenAngle:(float)mOpenAngle;
|
|
/**
|
设置渐变效果
|
|
@param startColor 开始颜色
|
@param endColor 结束颜色
|
*/
|
-(void)setProgressBarColors:(UIColor *)startColor endColor:(UIColor*)endColor;
|
|
/**
|
设置进度条颜色
|
|
@param oneColor 单一颜色
|
*/
|
-(void)setProgressBarColor:(UIColor *)oneColor;
|
|
/**
|
设置离线时 进度条颜色
|
|
@param oneColor 单一颜色
|
*/
|
-(void)setOfflineProgressBarColor:(UIColor *)oneColor;
|
|
|
/**
|
设置最大值最小值
|
|
@param mMinValue 最小值
|
@param mMaxValue 最大值
|
*/
|
-(void)setMinAndMaxValue:(float)mMinValue mMaxValue:(float)mMaxValue;
|
|
/**
|
重置布局
|
|
@param mCGRect 布局
|
|
*/
|
-(void)initWithFrameSeekBar:(CGRect) mCGRect;
|
|
|
/**
|
设置边距
|
*/
|
-(void)setSeekBarPadding:(int)Padding;
|
|
|
/**
|
设置按钮宽度
|
*/
|
-(void)setThumbImgBtnWidth:(int)Width;
|
|
/**
|
设置拖动按钮图片
|
*/
|
-(void)setThumbImgBtnImg:(UIImage*) mImage;
|
|
/**
|
设置拖动按钮图片是否显示
|
*/
|
-(void)setThumbImgBtnShow:(BOOL) isShow;
|
|
/**
|
设置是否离线
|
*/
|
-(void)setOffline:(BOOL)isOffline;
|
|
|
/**
|
设置圆弧宽度
|
*/
|
-(void)setArcWidth:(float)mArcWidth;
|
|
@end
|
|
NS_ASSUME_NONNULL_END
|