SwiftstructPaperKit
struct PaperKit.LinkElement
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolCoherence.CRCodable
- protocolCoherence.CRDT
- protocolCoherence.CRMergeable
- protocolCoherence.CRType
- protocolPaperKit.CanvasElement
- protocolPaperKit.PaperRenderable
- protocolSwift.Equatable
Members 41
- field
var _flags: Coherence.CRRegister<PaperKit.CanvasElementFlags> - field
var _frame: Coherence.CRRegister<CGRect> - field
var _rotation: Coherence.CRRegister<CoreGraphics.CGFloat> - field
var _synapseDataRepresentation: Coherence.CRRegister<Foundation.Data?> - field
var unknownProperties: Coherence.UnknownProperties - func
actionUndoingDifference(from: PaperKit.LinkElement) -> PaperKit.LinkElement.MutatingAction? - func
apply(PaperKit.LinkElement.MutatingAction?) -> () - func
canMerge(delta: PaperKit.LinkElement.Partial) -> Bool - func
copy(renamingReferences: inout [Coherence.CRKeyPath : Coherence.CRKeyPath]) -> PaperKit.LinkElement - func
delta(_: Coherence.CRContext, from: PaperKit.LinkElement) -> PaperKit.LinkElement.Partial? - func
encode(to: Coherence.CREncoder) throws -> () - func
finalizeTimestamps(Coherence.CRContext) -> () - func
hasDelta(from: PaperKit.LinkElement) -> Bool - func
indexableTextContent<A where A: Coherence.CRDT>(in: Coherence.Capsule<A>) -> [PaperKit.IndexableTextContent] - func
merge(delta: PaperKit.LinkElement.Partial) -> Coherence.MergeResult - func
merge(PaperKit.LinkElement) -> Coherence.MergeResult - func
merge(PaperKit.LinkElement) -> () - func
needToFinalizeTimestamps() -> Bool - func
newRefs(from: PaperKit.LinkElement) -> Set<Coherence.CRKeyPath> - func
observableDifference(from: PaperKit.LinkElement, with: Coherence.ReferenceDifferencer?) -> PaperKit.LinkElement.ObservableDifference? - func
render<A where A: Coherence.CRDT>(in: CGContextRef, id: Coherence.CRKeyPath, capsule: Coherence.Capsule<A>, options: PaperKit.PaperRenderableOptions) async -> () - func
shared(Coherence.CRKeyPath) -> PaperKit.SharedCanvasElement? - func
update<A where A: Coherence.CRDT>(use: PaperKit.PaperDocument.PDFDocumentUse, ref: PaperKit.SharedCanvasElement?, pdfAnnotation: PDFAnnotation, in: CGRect?, capsule: Coherence.Capsule<A>, options: PaperKit.PaperRenderableOptions?) -> () - func
visitReferences(Coherence.ReferenceVisitor) -> () - init
init(defaultState: ()) throws -> PaperKit.LinkElement - init
init(url: Foundation.URL, frame: CGRect) -> PaperKit.LinkElement? - init
init(from: Coherence.CRDecoder) throws -> PaperKit.LinkElement - typealias
typealias MutatingAction = MutatingAction - typealias
typealias ObservableDifference = ObservableDifference - typealias
typealias Partial = Partial - var
var $flags: Coherence.CRRegister<PaperKit.CanvasElementFlags> { get set } - var
var $frame: Coherence.CRRegister<CGRect> { get set } - var
var $rotation: Coherence.CRRegister<CoreGraphics.CGFloat> { get set } - var
var $synapseDataRepresentation: Coherence.CRRegister<Foundation.Data?> { get set } - var
var flags: PaperKit.CanvasElementFlags { get set } - var
var frame: CGRect { get set } - var
var isDefaultState: Bool { get } - var
var minEncodingVersion: Coherence.CRCodableVersion { get } - var
var rotation: CoreGraphics.CGFloat { get set } - var
var synapseDataRepresentation: Foundation.Data? { get set } - var
var thumbnail: Coherence.CRAsset? { get }
Header
struct LinkElement { struct ObservableDifference { var frame: Coherence.CRValueObservableDifference? var rotation: Coherence.CRValueObservableDifference? var synapseDataRepresentation: Coherence.CRValueObservableDifference? var flags: Coherence.CRValueObservableDifference? } struct MutatingAction { var frame: Coherence.CRRegister<__C.CGRect>.MutatingAction? var rotation: Coherence.CRRegister<CoreGraphics.CGFloat>.MutatingAction? var synapseDataRepresentation: Coherence.CRRegister<Foundation.Data?>.MutatingAction? var flags: Coherence.CRRegister<PaperKit.CanvasElementFlags>.MutatingAction? } struct Partial { var frame: Coherence.CRRegister<__C.CGRect>? var rotation: Coherence.CRRegister<CoreGraphics.CGFloat>? var synapseDataRepresentation: Coherence.CRRegister<Foundation.Data?>? var flags: Coherence.CRRegister<PaperKit.CanvasElementFlags>? var unknownProperties: Coherence.UnknownProperties.Partial init(from: Coherence.CRDecoder) throws func visitReferences(_: any Coherence.ReferenceVisitor) func merge(delta: PaperKit.LinkElement.Partial) -> Swift.Bool func encode(to: Coherence.CREncoder) throws func canMerge(delta: PaperKit.LinkElement.Partial) -> Swift.Bool } var unknownProperties: Coherence.UnknownProperties init(defaultState: ()) throws init?(url: Foundation.URL, frame: __C.CGRect) init(from: Coherence.CRDecoder) throws @Coherence.CRRegister var flags: PaperKit.CanvasElementFlags { get set } @Coherence.CRRegister var frame: __C.CGRect { get set } var isDefaultState: Swift.Bool { get } var minEncodingVersion: Coherence.CRCodableVersion { get } @Coherence.CRRegister var rotation: CoreGraphics.CGFloat { get set } @Coherence.CRRegister var synapseDataRepresentation: Foundation.Data? { get set } var thumbnail: Coherence.CRAsset? { get } func visitReferences(_: any Coherence.ReferenceVisitor) func finalizeTimestamps(_: Coherence.CRContext) func indexableTextContent<A>(in: Coherence.Capsule<A>) -> [PaperKit.IndexableTextContent] where A: Coherence.CRDT func observableDifference(from: PaperKit.LinkElement, with: (any Coherence.ReferenceDifferencer)?) -> PaperKit.LinkElement.ObservableDifference? func actionUndoingDifference(from: PaperKit.LinkElement) -> PaperKit.LinkElement.MutatingAction? func needToFinalizeTimestamps() -> Swift.Bool func copy(renamingReferences: inout [Coherence.CRKeyPath : Coherence.CRKeyPath]) -> PaperKit.LinkElement func apply(_: PaperKit.LinkElement.MutatingAction?) func delta(_: Coherence.CRContext, from: PaperKit.LinkElement) -> PaperKit.LinkElement.Partial? func merge(delta: PaperKit.LinkElement.Partial) -> Coherence.MergeResult func merge(_: PaperKit.LinkElement) -> Coherence.MergeResult func merge(_: PaperKit.LinkElement) func encode(to: Coherence.CREncoder) throws func render<A>(in: __C.CGContextRef, id: Coherence.CRKeyPath, capsule: Coherence.Capsule<A>, options: PaperKit.PaperRenderableOptions) async where A: Coherence.CRDT func shared(_: Coherence.CRKeyPath) -> PaperKit.SharedCanvasElement? func update<A>(use: PaperKit.PaperDocument.PDFDocumentUse, ref: PaperKit.SharedCanvasElement?, pdfAnnotation: __C.PDFAnnotation, in: __C.CGRect?, capsule: Coherence.Capsule<A>, options: PaperKit.PaperRenderableOptions?) where A: Coherence.CRDT func newRefs(from: PaperKit.LinkElement) -> Swift.Set<Coherence.CRKeyPath> func canMerge(delta: PaperKit.LinkElement.Partial) -> Swift.Bool func hasDelta(from: PaperKit.LinkElement) -> Swift.Bool }