SwiftstructCoreGraphics
struct CoreGraphics.Region
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolSwift.BidirectionalCollection
- protocolSwift.Collection
- protocolSwift.CustomReflectable
- protocolSwift.Decodable
- protocolSwift.Encodable
- protocolSwift.Equatable
- protocolSwift.ExpressibleByArrayLiteral
- protocolSwift.Hashable
- protocolSwift.Sequence
- protocolSwift.SetAlgebra
Members 59
- var
static var infinite: CoreGraphics.Region { get } - field
var allSegments: ContiguousArray<CoreGraphics.CGFloat> - field
var extent: CoreGraphics.Extent - field
var spanEnds: ContiguousArray<UInt32> - field
var spanMinYs: ContiguousArray<CoreGraphics.CGFloat> - func
apply(CGAffineTransform) -> () - func
apply<A where A: Collection, A.Element == CoreGraphics.Region.Operation>(A) -> () - func
contains(CGRect) -> Bool - func
contains(CGPoint) -> Bool - func
contour(options: CoreGraphics.Region.ContourOptions) -> some Swift.Sequence<CoreGraphics.Region.Points> - func
contourPath(options: CoreGraphics.Region.ContourOptions) -> CGPathRef - func
distance(from: CoreGraphics.Region.Index, to: CoreGraphics.Region.Index) -> Int - func
formIntersection(CoreGraphics.Region) -> () - func
formIntersection(CGRect) -> () - func
formSymmetricDifference(CoreGraphics.Region) -> () - func
formSymmetricDifference(CGRect) -> () - func
formUnion(CoreGraphics.Region) -> () - func
formUnion(CGRect) -> () - func
index(after: __owned CoreGraphics.Region.Index) -> CoreGraphics.Region.Index - func
index(before: __owned CoreGraphics.Region.Index) -> CoreGraphics.Region.Index - func
insetBy(dx: CoreGraphics.CGFloat, dy: CoreGraphics.CGFloat) -> CoreGraphics.Region - func
isDisjoint(with: CoreGraphics.Region) -> Bool - func
isSuperset(of: CoreGraphics.Region) -> Bool - func
subregions(options: CoreGraphics.Region.ContourOptions) -> some Swift.Sequence<CoreGraphics.Region> - func
subtract(CoreGraphics.Region) -> () - func
subtract(CGRect) -> () - init
init(cgRegion: CGRegionRef) -> CoreGraphics.Region - init
init(dataRepresentation: Foundation.Data) -> CoreGraphics.Region? - init
init(x: (lower: CoreGraphics.CGFloat, upper: CoreGraphics.CGFloat), y: (lower: CoreGraphics.CGFloat, upper: CoreGraphics.CGFloat)) -> CoreGraphics.Region - init
init<A where A: Sequence, A.Element == CGRect>(rects: A) -> CoreGraphics.Region - init
init(filling: CGPathRef, rule: CoreGraphics.CGPathFillRule) -> CoreGraphics.Region - init
init<A, B where A: Sequence, B: Sequence, B == A.Element, B.Element == CGPoint>(filling: A, rule: CoreGraphics.CGPathFillRule) -> CoreGraphics.Region - init
init(CGRect) -> CoreGraphics.Region - subscript
subscript.getter : (CoreGraphics.Region.Index) -> (x: Range<CoreGraphics.CGFloat>, y: Range<CoreGraphics.CGFloat>) - typealias
typealias ArrayLiteralElement = (x: Swift.Range<CoreGraphics.CGFloat>, y: Swift.Range<CoreGraphics.CGFloat>) - typealias
typealias Element = (x: Swift.Range<CoreGraphics.CGFloat>, y: Swift.Range<CoreGraphics.CGFloat>) - typealias
typealias Element = (x: Swift.Range<CoreGraphics.CGFloat>, y: Swift.Range<CoreGraphics.CGFloat>) - typealias
typealias Element = (x: Swift.Range<CoreGraphics.CGFloat>, y: Swift.Range<CoreGraphics.CGFloat>) - typealias
typealias Element = (x: Swift.Range<CoreGraphics.CGFloat>, y: Swift.Range<CoreGraphics.CGFloat>) - typealias
typealias Index = Index - typealias
typealias Index = Index - typealias
typealias Indices = Swift.DefaultIndices<CoreGraphics.Region> - typealias
typealias Indices = Swift.DefaultIndices<CoreGraphics.Region> - typealias
typealias Iterator = Swift.IndexingIterator<CoreGraphics.Region> - typealias
typealias Iterator = Swift.IndexingIterator<CoreGraphics.Region> - typealias
typealias SubSequence = Swift.Slice<CoreGraphics.Region> - typealias
typealias SubSequence = Swift.Slice<CoreGraphics.Region> - var
var bounds: (x: Range<CoreGraphics.CGFloat>, y: Range<CoreGraphics.CGFloat>)? { get } - var
var boundsRect: CGRect { get } - var
var cgRegion: CGRegionRef { get } - var
var customMirror: Mirror { get } - var
var dataRepresentation: Foundation.Data { get } - var
var debugDescription: String { get } - var
var endIndex: CoreGraphics.Region.Index { get } - var
var isEmpty: Bool { get } - var
var isInfinite: Bool { get } - var
var isRectOnly: Bool { get } - var
var rects: some Swift.BidirectionalCollection<CGRect> { get } - var
var startIndex: CoreGraphics.Region.Index { get }
Header
struct Region { struct ContourOptions { let rawValue: Swift.Int static var excludeHoles: CoreGraphics.Region.ContourOptions { get } static var includeCornerIntersections: CoreGraphics.Region.ContourOptions { get } } struct Points { let coordinates: CollectionsInternal.Deque<CoreGraphics.CGFloat> let xIsEven: Swift.Bool var endIndex: Swift.Int { get } var startIndex: Swift.Int { get } subscript(_: Swift.Int) -> __C.CGPoint { get } } struct Index { var spanIndex: Swift.Int var segmentIndex: Swift.Int static func < (_: CoreGraphics.Region.Index, _: CoreGraphics.Region.Index) -> Swift.Bool } struct ClosedSpans { let spanMinYs: Swift.ContiguousArray<CoreGraphics.CGFloat> let spanEnds: Swift.ContiguousArray<Swift.UInt32> let allSegments: Swift.ContiguousArray<CoreGraphics.CGFloat> } struct Spandexes { let minYs: Swift.UnsafeBufferPointer<CoreGraphics.CGFloat> let offset: Swift.Int } struct UnsafeSegmentRanges { let spanEnds: Swift.UnsafeBufferPointer<Swift.UInt32> } enum Operation { case transform(scaleX: CoreGraphics.CGFloat, scaleY: CoreGraphics.CGFloat, translationX: CoreGraphics.CGFloat, translationY: CoreGraphics.CGFloat) case round(Swift.FloatingPointRoundingRule, scale: CoreGraphics.CGFloat) } enum DecodingKeys { case x case y } enum EncodingKeys { case x case y } var extent: CoreGraphics.Extent var spanMinYs: Swift.ContiguousArray<CoreGraphics.CGFloat> var spanEnds: Swift.ContiguousArray<Swift.UInt32> var allSegments: Swift.ContiguousArray<CoreGraphics.CGFloat> init(cgRegion: __C.CGRegionRef) init?(dataRepresentation: Foundation.Data) init(x: (lower: CoreGraphics.CGFloat, upper: CoreGraphics.CGFloat), y: (lower: CoreGraphics.CGFloat, upper: CoreGraphics.CGFloat)) init<A>(rects: A) where A: Swift.Sequence, A.Element == __C.CGRect init(filling: __C.CGPathRef, rule: CoreGraphics.CGPathFillRule) init<A, B>(filling: A, rule: CoreGraphics.CGPathFillRule) where A: Swift.Sequence, B: Swift.Sequence, B == A.Element, B.Element == __C.CGPoint init(_: __C.CGRect) var bounds: (x: Swift.Range<CoreGraphics.CGFloat>, y: Swift.Range<CoreGraphics.CGFloat>)? { get } var boundsRect: __C.CGRect { get } var cgRegion: __C.CGRegionRef { get } var customMirror: Swift.Mirror { get } var dataRepresentation: Foundation.Data { get } var debugDescription: Swift.String { get } var endIndex: CoreGraphics.Region.Index { get } var isEmpty: Swift.Bool { get } var isInfinite: Swift.Bool { get } var isRectOnly: Swift.Bool { get } var rects: some Swift.BidirectionalCollection<__C.CGRect> { get } var startIndex: CoreGraphics.Region.Index { get } func isDisjoint(with: CoreGraphics.Region) -> Swift.Bool func isSuperset(of: CoreGraphics.Region) -> Swift.Bool func subregions(options: CoreGraphics.Region.ContourOptions) -> some Swift.Sequence<CoreGraphics.Region> func contourPath(options: CoreGraphics.Region.ContourOptions) -> __C.CGPathRef func formIntersection(_: CoreGraphics.Region) func formIntersection(_: __C.CGRect) func formSymmetricDifference(_: CoreGraphics.Region) func formSymmetricDifference(_: __C.CGRect) func apply(_: __C.CGAffineTransform) func apply<A>(_: A) where A: Swift.Collection, A.Element == CoreGraphics.Region.Operation func index(after: consuming CoreGraphics.Region.Index) -> CoreGraphics.Region.Index func index(before: consuming CoreGraphics.Region.Index) -> CoreGraphics.Region.Index func contour(options: CoreGraphics.Region.ContourOptions) -> some Swift.Sequence<CoreGraphics.Region.Points> func insetBy(dx: CoreGraphics.CGFloat, dy: CoreGraphics.CGFloat) -> CoreGraphics.Region func contains(_: __C.CGRect) -> Swift.Bool func contains(_: __C.CGPoint) -> Swift.Bool func distance(from: CoreGraphics.Region.Index, to: CoreGraphics.Region.Index) -> Swift.Int func subtract(_: CoreGraphics.Region) func subtract(_: __C.CGRect) func formUnion(_: CoreGraphics.Region) func formUnion(_: __C.CGRect) subscript(_: CoreGraphics.Region.Index) -> (x: Swift.Range<CoreGraphics.CGFloat>, y: Swift.Range<CoreGraphics.CGFloat>) { get } static var infinite: CoreGraphics.Region { get } }