Screen Saver Functions

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


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.


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.


func SSCenteredRectInRect(NSRect, NSRect) -> NSRect

This function returns a rectangle.