Skip to content
9miao edited this page Oct 8, 2014 · 2 revisions

CASlider

Class Description

Slider, it supports fine-tuning operations such as adjusting volume size and scaling view.

Effect Picture


Base Class

CAControl

Attribute

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

Method

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

Attribute Description

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{}.

Method Description

void addTarget(CAObject target, SEL_CAControl selector)*
Return value: void

Type

Parameter name

Description

CAObject*

target

current object

SEL_CAControl

selector

function callback

Descripiton: add a click event for slider

void removeTarget(CAObject target, SEL_CAControl selector)*
Return value: void
Descripiton: remove slider’s click event

Clone this wiki locally