-
Notifications
You must be signed in to change notification settings - Fork 421
CASlider
Slider, it supports fine-tuning operations such as adjusting volume size and scaling view.
CAControl
Access modifier |
Attribute name |
Description |
protected |
Value |
slider current value |
protected |
MinValue |
min slider value |
protected |
MaxValue |
max slider value |
protected |
TrackHeight |
slider height |
protected |
MinTrackTintImage |
progress image |
protected |
MaxTrackTintImage |
background image |
protected |
ThumbTintImage |
sliding block image |
Access modifier |
Method name |
Description |
public |
addTarget |
add sliding event |
public |
removeTarget |
remove sliding event |
public |
setValue |
set slider current value |
public |
setMinValue |
set slider min value |
public |
setMaxValue |
set slider max value |
public |
setMaxValue |
set slider height |
public |
setMinTrackTintImage |
set slider’s foreground image |
public |
setMaxTrackTintImage |
set slider’s background image |
public |
setThumbTintImage |
set sliding block image |
Value
Type: float
Descripiton: slider current value, get/set{}.
MinValue
Type: float
Descripiton: slider min value, get/set{}.
MaxValue
Type: float
Descripiton: max slider value, get/set{}.
TrackHeight
Type: float
Descripiton: slider height, get/set{}.
MinTrackTintImage
Type: CAImage*
Descripiton: slider’s foreground image, get/set{}.
MaxTrackTintImage
Type: CAImage*
Descripiton: slider background image, get/set{}.
ThumbTintImage
Type: CAImage*
Descripiton: sliding block image, get/set{}.
void addTarget(CAObject target, SEL_CAControl selector)*
Return value: void
Type |
Parameter name |
Description |
CAObject* |
target |
current object |
SEL_CAControl |
selector |
function callback |
void removeTarget(CAObject target, SEL_CAControl selector)*
Return value: void
Descripiton: remove slider’s click event