gi-atk
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

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

Exported types

newtype Misc Source #

Memory-managed wrapper type.

Constructors

Misc (ManagedPtr Misc) 

Instances

Instances details
Eq Misc Source # 
Instance details

Defined in GI.Atk.Objects.Misc

Methods

(==) :: Misc -> Misc -> Bool #

(/=) :: Misc -> Misc -> Bool #

GObject Misc Source # 
Instance details

Defined in GI.Atk.Objects.Misc

ManagedPtrNewtype Misc Source # 
Instance details

Defined in GI.Atk.Objects.Misc

TypedObject Misc Source # 
Instance details

Defined in GI.Atk.Objects.Misc

Methods

glibType :: IO GType #

HasParentTypes Misc Source # 
Instance details

Defined in GI.Atk.Objects.Misc

HasAttributeList Misc Source # 
Instance details

Defined in GI.Atk.Objects.Misc

(info ~ ResolveMiscMethod t Misc, OverloadedMethod info Misc p, HasField t Misc p) => HasField (t :: Symbol) Misc (p :: Type) Source # 
Instance details

Defined in GI.Atk.Objects.Misc

Methods

getField :: Misc -> p #

(info ~ ResolveMiscMethod t Misc, OverloadedMethodInfo info Misc) => IsLabel t (MethodProxy info Misc) Source # 
Instance details

Defined in GI.Atk.Objects.Misc

Methods

fromLabel :: MethodProxy info Misc #

(info ~ ResolveMiscMethod t Misc, OverloadedMethod info Misc p) => IsLabel t (Misc -> p) Source # 
Instance details

Defined in GI.Atk.Objects.Misc

Methods

fromLabel :: Misc -> p #

IsGValue (Maybe Misc) Source #

Convert Misc to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Atk.Objects.Misc

type AttributeList Misc Source # 
Instance details

Defined in GI.Atk.Objects.Misc

type ParentTypes Misc Source # 
Instance details

Defined in GI.Atk.Objects.Misc

type SignalList Misc Source # 
Instance details

Defined in GI.Atk.Objects.Misc

class (GObject o, IsDescendantOf Misc o) => IsMisc o Source #

Type class for types which can be safely cast to Misc, for instance with toMisc.

Instances

Instances details
(GObject o, IsDescendantOf Misc o) => IsMisc o Source # 
Instance details

Defined in GI.Atk.Objects.Misc

toMisc :: (MonadIO m, IsMisc o) => o -> m Misc Source #

Cast to Misc, for types for which this is known to be safe. For general casts, use castTo.

Methods

type family ResolveMiscMethod (t :: Symbol) o where ... Source #

Equations

ResolveMiscMethod "bindProperty" o = ObjectBindPropertyMethodInfo 
ResolveMiscMethod "bindPropertyFull" o = ObjectBindPropertyFullMethodInfo 
ResolveMiscMethod "forceFloating" o = ObjectForceFloatingMethodInfo 
ResolveMiscMethod "freezeNotify" o = ObjectFreezeNotifyMethodInfo 
ResolveMiscMethod "getv" o = ObjectGetvMethodInfo 
ResolveMiscMethod "isFloating" o = ObjectIsFloatingMethodInfo 
ResolveMiscMethod "notify" o = ObjectNotifyMethodInfo 
ResolveMiscMethod "notifyByPspec" o = ObjectNotifyByPspecMethodInfo 
ResolveMiscMethod "ref" o = ObjectRefMethodInfo 
ResolveMiscMethod "refSink" o = ObjectRefSinkMethodInfo 
ResolveMiscMethod "runDispose" o = ObjectRunDisposeMethodInfo 
ResolveMiscMethod "stealData" o = ObjectStealDataMethodInfo 
ResolveMiscMethod "stealQdata" o = ObjectStealQdataMethodInfo 
ResolveMiscMethod "thawNotify" o = ObjectThawNotifyMethodInfo 
ResolveMiscMethod "threadsEnter" o = MiscThreadsEnterMethodInfo 
ResolveMiscMethod "threadsLeave" o = MiscThreadsLeaveMethodInfo 
ResolveMiscMethod "unref" o = ObjectUnrefMethodInfo 
ResolveMiscMethod "watchClosure" o = ObjectWatchClosureMethodInfo 
ResolveMiscMethod "getData" o = ObjectGetDataMethodInfo 
ResolveMiscMethod "getProperty" o = ObjectGetPropertyMethodInfo 
ResolveMiscMethod "getQdata" o = ObjectGetQdataMethodInfo 
ResolveMiscMethod "setData" o = ObjectSetDataMethodInfo 
ResolveMiscMethod "setDataFull" o = ObjectSetDataFullMethodInfo 
ResolveMiscMethod "setProperty" o = ObjectSetPropertyMethodInfo 
ResolveMiscMethod l o = MethodResolutionFailed l o :: Type 

getInstance

miscGetInstance Source #

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

data MiscThreadsEnterMethodInfo Source #

Instances

Instances details
(signature ~ m (), MonadIO m, IsMisc a) => OverloadedMethod MiscThreadsEnterMethodInfo a signature Source # 
Instance details

Defined in GI.Atk.Objects.Misc

Methods

overloadedMethod :: a -> signature #

OverloadedMethodInfo MiscThreadsEnterMethodInfo (a :: Type) Source # 
Instance details

Defined in GI.Atk.Objects.Misc

miscThreadsEnter Source #

Arguments

:: (HasCallStack, MonadIO m, IsMisc a) 
=> a

misc: an AtkMisc instance for this application.

-> 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

data MiscThreadsLeaveMethodInfo Source #

Instances

Instances details
(signature ~ m (), MonadIO m, IsMisc a) => OverloadedMethod MiscThreadsLeaveMethodInfo a signature Source # 
Instance details

Defined in GI.Atk.Objects.Misc

Methods

overloadedMethod :: a -> signature #

OverloadedMethodInfo MiscThreadsLeaveMethodInfo (a :: Type) Source # 
Instance details

Defined in GI.Atk.Objects.Misc

miscThreadsLeave Source #

Arguments

:: (HasCallStack, MonadIO m, IsMisc a) 
=> a

misc: an AtkMisc instance for this application.

-> 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