Instance Method

volumeThumbRectForBounds:volumeSliderRect:value:

Returns the drawing rectangle for the volume slider’s thumb image.

Declaration

- (CGRect)volumeThumbRectForBounds:(CGRect)bounds volumeSliderRect:(CGRect)rect value:(float)value;

Parameters

bounds

The bounding rectangle of the receiver.

rect

The drawing rectangle for the receiver’s track, as returned by the volumeSliderRectForBounds: method.

value

The current value of the volume slider.

Return Value

The computed drawing rectangle for the thumb image.

Discussion

The rectangle you return should reflect the size of your thumb image and its current position on the slider’s track.

See Also

Customizing the Volume Slider

- maximumVolumeSliderImageForState:

Returns the maximum volume image associated with the specified control state.

- minimumVolumeSliderImageForState:

Returns the minimum volume image associated with the specified control state.

- setMaximumVolumeSliderImage:forState:

Assigns a maximum volume slider image to the specified control states.

- setMinimumVolumeSliderImage:forState:

Assigns a minimum volume slider image to the specified control states.

- setVolumeThumbImage:forState:

Assigns a thumb image to the specified control states.

- volumeSliderRectForBounds:

Returns the drawing rectangle for the slider’s track.

- volumeThumbImageForState:

Returns the thumb image associated with the specified control state.

volumeWarningSliderImage

The image used to designate the European Union volume limit.