Screen Saver Functions

Functions and function-like macros available in the Screen Saver framework.

Overview

Several of the functions produce random values. These make use of the C random number generator, random(), which the Screen Saver framework will automatically seed.

Topics

Random Numbers

func SSRandomIntBetween(Int32, Int32) -> Int32

This function returns a random integer value.

func SSRandomFloatBetween(CGFloat, CGFloat) -> CGFloat

This function returns a random float value.

Rectangles

func SSCenteredRectInRect(NSRect, NSRect) -> NSRect

This function returns a rectangle.