ScreenObject
open class ScreenObject
extension ScreenObject: Hashable
The ScreenObject class is the abstract class for all objects that are rendered on the screen.
-
The horizontal alignment for the screen object.
See moreDeclaration
Swift
public enum HorizontalAlignment
-
The vertical alignment for the screen object.
See moreDeclaration
Swift
public enum VerticalAlignment
-
The screen object container that contains this screen object
Declaration
Swift
public internal(set) weak var parent: ScreenObjectContainer? { get }
-
Specifies the size rectangle.
Declaration
Swift
public var size: CGSize { get set }
-
The bounds rectangle.
Declaration
Swift
public internal(set) var bounds: CGRect { get }
-
Specifies the visibility of the object.
Declaration
Swift
public var isVisible: Bool
-
Specifies the default spacing to laying out content in the screen object.
Declaration
Swift
public var layoutMargin: NSEdgeInsets
-
Specifies the default spacing to laying out content in the screen object.
-
Specifies the radius to use when drawing rounded corners.
Declaration
Swift
public var cornerRadius: CGFloat
-
Specifies the alignment position along the vertical axis.
Declaration
Swift
public var verticalAlignment: VerticalAlignment
-
Specifies the alignment position along the horizontal axis.
Declaration
Swift
public var horizontalAlignment: HorizontalAlignment
-
Creates a screen object.
Declaration
Swift
public init()
-
Invalidates the current layout and triggers a layout update.
Declaration
Swift
public func invalidateLayout()
-
Makes cgImage for offscreen image.
Declaration
Swift
open func makeImage(_ renderer: some ScreenRenderer) -> CGImage?
-
Makes screen object bounds for offscreen image.
Declaration
Swift
open func makeBounds(_ size: CGSize) -> CGRect
-
Declaration
Swift
public static func == (lhs: ScreenObject, rhs: ScreenObject) -> Bool
-
Declaration
Swift
public func hash(into hasher: inout Hasher)