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.
-
Untyped pointer to the underlying
AtkMiscinstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
misc_ptrDefault implementationTyped pointer to the underlying
AtkMiscinstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
AtkMiscinstance.Declaration
Swift
var misc_ptr: UnsafeMutablePointer<AtkMisc>! { get } -
Required Initialiser for types conforming to
MiscProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
-
threadsEnter()Extension methodTake 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 methodRelease 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() -
parentExtension methodUndocumented
Declaration
Swift
@inlinable var parent: GObject { get }
View on GitHub
Install in Dash
MiscProtocol Protocol Reference