Screen

public final class Screen : ScreenObjectContainerConvertible
extension Screen: Running

An object that manages offscreen rendering a foundation.

  • The total of child counts.

    Declaration

    Swift

    public var childCounts: Int { get }
  • Specifies the delegate object.

    Declaration

    Swift

    public weak var delegate: (any ScreenDelegate)?
  • Specifies the frame rate to use when output a video.

    Declaration

    Swift

    public var frameRate: Int { get set }
  • Specifies the video size to use when output a video.

    Declaration

    Swift

    public var size: CGSize { get set }
  • Declaration

    Swift

    public var isRunning: Atomic<Bool> { get }
  • Specifies the background color.

    Declaration

    Swift

    public var backgroundColor: CGColor { get set }
  • Specifies the background color.

  • Adds the specified screen object as a child of the current screen object container.

    Declaration

    Swift

    public func addChild(_ child: ScreenObject?) throws
  • Removes the specified screen object as a child of the current screen object container.

    Declaration

    Swift

    public func removeChild(_ child: ScreenObject?)

Running