Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
GI.Atk.Objects.Misc
Description
A set of ATK utility functions for thread locking
A set of utility functions for thread locking. This interface and all his related methods are deprecated since 2.12.
Synopsis
- newtype Misc = Misc (ManagedPtr Misc)
- class (GObject o, IsDescendantOf Misc o) => IsMisc o
- toMisc :: (MonadIO m, IsMisc o) => o -> m Misc
- miscGetInstance :: (HasCallStack, MonadIO m) => m Misc
- miscThreadsEnter :: (HasCallStack, MonadIO m, IsMisc a) => a -> m ()
- miscThreadsLeave :: (HasCallStack, MonadIO m, IsMisc a) => a -> m ()
Exported types
Memory-managed wrapper type.
Instances
Eq Misc Source # | |
GObject Misc Source # | |
Defined in GI.Atk.Objects.Misc | |
ManagedPtrNewtype Misc Source # | |
Defined in GI.Atk.Objects.Misc Methods toManagedPtr :: Misc -> ManagedPtr Misc | |
TypedObject Misc Source # | |
Defined in GI.Atk.Objects.Misc | |
HasParentTypes Misc Source # | |
Defined in GI.Atk.Objects.Misc | |
IsGValue (Maybe Misc) Source # | Convert |
Defined in GI.Atk.Objects.Misc Methods gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Misc -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Misc) | |
type ParentTypes Misc Source # | |
Defined in GI.Atk.Objects.Misc type ParentTypes Misc = '[Object] |
class (GObject o, IsDescendantOf Misc o) => IsMisc o Source #
Instances
(GObject o, IsDescendantOf Misc o) => IsMisc o Source # | |
Defined in GI.Atk.Objects.Misc |
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, threadsEnter, threadsLeave, unref, watchClosure.
Getters
getData, getProperty, getQdata.
Setters
getInstance
Arguments
:: (HasCallStack, MonadIO m) | |
=> m Misc | Returns: The singleton instance of AtkMisc for this application. |
Deprecated: Since 2.12.
Obtain the singleton instance of AtkMisc for this application.
Since: 1.13
threadsEnter
Arguments
:: (HasCallStack, MonadIO m, IsMisc a) | |
=> a |
|
-> m () |
Deprecated: Since 2.12.
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).
Since: 1.13
threadsLeave
Arguments
:: (HasCallStack, MonadIO m, IsMisc a) | |
=> a |
|
-> m () |
Deprecated: Since 2.12.
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).
Since: 1.13