SnapshotProtocol

public protocol SnapshotProtocol : ObjectProtocol

The SnapshotProtocol protocol exposes the methods and properties of an underlying GdkSnapshot instance. The default implementation of these can be found in the protocol extension below. For a concrete class that implements these methods and properties, see Snapshot. Alternatively, use SnapshotRef as a lighweight, unowned reference if you already have an instance you just want to use.

Base type for snapshot operations.

The subclass of GdkSnapshot used by GTK is [classGtk.Snapshot].

  • ptr

    Untyped pointer to the underlying GdkSnapshot instance.

    Declaration

    Swift

    var ptr: UnsafeMutableRawPointer! { get }
  • snapshot_ptr Default implementation

    Typed pointer to the underlying GdkSnapshot instance.

    Default Implementation

    Return the stored, untyped pointer as a typed pointer to the GdkSnapshot instance.

    Declaration

    Swift

    var snapshot_ptr: UnsafeMutablePointer<GdkSnapshot>! { get }
  • Required Initialiser for types conforming to SnapshotProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)