Structureswift 6.0.3Foundation
CGRect
struct CGRect
struct CGRect
import Foundation
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol Decodable
A type that can decode itself from an external representation.
protocol Encodable
A type that can encode itself to an external representation.
protocol Equatable
A type that can be compared for value equality.
protocol Escapable
protocol Sendable
init()
init(from decoder: any Decoder) throws
init(origin: CGPoint, size: CGSize)
init(x: Double, y: Double, width: Double, height: Double)
init(x: Int, y: Int, width: Int, height: Int)
init(x: CGFloat, y: CGFloat, width: CGFloat, height: CGFloat)
static let infinite: CGRect
static let null: CGRect
static var zero: CGRect { get }
var height: CGFloat { get }
var integral: CGRect { get }
var isEmpty: Bool { get }
var isInfinite: Bool { get }
var isNull: Bool { get }
var maxX: CGFloat { get }
var maxY: CGFloat { get }
var midX: CGFloat { get }
var midY: CGFloat { get }
var minX: CGFloat { get }
var minY: CGFloat { get }
var origin: CGPoint
var size: CGSize
var standardized: CGRect { get }
var width: CGFloat { get }
static func == (lhs: CGRect, rhs: CGRect) -> Bool
func contains(_ point: CGPoint) -> Bool
func contains(_ rect2: CGRect) -> Bool
func divided(atDistance: CGFloat, from fromEdge: CGRectEdge) -> (slice: CGRect, remainder: CGRect)
func encode(to encoder: any Encoder) throws
func insetBy(dx: CGFloat, dy: CGFloat) -> CGRect
func intersection(_ r2: CGRect) -> CGRect
func intersects(_ r2: CGRect) -> Bool
func offsetBy(dx: CGFloat, dy: CGFloat) -> CGRect
func union(_ r2: CGRect) -> CGRect
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.