AtomProtocol

public protocol AtomProtocol

The AtomProtocol protocol exposes the methods and properties of an underlying GdkAtom 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 Atom. Alternatively, use AtomRef as a lighweight, unowned reference if you already have an instance you just want to use.

An opaque type representing a string as an index into a table of strings on the X server.

  • ptr

    Untyped pointer to the underlying GdkAtom instance.

    Declaration

    Swift

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

    Typed pointer to the underlying GdkAtom instance.

    Default Implementation

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

    Declaration

    Swift

    var _ptr: GdkAtom! { get }
  • Required Initialiser for types conforming to AtomProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

Atom Record: AtomProtocol extension (methods and fields)

  • name() Extension method

    Determines the string corresponding to an atom.

    Declaration

    Swift

    @inlinable
    func name() -> String!
  • Retrieves selection data that was stored by the selection data in response to a call to gdk_selection_convert(). This function will not be used by applications, who should use the GtkClipboard API instead.

    Declaration

    Swift

    @inlinable
    func selectionPropertyGet<WindowT>(requestor: WindowT, data: UnsafeMutablePointer<UnsafeMutablePointer<guchar>?>!, property _ptr: UnsafeMutablePointer<GdkAtom?>, propertyFormat: UnsafeMutablePointer<gint>!) -> Int where WindowT : WindowProtocol