Instance Method

imageRect(forContentRect:)

Returns the rectangle in which the receiver draws its image.

Declaration

func imageRect(forContentRect contentRect: CGRect) -> CGRect

Parameters

contentRect

The content rectangle for the receiver.

Return Value

The rectangle in which the receiver draws its image.

See Also

Getting Dimensions

func backgroundRect(forBounds: CGRect) -> CGRect

Returns the rectangle in which the receiver draws its background.

func contentRect(forBounds: CGRect) -> CGRect

Returns the rectangle in which the receiver draws its entire content.

func titleRect(forContentRect: CGRect) -> CGRect

Returns the rectangle in which the receiver draws its title.