Instance Method

shouldDrawColor()

Returns a Boolean value indicating whether the view is being drawn to an environment that supports color.

Declaration

func shouldDrawColor() -> Bool

Return Value

true if the view’s window supports color drawing or false if it does not.

Discussion

A view object can base its drawing behavior on the return value of this method to improve its appearance in grayscale windows. This method might return false when the view’s window does not store color information because the content is destined for a grayscale printer.

See Also

Deprecated Methods

func allocateGState()

Causes the view to maintain a private graphics state object, which encapsulates all parameters of the graphics environment.

Deprecated
func gState() -> Int

Returns the identifier for the view’s graphics state object, or 0 if the view doesn’t have a graphics state object.

Deprecated
func setUpGState()

Overridden by subclasses to (re)initialize the view’s graphics state object.

Deprecated
func renewGState()

Invalidates the view’s graphics state object, if it has one.

Deprecated
func releaseGState()

Frees the view’s graphics state object, if it has one.

Deprecated