MiscProtocol

public protocol MiscProtocol : ObjectProtocol

A set of utility functions for thread locking. This interface and all his related methods are deprecated since 2.12.

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

  • ptr

    Untyped pointer to the underlying AtkMisc instance.

    Declaration

    Swift

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

    Typed pointer to the underlying AtkMisc instance.

    Default Implementation

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

    Declaration

    Swift

    var misc_ptr: UnsafeMutablePointer<AtkMisc>! { get }
  • Required Initialiser for types conforming to MiscProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

Misc Class: MiscProtocol extension (methods and fields)

  • threadsEnter() Extension method

    Take the thread mutex for the GUI toolkit, if one exists. (This method is implemented by the toolkit ATK implementation layer; for instance, for GTK+, GAIL implements this via GDK_THREADS_ENTER).

    threads_enter is deprecated: Since 2.12.

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func threadsEnter()
  • threadsLeave() Extension method

    Release the thread mutex for the GUI toolkit, if one exists. This method, and atk_misc_threads_enter, are needed in some situations by threaded application code which services ATK requests, since fulfilling ATK requests often requires calling into the GUI toolkit. If a long-running or potentially blocking call takes place inside such a block, it should be bracketed by atk_misc_threads_leave/atk_misc_threads_enter calls. (This method is implemented by the toolkit ATK implementation layer; for instance, for GTK+, GAIL implements this via GDK_THREADS_LEAVE).

    threads_leave is deprecated: Since 2.12.

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func threadsLeave()
  • parent Extension method

    Undocumented

    Declaration

    Swift

    @inlinable
    var parent: GObject { get }