{-# LANGUAGE TypeApplications #-}
#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.Atk.Objects.Object
(
Object(..) ,
IsObject ,
toObject ,
#if defined(ENABLE_OVERLOADING)
ResolveObjectMethod ,
#endif
#if defined(ENABLE_OVERLOADING)
ObjectAddRelationshipMethodInfo ,
#endif
objectAddRelationship ,
#if defined(ENABLE_OVERLOADING)
ObjectGetAccessibleIdMethodInfo ,
#endif
objectGetAccessibleId ,
#if defined(ENABLE_OVERLOADING)
ObjectGetAttributesMethodInfo ,
#endif
objectGetAttributes ,
#if defined(ENABLE_OVERLOADING)
ObjectGetDescriptionMethodInfo ,
#endif
objectGetDescription ,
#if defined(ENABLE_OVERLOADING)
ObjectGetIndexInParentMethodInfo ,
#endif
objectGetIndexInParent ,
#if defined(ENABLE_OVERLOADING)
ObjectGetLayerMethodInfo ,
#endif
objectGetLayer ,
#if defined(ENABLE_OVERLOADING)
ObjectGetMdiZorderMethodInfo ,
#endif
objectGetMdiZorder ,
#if defined(ENABLE_OVERLOADING)
ObjectGetNAccessibleChildrenMethodInfo ,
#endif
objectGetNAccessibleChildren ,
#if defined(ENABLE_OVERLOADING)
ObjectGetNameMethodInfo ,
#endif
objectGetName ,
#if defined(ENABLE_OVERLOADING)
ObjectGetObjectLocaleMethodInfo ,
#endif
objectGetObjectLocale ,
#if defined(ENABLE_OVERLOADING)
ObjectGetParentMethodInfo ,
#endif
objectGetParent ,
#if defined(ENABLE_OVERLOADING)
ObjectGetRoleMethodInfo ,
#endif
objectGetRole ,
#if defined(ENABLE_OVERLOADING)
ObjectInitializeMethodInfo ,
#endif
objectInitialize ,
#if defined(ENABLE_OVERLOADING)
ObjectNotifyStateChangeMethodInfo ,
#endif
objectNotifyStateChange ,
#if defined(ENABLE_OVERLOADING)
ObjectPeekParentMethodInfo ,
#endif
objectPeekParent ,
#if defined(ENABLE_OVERLOADING)
ObjectRefAccessibleChildMethodInfo ,
#endif
objectRefAccessibleChild ,
#if defined(ENABLE_OVERLOADING)
ObjectRefRelationSetMethodInfo ,
#endif
objectRefRelationSet ,
#if defined(ENABLE_OVERLOADING)
ObjectRefStateSetMethodInfo ,
#endif
objectRefStateSet ,
#if defined(ENABLE_OVERLOADING)
ObjectRemovePropertyChangeHandlerMethodInfo,
#endif
objectRemovePropertyChangeHandler ,
#if defined(ENABLE_OVERLOADING)
ObjectRemoveRelationshipMethodInfo ,
#endif
objectRemoveRelationship ,
#if defined(ENABLE_OVERLOADING)
ObjectSetAccessibleIdMethodInfo ,
#endif
objectSetAccessibleId ,
#if defined(ENABLE_OVERLOADING)
ObjectSetDescriptionMethodInfo ,
#endif
objectSetDescription ,
#if defined(ENABLE_OVERLOADING)
ObjectSetNameMethodInfo ,
#endif
objectSetName ,
#if defined(ENABLE_OVERLOADING)
ObjectSetParentMethodInfo ,
#endif
objectSetParent ,
#if defined(ENABLE_OVERLOADING)
ObjectSetRoleMethodInfo ,
#endif
objectSetRole ,
#if defined(ENABLE_OVERLOADING)
ObjectAccessibleComponentLayerPropertyInfo,
#endif
getObjectAccessibleComponentLayer ,
#if defined(ENABLE_OVERLOADING)
objectAccessibleComponentLayer ,
#endif
#if defined(ENABLE_OVERLOADING)
ObjectAccessibleComponentMdiZorderPropertyInfo,
#endif
getObjectAccessibleComponentMdiZorder ,
#if defined(ENABLE_OVERLOADING)
objectAccessibleComponentMdiZorder ,
#endif
#if defined(ENABLE_OVERLOADING)
ObjectAccessibleDescriptionPropertyInfo ,
#endif
clearObjectAccessibleDescription ,
constructObjectAccessibleDescription ,
getObjectAccessibleDescription ,
#if defined(ENABLE_OVERLOADING)
objectAccessibleDescription ,
#endif
setObjectAccessibleDescription ,
#if defined(ENABLE_OVERLOADING)
ObjectAccessibleHypertextNlinksPropertyInfo,
#endif
getObjectAccessibleHypertextNlinks ,
#if defined(ENABLE_OVERLOADING)
objectAccessibleHypertextNlinks ,
#endif
#if defined(ENABLE_OVERLOADING)
ObjectAccessibleNamePropertyInfo ,
#endif
clearObjectAccessibleName ,
constructObjectAccessibleName ,
getObjectAccessibleName ,
#if defined(ENABLE_OVERLOADING)
objectAccessibleName ,
#endif
setObjectAccessibleName ,
#if defined(ENABLE_OVERLOADING)
ObjectAccessibleParentPropertyInfo ,
#endif
clearObjectAccessibleParent ,
constructObjectAccessibleParent ,
getObjectAccessibleParent ,
#if defined(ENABLE_OVERLOADING)
objectAccessibleParent ,
#endif
setObjectAccessibleParent ,
#if defined(ENABLE_OVERLOADING)
ObjectAccessibleRolePropertyInfo ,
#endif
constructObjectAccessibleRole ,
getObjectAccessibleRole ,
#if defined(ENABLE_OVERLOADING)
objectAccessibleRole ,
#endif
setObjectAccessibleRole ,
#if defined(ENABLE_OVERLOADING)
ObjectAccessibleTableCaptionPropertyInfo,
#endif
clearObjectAccessibleTableCaption ,
constructObjectAccessibleTableCaption ,
getObjectAccessibleTableCaption ,
#if defined(ENABLE_OVERLOADING)
objectAccessibleTableCaption ,
#endif
setObjectAccessibleTableCaption ,
#if defined(ENABLE_OVERLOADING)
ObjectAccessibleTableCaptionObjectPropertyInfo,
#endif
clearObjectAccessibleTableCaptionObject ,
constructObjectAccessibleTableCaptionObject,
getObjectAccessibleTableCaptionObject ,
#if defined(ENABLE_OVERLOADING)
objectAccessibleTableCaptionObject ,
#endif
setObjectAccessibleTableCaptionObject ,
#if defined(ENABLE_OVERLOADING)
ObjectAccessibleTableColumnDescriptionPropertyInfo,
#endif
clearObjectAccessibleTableColumnDescription,
constructObjectAccessibleTableColumnDescription,
getObjectAccessibleTableColumnDescription,
#if defined(ENABLE_OVERLOADING)
objectAccessibleTableColumnDescription ,
#endif
setObjectAccessibleTableColumnDescription,
#if defined(ENABLE_OVERLOADING)
ObjectAccessibleTableColumnHeaderPropertyInfo,
#endif
clearObjectAccessibleTableColumnHeader ,
constructObjectAccessibleTableColumnHeader,
getObjectAccessibleTableColumnHeader ,
#if defined(ENABLE_OVERLOADING)
objectAccessibleTableColumnHeader ,
#endif
setObjectAccessibleTableColumnHeader ,
#if defined(ENABLE_OVERLOADING)
ObjectAccessibleTableRowDescriptionPropertyInfo,
#endif
clearObjectAccessibleTableRowDescription,
constructObjectAccessibleTableRowDescription,
getObjectAccessibleTableRowDescription ,
#if defined(ENABLE_OVERLOADING)
objectAccessibleTableRowDescription ,
#endif
setObjectAccessibleTableRowDescription ,
#if defined(ENABLE_OVERLOADING)
ObjectAccessibleTableRowHeaderPropertyInfo,
#endif
clearObjectAccessibleTableRowHeader ,
constructObjectAccessibleTableRowHeader ,
getObjectAccessibleTableRowHeader ,
#if defined(ENABLE_OVERLOADING)
objectAccessibleTableRowHeader ,
#endif
setObjectAccessibleTableRowHeader ,
#if defined(ENABLE_OVERLOADING)
ObjectAccessibleTableSummaryPropertyInfo,
#endif
clearObjectAccessibleTableSummary ,
constructObjectAccessibleTableSummary ,
getObjectAccessibleTableSummary ,
#if defined(ENABLE_OVERLOADING)
objectAccessibleTableSummary ,
#endif
setObjectAccessibleTableSummary ,
#if defined(ENABLE_OVERLOADING)
ObjectAccessibleValuePropertyInfo ,
#endif
constructObjectAccessibleValue ,
getObjectAccessibleValue ,
#if defined(ENABLE_OVERLOADING)
objectAccessibleValue ,
#endif
setObjectAccessibleValue ,
C_ObjectActiveDescendantChangedCallback ,
ObjectActiveDescendantChangedCallback ,
#if defined(ENABLE_OVERLOADING)
ObjectActiveDescendantChangedSignalInfo ,
#endif
afterObjectActiveDescendantChanged ,
genClosure_ObjectActiveDescendantChanged,
mk_ObjectActiveDescendantChangedCallback,
noObjectActiveDescendantChangedCallback ,
onObjectActiveDescendantChanged ,
wrap_ObjectActiveDescendantChangedCallback,
C_ObjectChildrenChangedCallback ,
ObjectChildrenChangedCallback ,
#if defined(ENABLE_OVERLOADING)
ObjectChildrenChangedSignalInfo ,
#endif
afterObjectChildrenChanged ,
genClosure_ObjectChildrenChanged ,
mk_ObjectChildrenChangedCallback ,
noObjectChildrenChangedCallback ,
onObjectChildrenChanged ,
wrap_ObjectChildrenChangedCallback ,
C_ObjectFocusEventCallback ,
ObjectFocusEventCallback ,
#if defined(ENABLE_OVERLOADING)
ObjectFocusEventSignalInfo ,
#endif
afterObjectFocusEvent ,
genClosure_ObjectFocusEvent ,
mk_ObjectFocusEventCallback ,
noObjectFocusEventCallback ,
onObjectFocusEvent ,
wrap_ObjectFocusEventCallback ,
C_ObjectPropertyChangeCallback ,
ObjectPropertyChangeCallback ,
#if defined(ENABLE_OVERLOADING)
ObjectPropertyChangeSignalInfo ,
#endif
afterObjectPropertyChange ,
genClosure_ObjectPropertyChange ,
mk_ObjectPropertyChangeCallback ,
noObjectPropertyChangeCallback ,
onObjectPropertyChange ,
wrap_ObjectPropertyChangeCallback ,
C_ObjectStateChangeCallback ,
ObjectStateChangeCallback ,
#if defined(ENABLE_OVERLOADING)
ObjectStateChangeSignalInfo ,
#endif
afterObjectStateChange ,
genClosure_ObjectStateChange ,
mk_ObjectStateChangeCallback ,
noObjectStateChangeCallback ,
onObjectStateChange ,
wrap_ObjectStateChangeCallback ,
C_ObjectVisibleDataChangedCallback ,
ObjectVisibleDataChangedCallback ,
#if defined(ENABLE_OVERLOADING)
ObjectVisibleDataChangedSignalInfo ,
#endif
afterObjectVisibleDataChanged ,
genClosure_ObjectVisibleDataChanged ,
mk_ObjectVisibleDataChangedCallback ,
noObjectVisibleDataChangedCallback ,
onObjectVisibleDataChanged ,
wrap_ObjectVisibleDataChangedCallback ,
) where
import Data.GI.Base.ShortPrelude
import qualified Data.GI.Base.ShortPrelude as SP
import qualified Data.GI.Base.Overloading as O
import qualified Prelude as P
import qualified Data.GI.Base.Attributes as GI.Attributes
import qualified Data.GI.Base.BasicTypes as B.Types
import qualified Data.GI.Base.ManagedPtr as B.ManagedPtr
import qualified Data.GI.Base.GClosure as B.GClosure
import qualified Data.GI.Base.GError as B.GError
import qualified Data.GI.Base.GVariant as B.GVariant
import qualified Data.GI.Base.GValue as B.GValue
import qualified Data.GI.Base.GParamSpec as B.GParamSpec
import qualified Data.GI.Base.CallStack as B.CallStack
import qualified Data.GI.Base.Properties as B.Properties
import qualified Data.GI.Base.Signals as B.Signals
import qualified Control.Monad.IO.Class as MIO
import qualified Data.Text as T
import qualified Data.ByteString.Char8 as B
import qualified Data.Map as Map
import qualified Foreign.Ptr as FP
import qualified GHC.OverloadedLabels as OL
import {-# SOURCE #-} qualified GI.Atk.Enums as Atk.Enums
import {-# SOURCE #-} qualified GI.Atk.Objects.RelationSet as Atk.RelationSet
import {-# SOURCE #-} qualified GI.Atk.Objects.StateSet as Atk.StateSet
import {-# SOURCE #-} qualified GI.Atk.Structs.PropertyValues as Atk.PropertyValues
import qualified GI.GObject.Objects.Object as GObject.Object
newtype Object = Object (SP.ManagedPtr Object)
deriving (Object -> Object -> Bool
(Object -> Object -> Bool)
-> (Object -> Object -> Bool) -> Eq Object
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Object -> Object -> Bool
$c/= :: Object -> Object -> Bool
== :: Object -> Object -> Bool
$c== :: Object -> Object -> Bool
Eq)
instance SP.ManagedPtrNewtype Object where
toManagedPtr :: Object -> ManagedPtr Object
toManagedPtr (Object ManagedPtr Object
p) = ManagedPtr Object
p
foreign import ccall "atk_object_get_type"
c_atk_object_get_type :: IO B.Types.GType
instance B.Types.TypedObject Object where
glibType :: IO GType
glibType = IO GType
c_atk_object_get_type
instance B.Types.GObject Object
instance B.GValue.IsGValue Object where
toGValue :: Object -> IO GValue
toGValue Object
o = do
GType
gtype <- IO GType
c_atk_object_get_type
Object -> (Ptr Object -> IO GValue) -> IO GValue
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
B.ManagedPtr.withManagedPtr Object
o (GType -> (GValue -> Ptr Object -> IO ()) -> Ptr Object -> IO GValue
forall a. GType -> (GValue -> a -> IO ()) -> a -> IO GValue
B.GValue.buildGValue GType
gtype GValue -> Ptr Object -> IO ()
forall a. GObject a => GValue -> Ptr a -> IO ()
B.GValue.set_object)
fromGValue :: GValue -> IO Object
fromGValue GValue
gv = do
Ptr Object
ptr <- GValue -> IO (Ptr Object)
forall b. GObject b => GValue -> IO (Ptr b)
B.GValue.get_object GValue
gv :: IO (Ptr Object)
(ManagedPtr Object -> Object) -> Ptr Object -> IO Object
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
B.ManagedPtr.newObject ManagedPtr Object -> Object
Object Ptr Object
ptr
class (SP.GObject o, O.IsDescendantOf Object o) => IsObject o
instance (SP.GObject o, O.IsDescendantOf Object o) => IsObject o
instance O.HasParentTypes Object
type instance O.ParentTypes Object = '[GObject.Object.Object]
toObject :: (MonadIO m, IsObject o) => o -> m Object
toObject :: o -> m Object
toObject = IO Object -> m Object
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Object -> m Object) -> (o -> IO Object) -> o -> m Object
forall b c a. (b -> c) -> (a -> b) -> a -> c
. (ManagedPtr Object -> Object) -> o -> IO Object
forall o o'.
(HasCallStack, ManagedPtrNewtype o, TypedObject o,
ManagedPtrNewtype o', TypedObject o') =>
(ManagedPtr o' -> o') -> o -> IO o'
unsafeCastTo ManagedPtr Object -> Object
Object
#if defined(ENABLE_OVERLOADING)
type family ResolveObjectMethod (t :: Symbol) (o :: *) :: * where
ResolveObjectMethod "addRelationship" o = ObjectAddRelationshipMethodInfo
ResolveObjectMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolveObjectMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolveObjectMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolveObjectMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolveObjectMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
ResolveObjectMethod "initialize" o = ObjectInitializeMethodInfo
ResolveObjectMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolveObjectMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolveObjectMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolveObjectMethod "notifyStateChange" o = ObjectNotifyStateChangeMethodInfo
ResolveObjectMethod "peekParent" o = ObjectPeekParentMethodInfo
ResolveObjectMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolveObjectMethod "refAccessibleChild" o = ObjectRefAccessibleChildMethodInfo
ResolveObjectMethod "refRelationSet" o = ObjectRefRelationSetMethodInfo
ResolveObjectMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolveObjectMethod "refStateSet" o = ObjectRefStateSetMethodInfo
ResolveObjectMethod "removePropertyChangeHandler" o = ObjectRemovePropertyChangeHandlerMethodInfo
ResolveObjectMethod "removeRelationship" o = ObjectRemoveRelationshipMethodInfo
ResolveObjectMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolveObjectMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolveObjectMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolveObjectMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolveObjectMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolveObjectMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolveObjectMethod "getAccessibleId" o = ObjectGetAccessibleIdMethodInfo
ResolveObjectMethod "getAttributes" o = ObjectGetAttributesMethodInfo
ResolveObjectMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolveObjectMethod "getDescription" o = ObjectGetDescriptionMethodInfo
ResolveObjectMethod "getIndexInParent" o = ObjectGetIndexInParentMethodInfo
ResolveObjectMethod "getLayer" o = ObjectGetLayerMethodInfo
ResolveObjectMethod "getMdiZorder" o = ObjectGetMdiZorderMethodInfo
ResolveObjectMethod "getNAccessibleChildren" o = ObjectGetNAccessibleChildrenMethodInfo
ResolveObjectMethod "getName" o = ObjectGetNameMethodInfo
ResolveObjectMethod "getObjectLocale" o = ObjectGetObjectLocaleMethodInfo
ResolveObjectMethod "getParent" o = ObjectGetParentMethodInfo
ResolveObjectMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolveObjectMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolveObjectMethod "getRole" o = ObjectGetRoleMethodInfo
ResolveObjectMethod "setAccessibleId" o = ObjectSetAccessibleIdMethodInfo
ResolveObjectMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolveObjectMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
ResolveObjectMethod "setDescription" o = ObjectSetDescriptionMethodInfo
ResolveObjectMethod "setName" o = ObjectSetNameMethodInfo
ResolveObjectMethod "setParent" o = ObjectSetParentMethodInfo
ResolveObjectMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolveObjectMethod "setRole" o = ObjectSetRoleMethodInfo
ResolveObjectMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveObjectMethod t Object, O.MethodInfo info Object p) => OL.IsLabel t (Object -> p) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.overloadedMethod @info
#else
fromLabel _ = O.overloadedMethod @info
#endif
#endif
type ObjectActiveDescendantChangedCallback =
Maybe Object
-> IO ()
noObjectActiveDescendantChangedCallback :: Maybe ObjectActiveDescendantChangedCallback
noObjectActiveDescendantChangedCallback :: Maybe ObjectActiveDescendantChangedCallback
noObjectActiveDescendantChangedCallback = Maybe ObjectActiveDescendantChangedCallback
forall a. Maybe a
Nothing
type C_ObjectActiveDescendantChangedCallback =
Ptr () ->
Ptr Object ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_ObjectActiveDescendantChangedCallback :: C_ObjectActiveDescendantChangedCallback -> IO (FunPtr C_ObjectActiveDescendantChangedCallback)
genClosure_ObjectActiveDescendantChanged :: MonadIO m => ObjectActiveDescendantChangedCallback -> m (GClosure C_ObjectActiveDescendantChangedCallback)
genClosure_ObjectActiveDescendantChanged :: ObjectActiveDescendantChangedCallback
-> m (GClosure C_ObjectActiveDescendantChangedCallback)
genClosure_ObjectActiveDescendantChanged ObjectActiveDescendantChangedCallback
cb = IO (GClosure C_ObjectActiveDescendantChangedCallback)
-> m (GClosure C_ObjectActiveDescendantChangedCallback)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (GClosure C_ObjectActiveDescendantChangedCallback)
-> m (GClosure C_ObjectActiveDescendantChangedCallback))
-> IO (GClosure C_ObjectActiveDescendantChangedCallback)
-> m (GClosure C_ObjectActiveDescendantChangedCallback)
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_ObjectActiveDescendantChangedCallback
cb' = ObjectActiveDescendantChangedCallback
-> C_ObjectActiveDescendantChangedCallback
wrap_ObjectActiveDescendantChangedCallback ObjectActiveDescendantChangedCallback
cb
C_ObjectActiveDescendantChangedCallback
-> IO (FunPtr C_ObjectActiveDescendantChangedCallback)
mk_ObjectActiveDescendantChangedCallback C_ObjectActiveDescendantChangedCallback
cb' IO (FunPtr C_ObjectActiveDescendantChangedCallback)
-> (FunPtr C_ObjectActiveDescendantChangedCallback
-> IO (GClosure C_ObjectActiveDescendantChangedCallback))
-> IO (GClosure C_ObjectActiveDescendantChangedCallback)
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= FunPtr C_ObjectActiveDescendantChangedCallback
-> IO (GClosure C_ObjectActiveDescendantChangedCallback)
forall (m :: * -> *) a. MonadIO m => FunPtr a -> m (GClosure a)
B.GClosure.newGClosure
wrap_ObjectActiveDescendantChangedCallback ::
ObjectActiveDescendantChangedCallback ->
C_ObjectActiveDescendantChangedCallback
wrap_ObjectActiveDescendantChangedCallback :: ObjectActiveDescendantChangedCallback
-> C_ObjectActiveDescendantChangedCallback
wrap_ObjectActiveDescendantChangedCallback ObjectActiveDescendantChangedCallback
_cb Ptr ()
_ Ptr Object
arg1 Ptr ()
_ = do
Maybe Object
maybeArg1 <-
if Ptr Object
arg1 Ptr Object -> Ptr Object -> Bool
forall a. Eq a => a -> a -> Bool
== Ptr Object
forall a. Ptr a
nullPtr
then Maybe Object -> IO (Maybe Object)
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe Object
forall a. Maybe a
Nothing
else do
Object
arg1' <- ((ManagedPtr Object -> Object) -> Ptr Object -> IO Object
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr Object -> Object
Object) Ptr Object
arg1
Maybe Object -> IO (Maybe Object)
forall (m :: * -> *) a. Monad m => a -> m a
return (Maybe Object -> IO (Maybe Object))
-> Maybe Object -> IO (Maybe Object)
forall a b. (a -> b) -> a -> b
$ Object -> Maybe Object
forall a. a -> Maybe a
Just Object
arg1'
ObjectActiveDescendantChangedCallback
_cb Maybe Object
maybeArg1
onObjectActiveDescendantChanged :: (IsObject a, MonadIO m) => a -> P.Maybe T.Text -> ObjectActiveDescendantChangedCallback -> m SignalHandlerId
onObjectActiveDescendantChanged :: a
-> Maybe Text
-> ObjectActiveDescendantChangedCallback
-> m SignalHandlerId
onObjectActiveDescendantChanged a
obj Maybe Text
detail ObjectActiveDescendantChangedCallback
cb = IO SignalHandlerId -> m SignalHandlerId
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_ObjectActiveDescendantChangedCallback
cb' = ObjectActiveDescendantChangedCallback
-> C_ObjectActiveDescendantChangedCallback
wrap_ObjectActiveDescendantChangedCallback ObjectActiveDescendantChangedCallback
cb
FunPtr C_ObjectActiveDescendantChangedCallback
cb'' <- C_ObjectActiveDescendantChangedCallback
-> IO (FunPtr C_ObjectActiveDescendantChangedCallback)
mk_ObjectActiveDescendantChangedCallback C_ObjectActiveDescendantChangedCallback
cb'
a
-> Text
-> FunPtr C_ObjectActiveDescendantChangedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"active-descendant-changed" FunPtr C_ObjectActiveDescendantChangedCallback
cb'' SignalConnectMode
SignalConnectBefore Maybe Text
detail
afterObjectActiveDescendantChanged :: (IsObject a, MonadIO m) => a -> P.Maybe T.Text -> ObjectActiveDescendantChangedCallback -> m SignalHandlerId
afterObjectActiveDescendantChanged :: a
-> Maybe Text
-> ObjectActiveDescendantChangedCallback
-> m SignalHandlerId
afterObjectActiveDescendantChanged a
obj Maybe Text
detail ObjectActiveDescendantChangedCallback
cb = IO SignalHandlerId -> m SignalHandlerId
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_ObjectActiveDescendantChangedCallback
cb' = ObjectActiveDescendantChangedCallback
-> C_ObjectActiveDescendantChangedCallback
wrap_ObjectActiveDescendantChangedCallback ObjectActiveDescendantChangedCallback
cb
FunPtr C_ObjectActiveDescendantChangedCallback
cb'' <- C_ObjectActiveDescendantChangedCallback
-> IO (FunPtr C_ObjectActiveDescendantChangedCallback)
mk_ObjectActiveDescendantChangedCallback C_ObjectActiveDescendantChangedCallback
cb'
a
-> Text
-> FunPtr C_ObjectActiveDescendantChangedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"active-descendant-changed" FunPtr C_ObjectActiveDescendantChangedCallback
cb'' SignalConnectMode
SignalConnectAfter Maybe Text
detail
#if defined(ENABLE_OVERLOADING)
data ObjectActiveDescendantChangedSignalInfo
instance SignalInfo ObjectActiveDescendantChangedSignalInfo where
type HaskellCallbackType ObjectActiveDescendantChangedSignalInfo = ObjectActiveDescendantChangedCallback
connectSignal obj cb connectMode detail = do
let cb' = wrap_ObjectActiveDescendantChangedCallback cb
cb'' <- mk_ObjectActiveDescendantChangedCallback cb'
connectSignalFunPtr obj "active-descendant-changed" cb'' connectMode detail
#endif
type ObjectChildrenChangedCallback =
Word32
-> Maybe Object
-> IO ()
noObjectChildrenChangedCallback :: Maybe ObjectChildrenChangedCallback
noObjectChildrenChangedCallback :: Maybe ObjectChildrenChangedCallback
noObjectChildrenChangedCallback = Maybe ObjectChildrenChangedCallback
forall a. Maybe a
Nothing
type C_ObjectChildrenChangedCallback =
Ptr () ->
Word32 ->
Ptr Object ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_ObjectChildrenChangedCallback :: C_ObjectChildrenChangedCallback -> IO (FunPtr C_ObjectChildrenChangedCallback)
genClosure_ObjectChildrenChanged :: MonadIO m => ObjectChildrenChangedCallback -> m (GClosure C_ObjectChildrenChangedCallback)
genClosure_ObjectChildrenChanged :: ObjectChildrenChangedCallback
-> m (GClosure C_ObjectChildrenChangedCallback)
genClosure_ObjectChildrenChanged ObjectChildrenChangedCallback
cb = IO (GClosure C_ObjectChildrenChangedCallback)
-> m (GClosure C_ObjectChildrenChangedCallback)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (GClosure C_ObjectChildrenChangedCallback)
-> m (GClosure C_ObjectChildrenChangedCallback))
-> IO (GClosure C_ObjectChildrenChangedCallback)
-> m (GClosure C_ObjectChildrenChangedCallback)
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_ObjectChildrenChangedCallback
cb' = ObjectChildrenChangedCallback -> C_ObjectChildrenChangedCallback
wrap_ObjectChildrenChangedCallback ObjectChildrenChangedCallback
cb
C_ObjectChildrenChangedCallback
-> IO (FunPtr C_ObjectChildrenChangedCallback)
mk_ObjectChildrenChangedCallback C_ObjectChildrenChangedCallback
cb' IO (FunPtr C_ObjectChildrenChangedCallback)
-> (FunPtr C_ObjectChildrenChangedCallback
-> IO (GClosure C_ObjectChildrenChangedCallback))
-> IO (GClosure C_ObjectChildrenChangedCallback)
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= FunPtr C_ObjectChildrenChangedCallback
-> IO (GClosure C_ObjectChildrenChangedCallback)
forall (m :: * -> *) a. MonadIO m => FunPtr a -> m (GClosure a)
B.GClosure.newGClosure
wrap_ObjectChildrenChangedCallback ::
ObjectChildrenChangedCallback ->
C_ObjectChildrenChangedCallback
wrap_ObjectChildrenChangedCallback :: ObjectChildrenChangedCallback -> C_ObjectChildrenChangedCallback
wrap_ObjectChildrenChangedCallback ObjectChildrenChangedCallback
_cb Ptr ()
_ Word32
arg1 Ptr Object
arg2 Ptr ()
_ = do
Maybe Object
maybeArg2 <-
if Ptr Object
arg2 Ptr Object -> Ptr Object -> Bool
forall a. Eq a => a -> a -> Bool
== Ptr Object
forall a. Ptr a
nullPtr
then Maybe Object -> IO (Maybe Object)
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe Object
forall a. Maybe a
Nothing
else do
Object
arg2' <- ((ManagedPtr Object -> Object) -> Ptr Object -> IO Object
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr Object -> Object
Object) Ptr Object
arg2
Maybe Object -> IO (Maybe Object)
forall (m :: * -> *) a. Monad m => a -> m a
return (Maybe Object -> IO (Maybe Object))
-> Maybe Object -> IO (Maybe Object)
forall a b. (a -> b) -> a -> b
$ Object -> Maybe Object
forall a. a -> Maybe a
Just Object
arg2'
ObjectChildrenChangedCallback
_cb Word32
arg1 Maybe Object
maybeArg2
onObjectChildrenChanged :: (IsObject a, MonadIO m) => a -> P.Maybe T.Text -> ObjectChildrenChangedCallback -> m SignalHandlerId
onObjectChildrenChanged :: a
-> Maybe Text -> ObjectChildrenChangedCallback -> m SignalHandlerId
onObjectChildrenChanged a
obj Maybe Text
detail ObjectChildrenChangedCallback
cb = IO SignalHandlerId -> m SignalHandlerId
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_ObjectChildrenChangedCallback
cb' = ObjectChildrenChangedCallback -> C_ObjectChildrenChangedCallback
wrap_ObjectChildrenChangedCallback ObjectChildrenChangedCallback
cb
FunPtr C_ObjectChildrenChangedCallback
cb'' <- C_ObjectChildrenChangedCallback
-> IO (FunPtr C_ObjectChildrenChangedCallback)
mk_ObjectChildrenChangedCallback C_ObjectChildrenChangedCallback
cb'
a
-> Text
-> FunPtr C_ObjectChildrenChangedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"children-changed" FunPtr C_ObjectChildrenChangedCallback
cb'' SignalConnectMode
SignalConnectBefore Maybe Text
detail
afterObjectChildrenChanged :: (IsObject a, MonadIO m) => a -> P.Maybe T.Text -> ObjectChildrenChangedCallback -> m SignalHandlerId
afterObjectChildrenChanged :: a
-> Maybe Text -> ObjectChildrenChangedCallback -> m SignalHandlerId
afterObjectChildrenChanged a
obj Maybe Text
detail ObjectChildrenChangedCallback
cb = IO SignalHandlerId -> m SignalHandlerId
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_ObjectChildrenChangedCallback
cb' = ObjectChildrenChangedCallback -> C_ObjectChildrenChangedCallback
wrap_ObjectChildrenChangedCallback ObjectChildrenChangedCallback
cb
FunPtr C_ObjectChildrenChangedCallback
cb'' <- C_ObjectChildrenChangedCallback
-> IO (FunPtr C_ObjectChildrenChangedCallback)
mk_ObjectChildrenChangedCallback C_ObjectChildrenChangedCallback
cb'
a
-> Text
-> FunPtr C_ObjectChildrenChangedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"children-changed" FunPtr C_ObjectChildrenChangedCallback
cb'' SignalConnectMode
SignalConnectAfter Maybe Text
detail
#if defined(ENABLE_OVERLOADING)
data ObjectChildrenChangedSignalInfo
instance SignalInfo ObjectChildrenChangedSignalInfo where
type HaskellCallbackType ObjectChildrenChangedSignalInfo = ObjectChildrenChangedCallback
connectSignal obj cb connectMode detail = do
let cb' = wrap_ObjectChildrenChangedCallback cb
cb'' <- mk_ObjectChildrenChangedCallback cb'
connectSignalFunPtr obj "children-changed" cb'' connectMode detail
#endif
{-# DEPRECATED ObjectFocusEventCallback ["(Since version 2.9.4)","Use the [stateChange](\"GI.Atk.Objects.Object#g:signal:stateChange\") signal instead."] #-}
type ObjectFocusEventCallback =
Bool
-> IO ()
noObjectFocusEventCallback :: Maybe ObjectFocusEventCallback
noObjectFocusEventCallback :: Maybe ObjectFocusEventCallback
noObjectFocusEventCallback = Maybe ObjectFocusEventCallback
forall a. Maybe a
Nothing
type C_ObjectFocusEventCallback =
Ptr () ->
CInt ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_ObjectFocusEventCallback :: C_ObjectFocusEventCallback -> IO (FunPtr C_ObjectFocusEventCallback)
genClosure_ObjectFocusEvent :: MonadIO m => ObjectFocusEventCallback -> m (GClosure C_ObjectFocusEventCallback)
genClosure_ObjectFocusEvent :: ObjectFocusEventCallback -> m (GClosure C_ObjectFocusEventCallback)
genClosure_ObjectFocusEvent ObjectFocusEventCallback
cb = IO (GClosure C_ObjectFocusEventCallback)
-> m (GClosure C_ObjectFocusEventCallback)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (GClosure C_ObjectFocusEventCallback)
-> m (GClosure C_ObjectFocusEventCallback))
-> IO (GClosure C_ObjectFocusEventCallback)
-> m (GClosure C_ObjectFocusEventCallback)
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_ObjectFocusEventCallback
cb' = ObjectFocusEventCallback -> C_ObjectFocusEventCallback
wrap_ObjectFocusEventCallback ObjectFocusEventCallback
cb
C_ObjectFocusEventCallback
-> IO (FunPtr C_ObjectFocusEventCallback)
mk_ObjectFocusEventCallback C_ObjectFocusEventCallback
cb' IO (FunPtr C_ObjectFocusEventCallback)
-> (FunPtr C_ObjectFocusEventCallback
-> IO (GClosure C_ObjectFocusEventCallback))
-> IO (GClosure C_ObjectFocusEventCallback)
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= FunPtr C_ObjectFocusEventCallback
-> IO (GClosure C_ObjectFocusEventCallback)
forall (m :: * -> *) a. MonadIO m => FunPtr a -> m (GClosure a)
B.GClosure.newGClosure
wrap_ObjectFocusEventCallback ::
ObjectFocusEventCallback ->
C_ObjectFocusEventCallback
wrap_ObjectFocusEventCallback :: ObjectFocusEventCallback -> C_ObjectFocusEventCallback
wrap_ObjectFocusEventCallback ObjectFocusEventCallback
_cb Ptr ()
_ CInt
arg1 Ptr ()
_ = do
let arg1' :: Bool
arg1' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
arg1
ObjectFocusEventCallback
_cb Bool
arg1'
onObjectFocusEvent :: (IsObject a, MonadIO m) => a -> ObjectFocusEventCallback -> m SignalHandlerId
onObjectFocusEvent :: a -> ObjectFocusEventCallback -> m SignalHandlerId
onObjectFocusEvent a
obj ObjectFocusEventCallback
cb = IO SignalHandlerId -> m SignalHandlerId
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_ObjectFocusEventCallback
cb' = ObjectFocusEventCallback -> C_ObjectFocusEventCallback
wrap_ObjectFocusEventCallback ObjectFocusEventCallback
cb
FunPtr C_ObjectFocusEventCallback
cb'' <- C_ObjectFocusEventCallback
-> IO (FunPtr C_ObjectFocusEventCallback)
mk_ObjectFocusEventCallback C_ObjectFocusEventCallback
cb'
a
-> Text
-> FunPtr C_ObjectFocusEventCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"focus-event" FunPtr C_ObjectFocusEventCallback
cb'' SignalConnectMode
SignalConnectBefore Maybe Text
forall a. Maybe a
Nothing
afterObjectFocusEvent :: (IsObject a, MonadIO m) => a -> ObjectFocusEventCallback -> m SignalHandlerId
afterObjectFocusEvent :: a -> ObjectFocusEventCallback -> m SignalHandlerId
afterObjectFocusEvent a
obj ObjectFocusEventCallback
cb = IO SignalHandlerId -> m SignalHandlerId
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_ObjectFocusEventCallback
cb' = ObjectFocusEventCallback -> C_ObjectFocusEventCallback
wrap_ObjectFocusEventCallback ObjectFocusEventCallback
cb
FunPtr C_ObjectFocusEventCallback
cb'' <- C_ObjectFocusEventCallback
-> IO (FunPtr C_ObjectFocusEventCallback)
mk_ObjectFocusEventCallback C_ObjectFocusEventCallback
cb'
a
-> Text
-> FunPtr C_ObjectFocusEventCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"focus-event" FunPtr C_ObjectFocusEventCallback
cb'' SignalConnectMode
SignalConnectAfter Maybe Text
forall a. Maybe a
Nothing
#if defined(ENABLE_OVERLOADING)
data ObjectFocusEventSignalInfo
instance SignalInfo ObjectFocusEventSignalInfo where
type HaskellCallbackType ObjectFocusEventSignalInfo = ObjectFocusEventCallback
connectSignal obj cb connectMode detail = do
let cb' = wrap_ObjectFocusEventCallback cb
cb'' <- mk_ObjectFocusEventCallback cb'
connectSignalFunPtr obj "focus-event" cb'' connectMode detail
#endif
type ObjectPropertyChangeCallback =
Maybe Atk.PropertyValues.PropertyValues
-> IO ()
noObjectPropertyChangeCallback :: Maybe ObjectPropertyChangeCallback
noObjectPropertyChangeCallback :: Maybe ObjectPropertyChangeCallback
noObjectPropertyChangeCallback = Maybe ObjectPropertyChangeCallback
forall a. Maybe a
Nothing
type C_ObjectPropertyChangeCallback =
Ptr () ->
Ptr Atk.PropertyValues.PropertyValues ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_ObjectPropertyChangeCallback :: C_ObjectPropertyChangeCallback -> IO (FunPtr C_ObjectPropertyChangeCallback)
genClosure_ObjectPropertyChange :: MonadIO m => ObjectPropertyChangeCallback -> m (GClosure C_ObjectPropertyChangeCallback)
genClosure_ObjectPropertyChange :: ObjectPropertyChangeCallback
-> m (GClosure C_ObjectPropertyChangeCallback)
genClosure_ObjectPropertyChange ObjectPropertyChangeCallback
cb = IO (GClosure C_ObjectPropertyChangeCallback)
-> m (GClosure C_ObjectPropertyChangeCallback)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (GClosure C_ObjectPropertyChangeCallback)
-> m (GClosure C_ObjectPropertyChangeCallback))
-> IO (GClosure C_ObjectPropertyChangeCallback)
-> m (GClosure C_ObjectPropertyChangeCallback)
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_ObjectPropertyChangeCallback
cb' = ObjectPropertyChangeCallback -> C_ObjectPropertyChangeCallback
wrap_ObjectPropertyChangeCallback ObjectPropertyChangeCallback
cb
C_ObjectPropertyChangeCallback
-> IO (FunPtr C_ObjectPropertyChangeCallback)
mk_ObjectPropertyChangeCallback C_ObjectPropertyChangeCallback
cb' IO (FunPtr C_ObjectPropertyChangeCallback)
-> (FunPtr C_ObjectPropertyChangeCallback
-> IO (GClosure C_ObjectPropertyChangeCallback))
-> IO (GClosure C_ObjectPropertyChangeCallback)
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= FunPtr C_ObjectPropertyChangeCallback
-> IO (GClosure C_ObjectPropertyChangeCallback)
forall (m :: * -> *) a. MonadIO m => FunPtr a -> m (GClosure a)
B.GClosure.newGClosure
wrap_ObjectPropertyChangeCallback ::
ObjectPropertyChangeCallback ->
C_ObjectPropertyChangeCallback
wrap_ObjectPropertyChangeCallback :: ObjectPropertyChangeCallback -> C_ObjectPropertyChangeCallback
wrap_ObjectPropertyChangeCallback ObjectPropertyChangeCallback
_cb Ptr ()
_ Ptr PropertyValues
arg1 Ptr ()
_ = do
Maybe PropertyValues
maybeArg1 <-
if Ptr PropertyValues
arg1 Ptr PropertyValues -> Ptr PropertyValues -> Bool
forall a. Eq a => a -> a -> Bool
== Ptr PropertyValues
forall a. Ptr a
nullPtr
then Maybe PropertyValues -> IO (Maybe PropertyValues)
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe PropertyValues
forall a. Maybe a
Nothing
else do
PropertyValues
arg1' <- ((ManagedPtr PropertyValues -> PropertyValues)
-> Ptr PropertyValues -> IO PropertyValues
forall a.
(HasCallStack, BoxedPtr a) =>
(ManagedPtr a -> a) -> Ptr a -> IO a
newPtr ManagedPtr PropertyValues -> PropertyValues
Atk.PropertyValues.PropertyValues) Ptr PropertyValues
arg1
Maybe PropertyValues -> IO (Maybe PropertyValues)
forall (m :: * -> *) a. Monad m => a -> m a
return (Maybe PropertyValues -> IO (Maybe PropertyValues))
-> Maybe PropertyValues -> IO (Maybe PropertyValues)
forall a b. (a -> b) -> a -> b
$ PropertyValues -> Maybe PropertyValues
forall a. a -> Maybe a
Just PropertyValues
arg1'
ObjectPropertyChangeCallback
_cb Maybe PropertyValues
maybeArg1
onObjectPropertyChange :: (IsObject a, MonadIO m) => a -> P.Maybe T.Text -> ObjectPropertyChangeCallback -> m SignalHandlerId
onObjectPropertyChange :: a
-> Maybe Text -> ObjectPropertyChangeCallback -> m SignalHandlerId
onObjectPropertyChange a
obj Maybe Text
detail ObjectPropertyChangeCallback
cb = IO SignalHandlerId -> m SignalHandlerId
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_ObjectPropertyChangeCallback
cb' = ObjectPropertyChangeCallback -> C_ObjectPropertyChangeCallback
wrap_ObjectPropertyChangeCallback ObjectPropertyChangeCallback
cb
FunPtr C_ObjectPropertyChangeCallback
cb'' <- C_ObjectPropertyChangeCallback
-> IO (FunPtr C_ObjectPropertyChangeCallback)
mk_ObjectPropertyChangeCallback C_ObjectPropertyChangeCallback
cb'
a
-> Text
-> FunPtr C_ObjectPropertyChangeCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"property-change" FunPtr C_ObjectPropertyChangeCallback
cb'' SignalConnectMode
SignalConnectBefore Maybe Text
detail
afterObjectPropertyChange :: (IsObject a, MonadIO m) => a -> P.Maybe T.Text -> ObjectPropertyChangeCallback -> m SignalHandlerId
afterObjectPropertyChange :: a
-> Maybe Text -> ObjectPropertyChangeCallback -> m SignalHandlerId
afterObjectPropertyChange a
obj Maybe Text
detail ObjectPropertyChangeCallback
cb = IO SignalHandlerId -> m SignalHandlerId
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_ObjectPropertyChangeCallback
cb' = ObjectPropertyChangeCallback -> C_ObjectPropertyChangeCallback
wrap_ObjectPropertyChangeCallback ObjectPropertyChangeCallback
cb
FunPtr C_ObjectPropertyChangeCallback
cb'' <- C_ObjectPropertyChangeCallback
-> IO (FunPtr C_ObjectPropertyChangeCallback)
mk_ObjectPropertyChangeCallback C_ObjectPropertyChangeCallback
cb'
a
-> Text
-> FunPtr C_ObjectPropertyChangeCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"property-change" FunPtr C_ObjectPropertyChangeCallback
cb'' SignalConnectMode
SignalConnectAfter Maybe Text
detail
#if defined(ENABLE_OVERLOADING)
data ObjectPropertyChangeSignalInfo
instance SignalInfo ObjectPropertyChangeSignalInfo where
type HaskellCallbackType ObjectPropertyChangeSignalInfo = ObjectPropertyChangeCallback
connectSignal obj cb connectMode detail = do
let cb' = wrap_ObjectPropertyChangeCallback cb
cb'' <- mk_ObjectPropertyChangeCallback cb'
connectSignalFunPtr obj "property-change" cb'' connectMode detail
#endif
type ObjectStateChangeCallback =
T.Text
-> Bool
-> IO ()
noObjectStateChangeCallback :: Maybe ObjectStateChangeCallback
noObjectStateChangeCallback :: Maybe ObjectStateChangeCallback
noObjectStateChangeCallback = Maybe ObjectStateChangeCallback
forall a. Maybe a
Nothing
type C_ObjectStateChangeCallback =
Ptr () ->
CString ->
CInt ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_ObjectStateChangeCallback :: C_ObjectStateChangeCallback -> IO (FunPtr C_ObjectStateChangeCallback)
genClosure_ObjectStateChange :: MonadIO m => ObjectStateChangeCallback -> m (GClosure C_ObjectStateChangeCallback)
genClosure_ObjectStateChange :: ObjectStateChangeCallback
-> m (GClosure C_ObjectStateChangeCallback)
genClosure_ObjectStateChange ObjectStateChangeCallback
cb = IO (GClosure C_ObjectStateChangeCallback)
-> m (GClosure C_ObjectStateChangeCallback)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (GClosure C_ObjectStateChangeCallback)
-> m (GClosure C_ObjectStateChangeCallback))
-> IO (GClosure C_ObjectStateChangeCallback)
-> m (GClosure C_ObjectStateChangeCallback)
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_ObjectStateChangeCallback
cb' = ObjectStateChangeCallback -> C_ObjectStateChangeCallback
wrap_ObjectStateChangeCallback ObjectStateChangeCallback
cb
C_ObjectStateChangeCallback
-> IO (FunPtr C_ObjectStateChangeCallback)
mk_ObjectStateChangeCallback C_ObjectStateChangeCallback
cb' IO (FunPtr C_ObjectStateChangeCallback)
-> (FunPtr C_ObjectStateChangeCallback
-> IO (GClosure C_ObjectStateChangeCallback))
-> IO (GClosure C_ObjectStateChangeCallback)
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= FunPtr C_ObjectStateChangeCallback
-> IO (GClosure C_ObjectStateChangeCallback)
forall (m :: * -> *) a. MonadIO m => FunPtr a -> m (GClosure a)
B.GClosure.newGClosure
wrap_ObjectStateChangeCallback ::
ObjectStateChangeCallback ->
C_ObjectStateChangeCallback
wrap_ObjectStateChangeCallback :: ObjectStateChangeCallback -> C_ObjectStateChangeCallback
wrap_ObjectStateChangeCallback ObjectStateChangeCallback
_cb Ptr ()
_ CString
arg1 CInt
arg2 Ptr ()
_ = do
Text
arg1' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
arg1
let arg2' :: Bool
arg2' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
arg2
ObjectStateChangeCallback
_cb Text
arg1' Bool
arg2'
onObjectStateChange :: (IsObject a, MonadIO m) => a -> P.Maybe T.Text -> ObjectStateChangeCallback -> m SignalHandlerId
onObjectStateChange :: a -> Maybe Text -> ObjectStateChangeCallback -> m SignalHandlerId
onObjectStateChange a
obj Maybe Text
detail ObjectStateChangeCallback
cb = IO SignalHandlerId -> m SignalHandlerId
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_ObjectStateChangeCallback
cb' = ObjectStateChangeCallback -> C_ObjectStateChangeCallback
wrap_ObjectStateChangeCallback ObjectStateChangeCallback
cb
FunPtr C_ObjectStateChangeCallback
cb'' <- C_ObjectStateChangeCallback
-> IO (FunPtr C_ObjectStateChangeCallback)
mk_ObjectStateChangeCallback C_ObjectStateChangeCallback
cb'
a
-> Text
-> FunPtr C_ObjectStateChangeCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"state-change" FunPtr C_ObjectStateChangeCallback
cb'' SignalConnectMode
SignalConnectBefore Maybe Text
detail
afterObjectStateChange :: (IsObject a, MonadIO m) => a -> P.Maybe T.Text -> ObjectStateChangeCallback -> m SignalHandlerId
afterObjectStateChange :: a -> Maybe Text -> ObjectStateChangeCallback -> m SignalHandlerId
afterObjectStateChange a
obj Maybe Text
detail ObjectStateChangeCallback
cb = IO SignalHandlerId -> m SignalHandlerId
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_ObjectStateChangeCallback
cb' = ObjectStateChangeCallback -> C_ObjectStateChangeCallback
wrap_ObjectStateChangeCallback ObjectStateChangeCallback
cb
FunPtr C_ObjectStateChangeCallback
cb'' <- C_ObjectStateChangeCallback
-> IO (FunPtr C_ObjectStateChangeCallback)
mk_ObjectStateChangeCallback C_ObjectStateChangeCallback
cb'
a
-> Text
-> FunPtr C_ObjectStateChangeCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"state-change" FunPtr C_ObjectStateChangeCallback
cb'' SignalConnectMode
SignalConnectAfter Maybe Text
detail
#if defined(ENABLE_OVERLOADING)
data ObjectStateChangeSignalInfo
instance SignalInfo ObjectStateChangeSignalInfo where
type HaskellCallbackType ObjectStateChangeSignalInfo = ObjectStateChangeCallback
connectSignal obj cb connectMode detail = do
let cb' = wrap_ObjectStateChangeCallback cb
cb'' <- mk_ObjectStateChangeCallback cb'
connectSignalFunPtr obj "state-change" cb'' connectMode detail
#endif
type ObjectVisibleDataChangedCallback =
IO ()
noObjectVisibleDataChangedCallback :: Maybe ObjectVisibleDataChangedCallback
noObjectVisibleDataChangedCallback :: Maybe (IO ())
noObjectVisibleDataChangedCallback = Maybe (IO ())
forall a. Maybe a
Nothing
type C_ObjectVisibleDataChangedCallback =
Ptr () ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_ObjectVisibleDataChangedCallback :: C_ObjectVisibleDataChangedCallback -> IO (FunPtr C_ObjectVisibleDataChangedCallback)
genClosure_ObjectVisibleDataChanged :: MonadIO m => ObjectVisibleDataChangedCallback -> m (GClosure C_ObjectVisibleDataChangedCallback)
genClosure_ObjectVisibleDataChanged :: IO () -> m (GClosure C_ObjectVisibleDataChangedCallback)
genClosure_ObjectVisibleDataChanged IO ()
cb = IO (GClosure C_ObjectVisibleDataChangedCallback)
-> m (GClosure C_ObjectVisibleDataChangedCallback)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (GClosure C_ObjectVisibleDataChangedCallback)
-> m (GClosure C_ObjectVisibleDataChangedCallback))
-> IO (GClosure C_ObjectVisibleDataChangedCallback)
-> m (GClosure C_ObjectVisibleDataChangedCallback)
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_ObjectVisibleDataChangedCallback
cb' = IO () -> C_ObjectVisibleDataChangedCallback
wrap_ObjectVisibleDataChangedCallback IO ()
cb
C_ObjectVisibleDataChangedCallback
-> IO (FunPtr C_ObjectVisibleDataChangedCallback)
mk_ObjectVisibleDataChangedCallback C_ObjectVisibleDataChangedCallback
cb' IO (FunPtr C_ObjectVisibleDataChangedCallback)
-> (FunPtr C_ObjectVisibleDataChangedCallback
-> IO (GClosure C_ObjectVisibleDataChangedCallback))
-> IO (GClosure C_ObjectVisibleDataChangedCallback)
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= FunPtr C_ObjectVisibleDataChangedCallback
-> IO (GClosure C_ObjectVisibleDataChangedCallback)
forall (m :: * -> *) a. MonadIO m => FunPtr a -> m (GClosure a)
B.GClosure.newGClosure
wrap_ObjectVisibleDataChangedCallback ::
ObjectVisibleDataChangedCallback ->
C_ObjectVisibleDataChangedCallback
wrap_ObjectVisibleDataChangedCallback :: IO () -> C_ObjectVisibleDataChangedCallback
wrap_ObjectVisibleDataChangedCallback IO ()
_cb Ptr ()
_ Ptr ()
_ = do
IO ()
_cb
onObjectVisibleDataChanged :: (IsObject a, MonadIO m) => a -> ObjectVisibleDataChangedCallback -> m SignalHandlerId
onObjectVisibleDataChanged :: a -> IO () -> m SignalHandlerId
onObjectVisibleDataChanged a
obj IO ()
cb = IO SignalHandlerId -> m SignalHandlerId
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_ObjectVisibleDataChangedCallback
cb' = IO () -> C_ObjectVisibleDataChangedCallback
wrap_ObjectVisibleDataChangedCallback IO ()
cb
FunPtr C_ObjectVisibleDataChangedCallback
cb'' <- C_ObjectVisibleDataChangedCallback
-> IO (FunPtr C_ObjectVisibleDataChangedCallback)
mk_ObjectVisibleDataChangedCallback C_ObjectVisibleDataChangedCallback
cb'
a
-> Text
-> FunPtr C_ObjectVisibleDataChangedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"visible-data-changed" FunPtr C_ObjectVisibleDataChangedCallback
cb'' SignalConnectMode
SignalConnectBefore Maybe Text
forall a. Maybe a
Nothing
afterObjectVisibleDataChanged :: (IsObject a, MonadIO m) => a -> ObjectVisibleDataChangedCallback -> m SignalHandlerId
afterObjectVisibleDataChanged :: a -> IO () -> m SignalHandlerId
afterObjectVisibleDataChanged a
obj IO ()
cb = IO SignalHandlerId -> m SignalHandlerId
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_ObjectVisibleDataChangedCallback
cb' = IO () -> C_ObjectVisibleDataChangedCallback
wrap_ObjectVisibleDataChangedCallback IO ()
cb
FunPtr C_ObjectVisibleDataChangedCallback
cb'' <- C_ObjectVisibleDataChangedCallback
-> IO (FunPtr C_ObjectVisibleDataChangedCallback)
mk_ObjectVisibleDataChangedCallback C_ObjectVisibleDataChangedCallback
cb'
a
-> Text
-> FunPtr C_ObjectVisibleDataChangedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"visible-data-changed" FunPtr C_ObjectVisibleDataChangedCallback
cb'' SignalConnectMode
SignalConnectAfter Maybe Text
forall a. Maybe a
Nothing
#if defined(ENABLE_OVERLOADING)
data ObjectVisibleDataChangedSignalInfo
instance SignalInfo ObjectVisibleDataChangedSignalInfo where
type HaskellCallbackType ObjectVisibleDataChangedSignalInfo = ObjectVisibleDataChangedCallback
connectSignal obj cb connectMode detail = do
let cb' = wrap_ObjectVisibleDataChangedCallback cb
cb'' <- mk_ObjectVisibleDataChangedCallback cb'
connectSignalFunPtr obj "visible-data-changed" cb'' connectMode detail
#endif
getObjectAccessibleComponentLayer :: (MonadIO m, IsObject o) => o -> m Int32
getObjectAccessibleComponentLayer :: o -> m Int32
getObjectAccessibleComponentLayer o
obj = IO Int32 -> m Int32
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Int32
forall a. GObject a => a -> String -> IO Int32
B.Properties.getObjectPropertyInt32 o
obj String
"accessible-component-layer"
#if defined(ENABLE_OVERLOADING)
data ObjectAccessibleComponentLayerPropertyInfo
instance AttrInfo ObjectAccessibleComponentLayerPropertyInfo where
type AttrAllowedOps ObjectAccessibleComponentLayerPropertyInfo = '[ 'AttrGet]
type AttrBaseTypeConstraint ObjectAccessibleComponentLayerPropertyInfo = IsObject
type AttrSetTypeConstraint ObjectAccessibleComponentLayerPropertyInfo = (~) ()
type AttrTransferTypeConstraint ObjectAccessibleComponentLayerPropertyInfo = (~) ()
type AttrTransferType ObjectAccessibleComponentLayerPropertyInfo = ()
type AttrGetType ObjectAccessibleComponentLayerPropertyInfo = Int32
type AttrLabel ObjectAccessibleComponentLayerPropertyInfo = "accessible-component-layer"
type AttrOrigin ObjectAccessibleComponentLayerPropertyInfo = Object
attrGet = getObjectAccessibleComponentLayer
attrSet = undefined
attrTransfer _ = undefined
attrConstruct = undefined
attrClear = undefined
#endif
getObjectAccessibleComponentMdiZorder :: (MonadIO m, IsObject o) => o -> m Int32
getObjectAccessibleComponentMdiZorder :: o -> m Int32
getObjectAccessibleComponentMdiZorder o
obj = IO Int32 -> m Int32
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Int32
forall a. GObject a => a -> String -> IO Int32
B.Properties.getObjectPropertyInt32 o
obj String
"accessible-component-mdi-zorder"
#if defined(ENABLE_OVERLOADING)
data ObjectAccessibleComponentMdiZorderPropertyInfo
instance AttrInfo ObjectAccessibleComponentMdiZorderPropertyInfo where
type AttrAllowedOps ObjectAccessibleComponentMdiZorderPropertyInfo = '[ 'AttrGet]
type AttrBaseTypeConstraint ObjectAccessibleComponentMdiZorderPropertyInfo = IsObject
type AttrSetTypeConstraint ObjectAccessibleComponentMdiZorderPropertyInfo = (~) ()
type AttrTransferTypeConstraint ObjectAccessibleComponentMdiZorderPropertyInfo = (~) ()
type AttrTransferType ObjectAccessibleComponentMdiZorderPropertyInfo = ()
type AttrGetType ObjectAccessibleComponentMdiZorderPropertyInfo = Int32
type AttrLabel ObjectAccessibleComponentMdiZorderPropertyInfo = "accessible-component-mdi-zorder"
type AttrOrigin ObjectAccessibleComponentMdiZorderPropertyInfo = Object
attrGet = getObjectAccessibleComponentMdiZorder
attrSet = undefined
attrTransfer _ = undefined
attrConstruct = undefined
attrClear = undefined
#endif
getObjectAccessibleDescription :: (MonadIO m, IsObject o) => o -> m (Maybe T.Text)
getObjectAccessibleDescription :: o -> m (Maybe Text)
getObjectAccessibleDescription o
obj = IO (Maybe Text) -> m (Maybe Text)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (Maybe Text) -> m (Maybe Text))
-> IO (Maybe Text) -> m (Maybe Text)
forall a b. (a -> b) -> a -> b
$ o -> String -> IO (Maybe Text)
forall a. GObject a => a -> String -> IO (Maybe Text)
B.Properties.getObjectPropertyString o
obj String
"accessible-description"
setObjectAccessibleDescription :: (MonadIO m, IsObject o) => o -> T.Text -> m ()
setObjectAccessibleDescription :: o -> Text -> m ()
setObjectAccessibleDescription o
obj Text
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"accessible-description" (Text -> Maybe Text
forall a. a -> Maybe a
Just Text
val)
constructObjectAccessibleDescription :: (IsObject o, MIO.MonadIO m) => T.Text -> m (GValueConstruct o)
constructObjectAccessibleDescription :: Text -> m (GValueConstruct o)
constructObjectAccessibleDescription Text
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe Text -> IO (GValueConstruct o)
forall o. String -> Maybe Text -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyString String
"accessible-description" (Text -> Maybe Text
forall a. a -> Maybe a
P.Just Text
val)
clearObjectAccessibleDescription :: (MonadIO m, IsObject o) => o -> m ()
clearObjectAccessibleDescription :: o -> m ()
clearObjectAccessibleDescription o
obj = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"accessible-description" (Maybe Text
forall a. Maybe a
Nothing :: Maybe T.Text)
#if defined(ENABLE_OVERLOADING)
data ObjectAccessibleDescriptionPropertyInfo
instance AttrInfo ObjectAccessibleDescriptionPropertyInfo where
type AttrAllowedOps ObjectAccessibleDescriptionPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint ObjectAccessibleDescriptionPropertyInfo = IsObject
type AttrSetTypeConstraint ObjectAccessibleDescriptionPropertyInfo = (~) T.Text
type AttrTransferTypeConstraint ObjectAccessibleDescriptionPropertyInfo = (~) T.Text
type AttrTransferType ObjectAccessibleDescriptionPropertyInfo = T.Text
type AttrGetType ObjectAccessibleDescriptionPropertyInfo = (Maybe T.Text)
type AttrLabel ObjectAccessibleDescriptionPropertyInfo = "accessible-description"
type AttrOrigin ObjectAccessibleDescriptionPropertyInfo = Object
attrGet = getObjectAccessibleDescription
attrSet = setObjectAccessibleDescription
attrTransfer _ v = do
return v
attrConstruct = constructObjectAccessibleDescription
attrClear = clearObjectAccessibleDescription
#endif
getObjectAccessibleHypertextNlinks :: (MonadIO m, IsObject o) => o -> m Int32
getObjectAccessibleHypertextNlinks :: o -> m Int32
getObjectAccessibleHypertextNlinks o
obj = IO Int32 -> m Int32
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Int32
forall a. GObject a => a -> String -> IO Int32
B.Properties.getObjectPropertyInt32 o
obj String
"accessible-hypertext-nlinks"
#if defined(ENABLE_OVERLOADING)
data ObjectAccessibleHypertextNlinksPropertyInfo
instance AttrInfo ObjectAccessibleHypertextNlinksPropertyInfo where
type AttrAllowedOps ObjectAccessibleHypertextNlinksPropertyInfo = '[ 'AttrGet]
type AttrBaseTypeConstraint ObjectAccessibleHypertextNlinksPropertyInfo = IsObject
type AttrSetTypeConstraint ObjectAccessibleHypertextNlinksPropertyInfo = (~) ()
type AttrTransferTypeConstraint ObjectAccessibleHypertextNlinksPropertyInfo = (~) ()
type AttrTransferType ObjectAccessibleHypertextNlinksPropertyInfo = ()
type AttrGetType ObjectAccessibleHypertextNlinksPropertyInfo = Int32
type AttrLabel ObjectAccessibleHypertextNlinksPropertyInfo = "accessible-hypertext-nlinks"
type AttrOrigin ObjectAccessibleHypertextNlinksPropertyInfo = Object
attrGet = getObjectAccessibleHypertextNlinks
attrSet = undefined
attrTransfer _ = undefined
attrConstruct = undefined
attrClear = undefined
#endif
getObjectAccessibleName :: (MonadIO m, IsObject o) => o -> m (Maybe T.Text)
getObjectAccessibleName :: o -> m (Maybe Text)
getObjectAccessibleName o
obj = IO (Maybe Text) -> m (Maybe Text)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (Maybe Text) -> m (Maybe Text))
-> IO (Maybe Text) -> m (Maybe Text)
forall a b. (a -> b) -> a -> b
$ o -> String -> IO (Maybe Text)
forall a. GObject a => a -> String -> IO (Maybe Text)
B.Properties.getObjectPropertyString o
obj String
"accessible-name"
setObjectAccessibleName :: (MonadIO m, IsObject o) => o -> T.Text -> m ()
setObjectAccessibleName :: o -> Text -> m ()
setObjectAccessibleName o
obj Text
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"accessible-name" (Text -> Maybe Text
forall a. a -> Maybe a
Just Text
val)
constructObjectAccessibleName :: (IsObject o, MIO.MonadIO m) => T.Text -> m (GValueConstruct o)
constructObjectAccessibleName :: Text -> m (GValueConstruct o)
constructObjectAccessibleName Text
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe Text -> IO (GValueConstruct o)
forall o. String -> Maybe Text -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyString String
"accessible-name" (Text -> Maybe Text
forall a. a -> Maybe a
P.Just Text
val)
clearObjectAccessibleName :: (MonadIO m, IsObject o) => o -> m ()
clearObjectAccessibleName :: o -> m ()
clearObjectAccessibleName o
obj = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"accessible-name" (Maybe Text
forall a. Maybe a
Nothing :: Maybe T.Text)
#if defined(ENABLE_OVERLOADING)
data ObjectAccessibleNamePropertyInfo
instance AttrInfo ObjectAccessibleNamePropertyInfo where
type AttrAllowedOps ObjectAccessibleNamePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint ObjectAccessibleNamePropertyInfo = IsObject
type AttrSetTypeConstraint ObjectAccessibleNamePropertyInfo = (~) T.Text
type AttrTransferTypeConstraint ObjectAccessibleNamePropertyInfo = (~) T.Text
type AttrTransferType ObjectAccessibleNamePropertyInfo = T.Text
type AttrGetType ObjectAccessibleNamePropertyInfo = (Maybe T.Text)
type AttrLabel ObjectAccessibleNamePropertyInfo = "accessible-name"
type AttrOrigin ObjectAccessibleNamePropertyInfo = Object
attrGet = getObjectAccessibleName
attrSet = setObjectAccessibleName
attrTransfer _ v = do
return v
attrConstruct = constructObjectAccessibleName
attrClear = clearObjectAccessibleName
#endif
getObjectAccessibleParent :: (MonadIO m, IsObject o) => o -> m (Maybe Object)
getObjectAccessibleParent :: o -> m (Maybe Object)
getObjectAccessibleParent o
obj = IO (Maybe Object) -> m (Maybe Object)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (Maybe Object) -> m (Maybe Object))
-> IO (Maybe Object) -> m (Maybe Object)
forall a b. (a -> b) -> a -> b
$ o -> String -> (ManagedPtr Object -> Object) -> IO (Maybe Object)
forall a b.
(GObject a, GObject b) =>
a -> String -> (ManagedPtr b -> b) -> IO (Maybe b)
B.Properties.getObjectPropertyObject o
obj String
"accessible-parent" ManagedPtr Object -> Object
Object
setObjectAccessibleParent :: (MonadIO m, IsObject o, IsObject a) => o -> a -> m ()
setObjectAccessibleParent :: o -> a -> m ()
setObjectAccessibleParent o
obj a
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe a -> IO ()
forall a b.
(GObject a, GObject b) =>
a -> String -> Maybe b -> IO ()
B.Properties.setObjectPropertyObject o
obj String
"accessible-parent" (a -> Maybe a
forall a. a -> Maybe a
Just a
val)
constructObjectAccessibleParent :: (IsObject o, MIO.MonadIO m, IsObject a) => a -> m (GValueConstruct o)
constructObjectAccessibleParent :: a -> m (GValueConstruct o)
constructObjectAccessibleParent a
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe a -> IO (GValueConstruct o)
forall a o.
GObject a =>
String -> Maybe a -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyObject String
"accessible-parent" (a -> Maybe a
forall a. a -> Maybe a
P.Just a
val)
clearObjectAccessibleParent :: (MonadIO m, IsObject o) => o -> m ()
clearObjectAccessibleParent :: o -> m ()
clearObjectAccessibleParent o
obj = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> ObjectActiveDescendantChangedCallback
forall a b.
(GObject a, GObject b) =>
a -> String -> Maybe b -> IO ()
B.Properties.setObjectPropertyObject o
obj String
"accessible-parent" (Maybe Object
forall a. Maybe a
Nothing :: Maybe Object)
#if defined(ENABLE_OVERLOADING)
data ObjectAccessibleParentPropertyInfo
instance AttrInfo ObjectAccessibleParentPropertyInfo where
type AttrAllowedOps ObjectAccessibleParentPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint ObjectAccessibleParentPropertyInfo = IsObject
type AttrSetTypeConstraint ObjectAccessibleParentPropertyInfo = IsObject
type AttrTransferTypeConstraint ObjectAccessibleParentPropertyInfo = IsObject
type AttrTransferType ObjectAccessibleParentPropertyInfo = Object
type AttrGetType ObjectAccessibleParentPropertyInfo = (Maybe Object)
type AttrLabel ObjectAccessibleParentPropertyInfo = "accessible-parent"
type AttrOrigin ObjectAccessibleParentPropertyInfo = Object
attrGet = getObjectAccessibleParent
attrSet = setObjectAccessibleParent
attrTransfer _ v = do
unsafeCastTo Object v
attrConstruct = constructObjectAccessibleParent
attrClear = clearObjectAccessibleParent
#endif
getObjectAccessibleRole :: (MonadIO m, IsObject o) => o -> m Atk.Enums.Role
getObjectAccessibleRole :: o -> m Role
getObjectAccessibleRole o
obj = IO Role -> m Role
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Role -> m Role) -> IO Role -> m Role
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Role
forall a b. (GObject a, Enum b, BoxedEnum b) => a -> String -> IO b
B.Properties.getObjectPropertyEnum o
obj String
"accessible-role"
setObjectAccessibleRole :: (MonadIO m, IsObject o) => o -> Atk.Enums.Role -> m ()
setObjectAccessibleRole :: o -> Role -> m ()
setObjectAccessibleRole o
obj Role
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Role -> IO ()
forall a b.
(GObject a, Enum b, BoxedEnum b) =>
a -> String -> b -> IO ()
B.Properties.setObjectPropertyEnum o
obj String
"accessible-role" Role
val
constructObjectAccessibleRole :: (IsObject o, MIO.MonadIO m) => Atk.Enums.Role -> m (GValueConstruct o)
constructObjectAccessibleRole :: Role -> m (GValueConstruct o)
constructObjectAccessibleRole Role
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Role -> IO (GValueConstruct o)
forall a o.
(Enum a, BoxedEnum a) =>
String -> a -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyEnum String
"accessible-role" Role
val
#if defined(ENABLE_OVERLOADING)
data ObjectAccessibleRolePropertyInfo
instance AttrInfo ObjectAccessibleRolePropertyInfo where
type AttrAllowedOps ObjectAccessibleRolePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint ObjectAccessibleRolePropertyInfo = IsObject
type AttrSetTypeConstraint ObjectAccessibleRolePropertyInfo = (~) Atk.Enums.Role
type AttrTransferTypeConstraint ObjectAccessibleRolePropertyInfo = (~) Atk.Enums.Role
type AttrTransferType ObjectAccessibleRolePropertyInfo = Atk.Enums.Role
type AttrGetType ObjectAccessibleRolePropertyInfo = Atk.Enums.Role
type AttrLabel ObjectAccessibleRolePropertyInfo = "accessible-role"
type AttrOrigin ObjectAccessibleRolePropertyInfo = Object
attrGet = getObjectAccessibleRole
attrSet = setObjectAccessibleRole
attrTransfer _ v = do
return v
attrConstruct = constructObjectAccessibleRole
attrClear = undefined
#endif
getObjectAccessibleTableCaption :: (MonadIO m, IsObject o) => o -> m (Maybe T.Text)
getObjectAccessibleTableCaption :: o -> m (Maybe Text)
getObjectAccessibleTableCaption o
obj = IO (Maybe Text) -> m (Maybe Text)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (Maybe Text) -> m (Maybe Text))
-> IO (Maybe Text) -> m (Maybe Text)
forall a b. (a -> b) -> a -> b
$ o -> String -> IO (Maybe Text)
forall a. GObject a => a -> String -> IO (Maybe Text)
B.Properties.getObjectPropertyString o
obj String
"accessible-table-caption"
setObjectAccessibleTableCaption :: (MonadIO m, IsObject o) => o -> T.Text -> m ()
setObjectAccessibleTableCaption :: o -> Text -> m ()
setObjectAccessibleTableCaption o
obj Text
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"accessible-table-caption" (Text -> Maybe Text
forall a. a -> Maybe a
Just Text
val)
constructObjectAccessibleTableCaption :: (IsObject o, MIO.MonadIO m) => T.Text -> m (GValueConstruct o)
constructObjectAccessibleTableCaption :: Text -> m (GValueConstruct o)
constructObjectAccessibleTableCaption Text
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe Text -> IO (GValueConstruct o)
forall o. String -> Maybe Text -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyString String
"accessible-table-caption" (Text -> Maybe Text
forall a. a -> Maybe a
P.Just Text
val)
clearObjectAccessibleTableCaption :: (MonadIO m, IsObject o) => o -> m ()
clearObjectAccessibleTableCaption :: o -> m ()
clearObjectAccessibleTableCaption o
obj = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"accessible-table-caption" (Maybe Text
forall a. Maybe a
Nothing :: Maybe T.Text)
#if defined(ENABLE_OVERLOADING)
data ObjectAccessibleTableCaptionPropertyInfo
instance AttrInfo ObjectAccessibleTableCaptionPropertyInfo where
type AttrAllowedOps ObjectAccessibleTableCaptionPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint ObjectAccessibleTableCaptionPropertyInfo = IsObject
type AttrSetTypeConstraint ObjectAccessibleTableCaptionPropertyInfo = (~) T.Text
type AttrTransferTypeConstraint ObjectAccessibleTableCaptionPropertyInfo = (~) T.Text
type AttrTransferType ObjectAccessibleTableCaptionPropertyInfo = T.Text
type AttrGetType ObjectAccessibleTableCaptionPropertyInfo = (Maybe T.Text)
type AttrLabel ObjectAccessibleTableCaptionPropertyInfo = "accessible-table-caption"
type AttrOrigin ObjectAccessibleTableCaptionPropertyInfo = Object
attrGet = getObjectAccessibleTableCaption
attrSet = setObjectAccessibleTableCaption
attrTransfer _ v = do
return v
attrConstruct = constructObjectAccessibleTableCaption
attrClear = clearObjectAccessibleTableCaption
#endif
getObjectAccessibleTableCaptionObject :: (MonadIO m, IsObject o) => o -> m (Maybe Object)
getObjectAccessibleTableCaptionObject :: o -> m (Maybe Object)
getObjectAccessibleTableCaptionObject o
obj = IO (Maybe Object) -> m (Maybe Object)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (Maybe Object) -> m (Maybe Object))
-> IO (Maybe Object) -> m (Maybe Object)
forall a b. (a -> b) -> a -> b
$ o -> String -> (ManagedPtr Object -> Object) -> IO (Maybe Object)
forall a b.
(GObject a, GObject b) =>
a -> String -> (ManagedPtr b -> b) -> IO (Maybe b)
B.Properties.getObjectPropertyObject o
obj String
"accessible-table-caption-object" ManagedPtr Object -> Object
Object
setObjectAccessibleTableCaptionObject :: (MonadIO m, IsObject o, IsObject a) => o -> a -> m ()
setObjectAccessibleTableCaptionObject :: o -> a -> m ()
setObjectAccessibleTableCaptionObject o
obj a
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe a -> IO ()
forall a b.
(GObject a, GObject b) =>
a -> String -> Maybe b -> IO ()
B.Properties.setObjectPropertyObject o
obj String
"accessible-table-caption-object" (a -> Maybe a
forall a. a -> Maybe a
Just a
val)
constructObjectAccessibleTableCaptionObject :: (IsObject o, MIO.MonadIO m, IsObject a) => a -> m (GValueConstruct o)
constructObjectAccessibleTableCaptionObject :: a -> m (GValueConstruct o)
constructObjectAccessibleTableCaptionObject a
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe a -> IO (GValueConstruct o)
forall a o.
GObject a =>
String -> Maybe a -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyObject String
"accessible-table-caption-object" (a -> Maybe a
forall a. a -> Maybe a
P.Just a
val)
clearObjectAccessibleTableCaptionObject :: (MonadIO m, IsObject o) => o -> m ()
clearObjectAccessibleTableCaptionObject :: o -> m ()
clearObjectAccessibleTableCaptionObject o
obj = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> ObjectActiveDescendantChangedCallback
forall a b.
(GObject a, GObject b) =>
a -> String -> Maybe b -> IO ()
B.Properties.setObjectPropertyObject o
obj String
"accessible-table-caption-object" (Maybe Object
forall a. Maybe a
Nothing :: Maybe Object)
#if defined(ENABLE_OVERLOADING)
data ObjectAccessibleTableCaptionObjectPropertyInfo
instance AttrInfo ObjectAccessibleTableCaptionObjectPropertyInfo where
type AttrAllowedOps ObjectAccessibleTableCaptionObjectPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint ObjectAccessibleTableCaptionObjectPropertyInfo = IsObject
type AttrSetTypeConstraint ObjectAccessibleTableCaptionObjectPropertyInfo = IsObject
type AttrTransferTypeConstraint ObjectAccessibleTableCaptionObjectPropertyInfo = IsObject
type AttrTransferType ObjectAccessibleTableCaptionObjectPropertyInfo = Object
type AttrGetType ObjectAccessibleTableCaptionObjectPropertyInfo = (Maybe Object)
type AttrLabel ObjectAccessibleTableCaptionObjectPropertyInfo = "accessible-table-caption-object"
type AttrOrigin ObjectAccessibleTableCaptionObjectPropertyInfo = Object
attrGet = getObjectAccessibleTableCaptionObject
attrSet = setObjectAccessibleTableCaptionObject
attrTransfer _ v = do
unsafeCastTo Object v
attrConstruct = constructObjectAccessibleTableCaptionObject
attrClear = clearObjectAccessibleTableCaptionObject
#endif
getObjectAccessibleTableColumnDescription :: (MonadIO m, IsObject o) => o -> m (Maybe T.Text)
getObjectAccessibleTableColumnDescription :: o -> m (Maybe Text)
getObjectAccessibleTableColumnDescription o
obj = IO (Maybe Text) -> m (Maybe Text)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (Maybe Text) -> m (Maybe Text))
-> IO (Maybe Text) -> m (Maybe Text)
forall a b. (a -> b) -> a -> b
$ o -> String -> IO (Maybe Text)
forall a. GObject a => a -> String -> IO (Maybe Text)
B.Properties.getObjectPropertyString o
obj String
"accessible-table-column-description"
setObjectAccessibleTableColumnDescription :: (MonadIO m, IsObject o) => o -> T.Text -> m ()
setObjectAccessibleTableColumnDescription :: o -> Text -> m ()
setObjectAccessibleTableColumnDescription o
obj Text
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"accessible-table-column-description" (Text -> Maybe Text
forall a. a -> Maybe a
Just Text
val)
constructObjectAccessibleTableColumnDescription :: (IsObject o, MIO.MonadIO m) => T.Text -> m (GValueConstruct o)
constructObjectAccessibleTableColumnDescription :: Text -> m (GValueConstruct o)
constructObjectAccessibleTableColumnDescription Text
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe Text -> IO (GValueConstruct o)
forall o. String -> Maybe Text -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyString String
"accessible-table-column-description" (Text -> Maybe Text
forall a. a -> Maybe a
P.Just Text
val)
clearObjectAccessibleTableColumnDescription :: (MonadIO m, IsObject o) => o -> m ()
clearObjectAccessibleTableColumnDescription :: o -> m ()
clearObjectAccessibleTableColumnDescription o
obj = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"accessible-table-column-description" (Maybe Text
forall a. Maybe a
Nothing :: Maybe T.Text)
#if defined(ENABLE_OVERLOADING)
data ObjectAccessibleTableColumnDescriptionPropertyInfo
instance AttrInfo ObjectAccessibleTableColumnDescriptionPropertyInfo where
type AttrAllowedOps ObjectAccessibleTableColumnDescriptionPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint ObjectAccessibleTableColumnDescriptionPropertyInfo = IsObject
type AttrSetTypeConstraint ObjectAccessibleTableColumnDescriptionPropertyInfo = (~) T.Text
type AttrTransferTypeConstraint ObjectAccessibleTableColumnDescriptionPropertyInfo = (~) T.Text
type AttrTransferType ObjectAccessibleTableColumnDescriptionPropertyInfo = T.Text
type AttrGetType ObjectAccessibleTableColumnDescriptionPropertyInfo = (Maybe T.Text)
type AttrLabel ObjectAccessibleTableColumnDescriptionPropertyInfo = "accessible-table-column-description"
type AttrOrigin ObjectAccessibleTableColumnDescriptionPropertyInfo = Object
attrGet = getObjectAccessibleTableColumnDescription
attrSet = setObjectAccessibleTableColumnDescription
attrTransfer _ v = do
return v
attrConstruct = constructObjectAccessibleTableColumnDescription
attrClear = clearObjectAccessibleTableColumnDescription
#endif
getObjectAccessibleTableColumnHeader :: (MonadIO m, IsObject o) => o -> m (Maybe Object)
getObjectAccessibleTableColumnHeader :: o -> m (Maybe Object)
getObjectAccessibleTableColumnHeader o
obj = IO (Maybe Object) -> m (Maybe Object)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (Maybe Object) -> m (Maybe Object))
-> IO (Maybe Object) -> m (Maybe Object)
forall a b. (a -> b) -> a -> b
$ o -> String -> (ManagedPtr Object -> Object) -> IO (Maybe Object)
forall a b.
(GObject a, GObject b) =>
a -> String -> (ManagedPtr b -> b) -> IO (Maybe b)
B.Properties.getObjectPropertyObject o
obj String
"accessible-table-column-header" ManagedPtr Object -> Object
Object
setObjectAccessibleTableColumnHeader :: (MonadIO m, IsObject o, IsObject a) => o -> a -> m ()
setObjectAccessibleTableColumnHeader :: o -> a -> m ()
setObjectAccessibleTableColumnHeader o
obj a
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe a -> IO ()
forall a b.
(GObject a, GObject b) =>
a -> String -> Maybe b -> IO ()
B.Properties.setObjectPropertyObject o
obj String
"accessible-table-column-header" (a -> Maybe a
forall a. a -> Maybe a
Just a
val)
constructObjectAccessibleTableColumnHeader :: (IsObject o, MIO.MonadIO m, IsObject a) => a -> m (GValueConstruct o)
constructObjectAccessibleTableColumnHeader :: a -> m (GValueConstruct o)
constructObjectAccessibleTableColumnHeader a
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe a -> IO (GValueConstruct o)
forall a o.
GObject a =>
String -> Maybe a -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyObject String
"accessible-table-column-header" (a -> Maybe a
forall a. a -> Maybe a
P.Just a
val)
clearObjectAccessibleTableColumnHeader :: (MonadIO m, IsObject o) => o -> m ()
clearObjectAccessibleTableColumnHeader :: o -> m ()
clearObjectAccessibleTableColumnHeader o
obj = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> ObjectActiveDescendantChangedCallback
forall a b.
(GObject a, GObject b) =>
a -> String -> Maybe b -> IO ()
B.Properties.setObjectPropertyObject o
obj String
"accessible-table-column-header" (Maybe Object
forall a. Maybe a
Nothing :: Maybe Object)
#if defined(ENABLE_OVERLOADING)
data ObjectAccessibleTableColumnHeaderPropertyInfo
instance AttrInfo ObjectAccessibleTableColumnHeaderPropertyInfo where
type AttrAllowedOps ObjectAccessibleTableColumnHeaderPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint ObjectAccessibleTableColumnHeaderPropertyInfo = IsObject
type AttrSetTypeConstraint ObjectAccessibleTableColumnHeaderPropertyInfo = IsObject
type AttrTransferTypeConstraint ObjectAccessibleTableColumnHeaderPropertyInfo = IsObject
type AttrTransferType ObjectAccessibleTableColumnHeaderPropertyInfo = Object
type AttrGetType ObjectAccessibleTableColumnHeaderPropertyInfo = (Maybe Object)
type AttrLabel ObjectAccessibleTableColumnHeaderPropertyInfo = "accessible-table-column-header"
type AttrOrigin ObjectAccessibleTableColumnHeaderPropertyInfo = Object
attrGet = getObjectAccessibleTableColumnHeader
attrSet = setObjectAccessibleTableColumnHeader
attrTransfer _ v = do
unsafeCastTo Object v
attrConstruct = constructObjectAccessibleTableColumnHeader
attrClear = clearObjectAccessibleTableColumnHeader
#endif
getObjectAccessibleTableRowDescription :: (MonadIO m, IsObject o) => o -> m (Maybe T.Text)
getObjectAccessibleTableRowDescription :: o -> m (Maybe Text)
getObjectAccessibleTableRowDescription o
obj = IO (Maybe Text) -> m (Maybe Text)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (Maybe Text) -> m (Maybe Text))
-> IO (Maybe Text) -> m (Maybe Text)
forall a b. (a -> b) -> a -> b
$ o -> String -> IO (Maybe Text)
forall a. GObject a => a -> String -> IO (Maybe Text)
B.Properties.getObjectPropertyString o
obj String
"accessible-table-row-description"
setObjectAccessibleTableRowDescription :: (MonadIO m, IsObject o) => o -> T.Text -> m ()
setObjectAccessibleTableRowDescription :: o -> Text -> m ()
setObjectAccessibleTableRowDescription o
obj Text
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"accessible-table-row-description" (Text -> Maybe Text
forall a. a -> Maybe a
Just Text
val)
constructObjectAccessibleTableRowDescription :: (IsObject o, MIO.MonadIO m) => T.Text -> m (GValueConstruct o)
constructObjectAccessibleTableRowDescription :: Text -> m (GValueConstruct o)
constructObjectAccessibleTableRowDescription Text
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe Text -> IO (GValueConstruct o)
forall o. String -> Maybe Text -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyString String
"accessible-table-row-description" (Text -> Maybe Text
forall a. a -> Maybe a
P.Just Text
val)
clearObjectAccessibleTableRowDescription :: (MonadIO m, IsObject o) => o -> m ()
clearObjectAccessibleTableRowDescription :: o -> m ()
clearObjectAccessibleTableRowDescription o
obj = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"accessible-table-row-description" (Maybe Text
forall a. Maybe a
Nothing :: Maybe T.Text)
#if defined(ENABLE_OVERLOADING)
data ObjectAccessibleTableRowDescriptionPropertyInfo
instance AttrInfo ObjectAccessibleTableRowDescriptionPropertyInfo where
type AttrAllowedOps ObjectAccessibleTableRowDescriptionPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint ObjectAccessibleTableRowDescriptionPropertyInfo = IsObject
type AttrSetTypeConstraint ObjectAccessibleTableRowDescriptionPropertyInfo = (~) T.Text
type AttrTransferTypeConstraint ObjectAccessibleTableRowDescriptionPropertyInfo = (~) T.Text
type AttrTransferType ObjectAccessibleTableRowDescriptionPropertyInfo = T.Text
type AttrGetType ObjectAccessibleTableRowDescriptionPropertyInfo = (Maybe T.Text)
type AttrLabel ObjectAccessibleTableRowDescriptionPropertyInfo = "accessible-table-row-description"
type AttrOrigin ObjectAccessibleTableRowDescriptionPropertyInfo = Object
attrGet = getObjectAccessibleTableRowDescription
attrSet = setObjectAccessibleTableRowDescription
attrTransfer _ v = do
return v
attrConstruct = constructObjectAccessibleTableRowDescription
attrClear = clearObjectAccessibleTableRowDescription
#endif
getObjectAccessibleTableRowHeader :: (MonadIO m, IsObject o) => o -> m (Maybe Object)
o
obj = IO (Maybe Object) -> m (Maybe Object)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (Maybe Object) -> m (Maybe Object))
-> IO (Maybe Object) -> m (Maybe Object)
forall a b. (a -> b) -> a -> b
$ o -> String -> (ManagedPtr Object -> Object) -> IO (Maybe Object)
forall a b.
(GObject a, GObject b) =>
a -> String -> (ManagedPtr b -> b) -> IO (Maybe b)
B.Properties.getObjectPropertyObject o
obj String
"accessible-table-row-header" ManagedPtr Object -> Object
Object
setObjectAccessibleTableRowHeader :: (MonadIO m, IsObject o, IsObject a) => o -> a -> m ()
o
obj a
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe a -> IO ()
forall a b.
(GObject a, GObject b) =>
a -> String -> Maybe b -> IO ()
B.Properties.setObjectPropertyObject o
obj String
"accessible-table-row-header" (a -> Maybe a
forall a. a -> Maybe a
Just a
val)
constructObjectAccessibleTableRowHeader :: (IsObject o, MIO.MonadIO m, IsObject a) => a -> m (GValueConstruct o)
a
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe a -> IO (GValueConstruct o)
forall a o.
GObject a =>
String -> Maybe a -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyObject String
"accessible-table-row-header" (a -> Maybe a
forall a. a -> Maybe a
P.Just a
val)
clearObjectAccessibleTableRowHeader :: (MonadIO m, IsObject o) => o -> m ()
o
obj = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> ObjectActiveDescendantChangedCallback
forall a b.
(GObject a, GObject b) =>
a -> String -> Maybe b -> IO ()
B.Properties.setObjectPropertyObject o
obj String
"accessible-table-row-header" (Maybe Object
forall a. Maybe a
Nothing :: Maybe Object)
#if defined(ENABLE_OVERLOADING)
data ObjectAccessibleTableRowHeaderPropertyInfo
instance AttrInfo ObjectAccessibleTableRowHeaderPropertyInfo where
type AttrAllowedOps ObjectAccessibleTableRowHeaderPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint ObjectAccessibleTableRowHeaderPropertyInfo = IsObject
type AttrSetTypeConstraint ObjectAccessibleTableRowHeaderPropertyInfo = IsObject
type AttrTransferTypeConstraint ObjectAccessibleTableRowHeaderPropertyInfo = IsObject
type AttrTransferType ObjectAccessibleTableRowHeaderPropertyInfo = Object
type AttrGetType ObjectAccessibleTableRowHeaderPropertyInfo = (Maybe Object)
type AttrLabel ObjectAccessibleTableRowHeaderPropertyInfo = "accessible-table-row-header"
type AttrOrigin ObjectAccessibleTableRowHeaderPropertyInfo = Object
attrGet = getObjectAccessibleTableRowHeader
attrSet = setObjectAccessibleTableRowHeader
attrTransfer _ v = do
unsafeCastTo Object v
attrConstruct = constructObjectAccessibleTableRowHeader
attrClear = clearObjectAccessibleTableRowHeader
#endif
getObjectAccessibleTableSummary :: (MonadIO m, IsObject o) => o -> m (Maybe Object)
getObjectAccessibleTableSummary :: o -> m (Maybe Object)
getObjectAccessibleTableSummary o
obj = IO (Maybe Object) -> m (Maybe Object)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (Maybe Object) -> m (Maybe Object))
-> IO (Maybe Object) -> m (Maybe Object)
forall a b. (a -> b) -> a -> b
$ o -> String -> (ManagedPtr Object -> Object) -> IO (Maybe Object)
forall a b.
(GObject a, GObject b) =>
a -> String -> (ManagedPtr b -> b) -> IO (Maybe b)
B.Properties.getObjectPropertyObject o
obj String
"accessible-table-summary" ManagedPtr Object -> Object
Object
setObjectAccessibleTableSummary :: (MonadIO m, IsObject o, IsObject a) => o -> a -> m ()
setObjectAccessibleTableSummary :: o -> a -> m ()
setObjectAccessibleTableSummary o
obj a
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe a -> IO ()
forall a b.
(GObject a, GObject b) =>
a -> String -> Maybe b -> IO ()
B.Properties.setObjectPropertyObject o
obj String
"accessible-table-summary" (a -> Maybe a
forall a. a -> Maybe a
Just a
val)
constructObjectAccessibleTableSummary :: (IsObject o, MIO.MonadIO m, IsObject a) => a -> m (GValueConstruct o)
constructObjectAccessibleTableSummary :: a -> m (GValueConstruct o)
constructObjectAccessibleTableSummary a
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe a -> IO (GValueConstruct o)
forall a o.
GObject a =>
String -> Maybe a -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyObject String
"accessible-table-summary" (a -> Maybe a
forall a. a -> Maybe a
P.Just a
val)
clearObjectAccessibleTableSummary :: (MonadIO m, IsObject o) => o -> m ()
clearObjectAccessibleTableSummary :: o -> m ()
clearObjectAccessibleTableSummary o
obj = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> ObjectActiveDescendantChangedCallback
forall a b.
(GObject a, GObject b) =>
a -> String -> Maybe b -> IO ()
B.Properties.setObjectPropertyObject o
obj String
"accessible-table-summary" (Maybe Object
forall a. Maybe a
Nothing :: Maybe Object)
#if defined(ENABLE_OVERLOADING)
data ObjectAccessibleTableSummaryPropertyInfo
instance AttrInfo ObjectAccessibleTableSummaryPropertyInfo where
type AttrAllowedOps ObjectAccessibleTableSummaryPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint ObjectAccessibleTableSummaryPropertyInfo = IsObject
type AttrSetTypeConstraint ObjectAccessibleTableSummaryPropertyInfo = IsObject
type AttrTransferTypeConstraint ObjectAccessibleTableSummaryPropertyInfo = IsObject
type AttrTransferType ObjectAccessibleTableSummaryPropertyInfo = Object
type AttrGetType ObjectAccessibleTableSummaryPropertyInfo = (Maybe Object)
type AttrLabel ObjectAccessibleTableSummaryPropertyInfo = "accessible-table-summary"
type AttrOrigin ObjectAccessibleTableSummaryPropertyInfo = Object
attrGet = getObjectAccessibleTableSummary
attrSet = setObjectAccessibleTableSummary
attrTransfer _ v = do
unsafeCastTo Object v
attrConstruct = constructObjectAccessibleTableSummary
attrClear = clearObjectAccessibleTableSummary
#endif
getObjectAccessibleValue :: (MonadIO m, IsObject o) => o -> m Double
getObjectAccessibleValue :: o -> m Double
getObjectAccessibleValue o
obj = IO Double -> m Double
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Double -> m Double) -> IO Double -> m Double
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Double
forall a. GObject a => a -> String -> IO Double
B.Properties.getObjectPropertyDouble o
obj String
"accessible-value"
setObjectAccessibleValue :: (MonadIO m, IsObject o) => o -> Double -> m ()
setObjectAccessibleValue :: o -> Double -> m ()
setObjectAccessibleValue o
obj Double
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Double -> IO ()
forall a. GObject a => a -> String -> Double -> IO ()
B.Properties.setObjectPropertyDouble o
obj String
"accessible-value" Double
val
constructObjectAccessibleValue :: (IsObject o, MIO.MonadIO m) => Double -> m (GValueConstruct o)
constructObjectAccessibleValue :: Double -> m (GValueConstruct o)
constructObjectAccessibleValue Double
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Double -> IO (GValueConstruct o)
forall o. String -> Double -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyDouble String
"accessible-value" Double
val
#if defined(ENABLE_OVERLOADING)
data ObjectAccessibleValuePropertyInfo
instance AttrInfo ObjectAccessibleValuePropertyInfo where
type AttrAllowedOps ObjectAccessibleValuePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint ObjectAccessibleValuePropertyInfo = IsObject
type AttrSetTypeConstraint ObjectAccessibleValuePropertyInfo = (~) Double
type AttrTransferTypeConstraint ObjectAccessibleValuePropertyInfo = (~) Double
type AttrTransferType ObjectAccessibleValuePropertyInfo = Double
type AttrGetType ObjectAccessibleValuePropertyInfo = Double
type AttrLabel ObjectAccessibleValuePropertyInfo = "accessible-value"
type AttrOrigin ObjectAccessibleValuePropertyInfo = Object
attrGet = getObjectAccessibleValue
attrSet = setObjectAccessibleValue
attrTransfer _ v = do
return v
attrConstruct = constructObjectAccessibleValue
attrClear = undefined
#endif
#if defined(ENABLE_OVERLOADING)
instance O.HasAttributeList Object
type instance O.AttributeList Object = ObjectAttributeList
type ObjectAttributeList = ('[ '("accessibleComponentLayer", ObjectAccessibleComponentLayerPropertyInfo), '("accessibleComponentMdiZorder", ObjectAccessibleComponentMdiZorderPropertyInfo), '("accessibleDescription", ObjectAccessibleDescriptionPropertyInfo), '("accessibleHypertextNlinks", ObjectAccessibleHypertextNlinksPropertyInfo), '("accessibleName", ObjectAccessibleNamePropertyInfo), '("accessibleParent", ObjectAccessibleParentPropertyInfo), '("accessibleRole", ObjectAccessibleRolePropertyInfo), '("accessibleTableCaption", ObjectAccessibleTableCaptionPropertyInfo), '("accessibleTableCaptionObject", ObjectAccessibleTableCaptionObjectPropertyInfo), '("accessibleTableColumnDescription", ObjectAccessibleTableColumnDescriptionPropertyInfo), '("accessibleTableColumnHeader", ObjectAccessibleTableColumnHeaderPropertyInfo), '("accessibleTableRowDescription", ObjectAccessibleTableRowDescriptionPropertyInfo), '("accessibleTableRowHeader", ObjectAccessibleTableRowHeaderPropertyInfo), '("accessibleTableSummary", ObjectAccessibleTableSummaryPropertyInfo), '("accessibleValue", ObjectAccessibleValuePropertyInfo)] :: [(Symbol, *)])
#endif
#if defined(ENABLE_OVERLOADING)
objectAccessibleComponentLayer :: AttrLabelProxy "accessibleComponentLayer"
objectAccessibleComponentLayer = AttrLabelProxy
objectAccessibleComponentMdiZorder :: AttrLabelProxy "accessibleComponentMdiZorder"
objectAccessibleComponentMdiZorder = AttrLabelProxy
objectAccessibleDescription :: AttrLabelProxy "accessibleDescription"
objectAccessibleDescription = AttrLabelProxy
objectAccessibleHypertextNlinks :: AttrLabelProxy "accessibleHypertextNlinks"
objectAccessibleHypertextNlinks = AttrLabelProxy
objectAccessibleName :: AttrLabelProxy "accessibleName"
objectAccessibleName = AttrLabelProxy
objectAccessibleParent :: AttrLabelProxy "accessibleParent"
objectAccessibleParent = AttrLabelProxy
objectAccessibleRole :: AttrLabelProxy "accessibleRole"
objectAccessibleRole = AttrLabelProxy
objectAccessibleTableCaption :: AttrLabelProxy "accessibleTableCaption"
objectAccessibleTableCaption = AttrLabelProxy
objectAccessibleTableCaptionObject :: AttrLabelProxy "accessibleTableCaptionObject"
objectAccessibleTableCaptionObject = AttrLabelProxy
objectAccessibleTableColumnDescription :: AttrLabelProxy "accessibleTableColumnDescription"
objectAccessibleTableColumnDescription = AttrLabelProxy
objectAccessibleTableColumnHeader :: AttrLabelProxy "accessibleTableColumnHeader"
objectAccessibleTableColumnHeader = AttrLabelProxy
objectAccessibleTableRowDescription :: AttrLabelProxy "accessibleTableRowDescription"
objectAccessibleTableRowDescription = AttrLabelProxy
objectAccessibleTableRowHeader :: AttrLabelProxy "accessibleTableRowHeader"
objectAccessibleTableRowHeader = AttrLabelProxy
objectAccessibleTableSummary :: AttrLabelProxy "accessibleTableSummary"
objectAccessibleTableSummary = AttrLabelProxy
objectAccessibleValue :: AttrLabelProxy "accessibleValue"
objectAccessibleValue = AttrLabelProxy
#endif
#if defined(ENABLE_OVERLOADING)
type instance O.SignalList Object = ObjectSignalList
type ObjectSignalList = ('[ '("activeDescendantChanged", ObjectActiveDescendantChangedSignalInfo), '("childrenChanged", ObjectChildrenChangedSignalInfo), '("focusEvent", ObjectFocusEventSignalInfo), '("notify", GObject.Object.ObjectNotifySignalInfo), '("propertyChange", ObjectPropertyChangeSignalInfo), '("stateChange", ObjectStateChangeSignalInfo), '("visibleDataChanged", ObjectVisibleDataChangedSignalInfo)] :: [(Symbol, *)])
#endif
foreign import ccall "atk_object_add_relationship" atk_object_add_relationship ::
Ptr Object ->
CUInt ->
Ptr Object ->
IO CInt
objectAddRelationship ::
(B.CallStack.HasCallStack, MonadIO m, IsObject a, IsObject b) =>
a
-> Atk.Enums.RelationType
-> b
-> m Bool
objectAddRelationship :: a -> RelationType -> b -> m Bool
objectAddRelationship a
object RelationType
relationship b
target = IO Bool -> m Bool
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr Object
object' <- a -> IO (Ptr Object)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
object
let relationship' :: CUInt
relationship' = (Int -> CUInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CUInt) -> (RelationType -> Int) -> RelationType -> CUInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. RelationType -> Int
forall a. Enum a => a -> Int
fromEnum) RelationType
relationship
Ptr Object
target' <- b -> IO (Ptr Object)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr b
target
CInt
result <- Ptr Object -> CUInt -> Ptr Object -> IO CInt
atk_object_add_relationship Ptr Object
object' CUInt
relationship' Ptr Object
target'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
object
b -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr b
target
Bool -> IO Bool
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data ObjectAddRelationshipMethodInfo
instance (signature ~ (Atk.Enums.RelationType -> b -> m Bool), MonadIO m, IsObject a, IsObject b) => O.MethodInfo ObjectAddRelationshipMethodInfo a signature where
overloadedMethod = objectAddRelationship
#endif
foreign import ccall "atk_object_get_accessible_id" atk_object_get_accessible_id ::
Ptr Object ->
IO CString
objectGetAccessibleId ::
(B.CallStack.HasCallStack, MonadIO m, IsObject a) =>
a
-> m T.Text
objectGetAccessibleId :: a -> m Text
objectGetAccessibleId a
accessible = IO Text -> m Text
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ do
Ptr Object
accessible' <- a -> IO (Ptr Object)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
accessible
CString
result <- Ptr Object -> IO CString
atk_object_get_accessible_id Ptr Object
accessible'
Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"objectGetAccessibleId" CString
result
Text
result' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
accessible
Text -> IO Text
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result'
#if defined(ENABLE_OVERLOADING)
data ObjectGetAccessibleIdMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsObject a) => O.MethodInfo ObjectGetAccessibleIdMethodInfo a signature where
overloadedMethod = objectGetAccessibleId
#endif
foreign import ccall "atk_object_get_attributes" atk_object_get_attributes ::
Ptr Object ->
IO (Ptr (GSList (Ptr ())))
objectGetAttributes ::
(B.CallStack.HasCallStack, MonadIO m, IsObject a) =>
a
-> m ([Ptr ()])
objectGetAttributes :: a -> m [Ptr ()]
objectGetAttributes a
accessible = IO [Ptr ()] -> m [Ptr ()]
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO [Ptr ()] -> m [Ptr ()]) -> IO [Ptr ()] -> m [Ptr ()]
forall a b. (a -> b) -> a -> b
$ do
Ptr Object
accessible' <- a -> IO (Ptr Object)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
accessible
Ptr (GSList (Ptr ()))
result <- Ptr Object -> IO (Ptr (GSList (Ptr ())))
atk_object_get_attributes Ptr Object
accessible'
[Ptr ()]
result' <- Ptr (GSList (Ptr ())) -> IO [Ptr ()]
forall a. Ptr (GSList (Ptr a)) -> IO [Ptr a]
unpackGSList Ptr (GSList (Ptr ()))
result
Ptr (GSList (Ptr ())) -> IO ()
forall a. Ptr (GSList a) -> IO ()
g_slist_free Ptr (GSList (Ptr ()))
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
accessible
[Ptr ()] -> IO [Ptr ()]
forall (m :: * -> *) a. Monad m => a -> m a
return [Ptr ()]
result'
#if defined(ENABLE_OVERLOADING)
data ObjectGetAttributesMethodInfo
instance (signature ~ (m ([Ptr ()])), MonadIO m, IsObject a) => O.MethodInfo ObjectGetAttributesMethodInfo a signature where
overloadedMethod = objectGetAttributes
#endif
foreign import ccall "atk_object_get_description" atk_object_get_description ::
Ptr Object ->
IO CString
objectGetDescription ::
(B.CallStack.HasCallStack, MonadIO m, IsObject a) =>
a
-> m T.Text
objectGetDescription :: a -> m Text
objectGetDescription a
accessible = IO Text -> m Text
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ do
Ptr Object
accessible' <- a -> IO (Ptr Object)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
accessible
CString
result <- Ptr Object -> IO CString
atk_object_get_description Ptr Object
accessible'
Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"objectGetDescription" CString
result
Text
result' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
accessible
Text -> IO Text
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result'
#if defined(ENABLE_OVERLOADING)
data ObjectGetDescriptionMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsObject a) => O.MethodInfo ObjectGetDescriptionMethodInfo a signature where
overloadedMethod = objectGetDescription
#endif
foreign import ccall "atk_object_get_index_in_parent" atk_object_get_index_in_parent ::
Ptr Object ->
IO Int32
objectGetIndexInParent ::
(B.CallStack.HasCallStack, MonadIO m, IsObject a) =>
a
-> m Int32
objectGetIndexInParent :: a -> m Int32
objectGetIndexInParent a
accessible = IO Int32 -> m Int32
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ do
Ptr Object
accessible' <- a -> IO (Ptr Object)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
accessible
Int32
result <- Ptr Object -> IO Int32
atk_object_get_index_in_parent Ptr Object
accessible'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
accessible
Int32 -> IO Int32
forall (m :: * -> *) a. Monad m => a -> m a
return Int32
result
#if defined(ENABLE_OVERLOADING)
data ObjectGetIndexInParentMethodInfo
instance (signature ~ (m Int32), MonadIO m, IsObject a) => O.MethodInfo ObjectGetIndexInParentMethodInfo a signature where
overloadedMethod = objectGetIndexInParent
#endif
foreign import ccall "atk_object_get_layer" atk_object_get_layer ::
Ptr Object ->
IO CUInt
{-# DEPRECATED objectGetLayer ["Use atk_component_get_layer instead."] #-}
objectGetLayer ::
(B.CallStack.HasCallStack, MonadIO m, IsObject a) =>
a
-> m Atk.Enums.Layer
objectGetLayer :: a -> m Layer
objectGetLayer a
accessible = IO Layer -> m Layer
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Layer -> m Layer) -> IO Layer -> m Layer
forall a b. (a -> b) -> a -> b
$ do
Ptr Object
accessible' <- a -> IO (Ptr Object)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
accessible
CUInt
result <- Ptr Object -> IO CUInt
atk_object_get_layer Ptr Object
accessible'
let result' :: Layer
result' = (Int -> Layer
forall a. Enum a => Int -> a
toEnum (Int -> Layer) -> (CUInt -> Int) -> CUInt -> Layer
forall b c a. (b -> c) -> (a -> b) -> a -> c
. CUInt -> Int
forall a b. (Integral a, Num b) => a -> b
fromIntegral) CUInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
accessible
Layer -> IO Layer
forall (m :: * -> *) a. Monad m => a -> m a
return Layer
result'
#if defined(ENABLE_OVERLOADING)
data ObjectGetLayerMethodInfo
instance (signature ~ (m Atk.Enums.Layer), MonadIO m, IsObject a) => O.MethodInfo ObjectGetLayerMethodInfo a signature where
overloadedMethod = objectGetLayer
#endif
foreign import ccall "atk_object_get_mdi_zorder" atk_object_get_mdi_zorder ::
Ptr Object ->
IO Int32
{-# DEPRECATED objectGetMdiZorder ["Use atk_component_get_mdi_zorder instead."] #-}
objectGetMdiZorder ::
(B.CallStack.HasCallStack, MonadIO m, IsObject a) =>
a
-> m Int32
objectGetMdiZorder :: a -> m Int32
objectGetMdiZorder a
accessible = IO Int32 -> m Int32
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ do
Ptr Object
accessible' <- a -> IO (Ptr Object)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
accessible
Int32
result <- Ptr Object -> IO Int32
atk_object_get_mdi_zorder Ptr Object
accessible'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
accessible
Int32 -> IO Int32
forall (m :: * -> *) a. Monad m => a -> m a
return Int32
result
#if defined(ENABLE_OVERLOADING)
data ObjectGetMdiZorderMethodInfo
instance (signature ~ (m Int32), MonadIO m, IsObject a) => O.MethodInfo ObjectGetMdiZorderMethodInfo a signature where
overloadedMethod = objectGetMdiZorder
#endif
foreign import ccall "atk_object_get_n_accessible_children" atk_object_get_n_accessible_children ::
Ptr Object ->
IO Int32
objectGetNAccessibleChildren ::
(B.CallStack.HasCallStack, MonadIO m, IsObject a) =>
a
-> m Int32
objectGetNAccessibleChildren :: a -> m Int32
objectGetNAccessibleChildren a
accessible = IO Int32 -> m Int32
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ do
Ptr Object
accessible' <- a -> IO (Ptr Object)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
accessible
Int32
result <- Ptr Object -> IO Int32
atk_object_get_n_accessible_children Ptr Object
accessible'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
accessible
Int32 -> IO Int32
forall (m :: * -> *) a. Monad m => a -> m a
return Int32
result
#if defined(ENABLE_OVERLOADING)
data ObjectGetNAccessibleChildrenMethodInfo
instance (signature ~ (m Int32), MonadIO m, IsObject a) => O.MethodInfo ObjectGetNAccessibleChildrenMethodInfo a signature where
overloadedMethod = objectGetNAccessibleChildren
#endif
foreign import ccall "atk_object_get_name" atk_object_get_name ::
Ptr Object ->
IO CString
objectGetName ::
(B.CallStack.HasCallStack, MonadIO m, IsObject a) =>
a
-> m T.Text
objectGetName :: a -> m Text
objectGetName a
accessible = IO Text -> m Text
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ do
Ptr Object
accessible' <- a -> IO (Ptr Object)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
accessible
CString
result <- Ptr Object -> IO CString
atk_object_get_name Ptr Object
accessible'
Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"objectGetName" CString
result
Text
result' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
accessible
Text -> IO Text
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result'
#if defined(ENABLE_OVERLOADING)
data ObjectGetNameMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsObject a) => O.MethodInfo ObjectGetNameMethodInfo a signature where
overloadedMethod = objectGetName
#endif
foreign import ccall "atk_object_get_object_locale" atk_object_get_object_locale ::
Ptr Object ->
IO CString
objectGetObjectLocale ::
(B.CallStack.HasCallStack, MonadIO m, IsObject a) =>
a
-> m T.Text
objectGetObjectLocale :: a -> m Text
objectGetObjectLocale a
accessible = IO Text -> m Text
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ do
Ptr Object
accessible' <- a -> IO (Ptr Object)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
accessible
CString
result <- Ptr Object -> IO CString
atk_object_get_object_locale Ptr Object
accessible'
Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"objectGetObjectLocale" CString
result
Text
result' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
accessible
Text -> IO Text
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result'
#if defined(ENABLE_OVERLOADING)
data ObjectGetObjectLocaleMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsObject a) => O.MethodInfo ObjectGetObjectLocaleMethodInfo a signature where
overloadedMethod = objectGetObjectLocale
#endif
foreign import ccall "atk_object_get_parent" atk_object_get_parent ::
Ptr Object ->
IO (Ptr Object)
objectGetParent ::
(B.CallStack.HasCallStack, MonadIO m, IsObject a) =>
a
-> m Object
objectGetParent :: a -> m Object
objectGetParent a
accessible = IO Object -> m Object
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Object -> m Object) -> IO Object -> m Object
forall a b. (a -> b) -> a -> b
$ do
Ptr Object
accessible' <- a -> IO (Ptr Object)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
accessible
Ptr Object
result <- Ptr Object -> IO (Ptr Object)
atk_object_get_parent Ptr Object
accessible'
Text -> Ptr Object -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"objectGetParent" Ptr Object
result
Object
result' <- ((ManagedPtr Object -> Object) -> Ptr Object -> IO Object
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr Object -> Object
Object) Ptr Object
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
accessible
Object -> IO Object
forall (m :: * -> *) a. Monad m => a -> m a
return Object
result'
#if defined(ENABLE_OVERLOADING)
data ObjectGetParentMethodInfo
instance (signature ~ (m Object), MonadIO m, IsObject a) => O.MethodInfo ObjectGetParentMethodInfo a signature where
overloadedMethod = objectGetParent
#endif
foreign import ccall "atk_object_get_role" atk_object_get_role ::
Ptr Object ->
IO CUInt
objectGetRole ::
(B.CallStack.HasCallStack, MonadIO m, IsObject a) =>
a
-> m Atk.Enums.Role
objectGetRole :: a -> m Role
objectGetRole a
accessible = IO Role -> m Role
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Role -> m Role) -> IO Role -> m Role
forall a b. (a -> b) -> a -> b
$ do
Ptr Object
accessible' <- a -> IO (Ptr Object)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
accessible
CUInt
result <- Ptr Object -> IO CUInt
atk_object_get_role Ptr Object
accessible'
let result' :: Role
result' = (Int -> Role
forall a. Enum a => Int -> a
toEnum (Int -> Role) -> (CUInt -> Int) -> CUInt -> Role
forall b c a. (b -> c) -> (a -> b) -> a -> c
. CUInt -> Int
forall a b. (Integral a, Num b) => a -> b
fromIntegral) CUInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
accessible
Role -> IO Role
forall (m :: * -> *) a. Monad m => a -> m a
return Role
result'
#if defined(ENABLE_OVERLOADING)
data ObjectGetRoleMethodInfo
instance (signature ~ (m Atk.Enums.Role), MonadIO m, IsObject a) => O.MethodInfo ObjectGetRoleMethodInfo a signature where
overloadedMethod = objectGetRole
#endif
foreign import ccall "atk_object_initialize" atk_object_initialize ::
Ptr Object ->
Ptr () ->
IO ()
objectInitialize ::
(B.CallStack.HasCallStack, MonadIO m, IsObject a) =>
a
-> Ptr ()
-> m ()
objectInitialize :: a -> Ptr () -> m ()
objectInitialize a
accessible Ptr ()
data_ = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr Object
accessible' <- a -> IO (Ptr Object)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
accessible
Ptr Object -> Ptr () -> IO ()
atk_object_initialize Ptr Object
accessible' Ptr ()
data_
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
accessible
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data ObjectInitializeMethodInfo
instance (signature ~ (Ptr () -> m ()), MonadIO m, IsObject a) => O.MethodInfo ObjectInitializeMethodInfo a signature where
overloadedMethod = objectInitialize
#endif
foreign import ccall "atk_object_notify_state_change" atk_object_notify_state_change ::
Ptr Object ->
Word64 ->
CInt ->
IO ()
objectNotifyStateChange ::
(B.CallStack.HasCallStack, MonadIO m, IsObject a) =>
a
-> Word64
-> Bool
-> m ()
objectNotifyStateChange :: a -> Word64 -> Bool -> m ()
objectNotifyStateChange a
accessible Word64
state Bool
value = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr Object
accessible' <- a -> IO (Ptr Object)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
accessible
let value' :: CInt
value' = (Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CInt) -> (Bool -> Int) -> Bool -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Bool -> Int
forall a. Enum a => a -> Int
fromEnum) Bool
value
Ptr Object -> Word64 -> CInt -> IO ()
atk_object_notify_state_change Ptr Object
accessible' Word64
state CInt
value'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
accessible
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data ObjectNotifyStateChangeMethodInfo
instance (signature ~ (Word64 -> Bool -> m ()), MonadIO m, IsObject a) => O.MethodInfo ObjectNotifyStateChangeMethodInfo a signature where
overloadedMethod = objectNotifyStateChange
#endif
foreign import ccall "atk_object_peek_parent" atk_object_peek_parent ::
Ptr Object ->
IO (Ptr Object)
objectPeekParent ::
(B.CallStack.HasCallStack, MonadIO m, IsObject a) =>
a
-> m Object
objectPeekParent :: a -> m Object
objectPeekParent a
accessible = IO Object -> m Object
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Object -> m Object) -> IO Object -> m Object
forall a b. (a -> b) -> a -> b
$ do
Ptr Object
accessible' <- a -> IO (Ptr Object)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
accessible
Ptr Object
result <- Ptr Object -> IO (Ptr Object)
atk_object_peek_parent Ptr Object
accessible'
Text -> Ptr Object -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"objectPeekParent" Ptr Object
result
Object
result' <- ((ManagedPtr Object -> Object) -> Ptr Object -> IO Object
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr Object -> Object
Object) Ptr Object
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
accessible
Object -> IO Object
forall (m :: * -> *) a. Monad m => a -> m a
return Object
result'
#if defined(ENABLE_OVERLOADING)
data ObjectPeekParentMethodInfo
instance (signature ~ (m Object), MonadIO m, IsObject a) => O.MethodInfo ObjectPeekParentMethodInfo a signature where
overloadedMethod = objectPeekParent
#endif
foreign import ccall "atk_object_ref_accessible_child" atk_object_ref_accessible_child ::
Ptr Object ->
Int32 ->
IO (Ptr Object)
objectRefAccessibleChild ::
(B.CallStack.HasCallStack, MonadIO m, IsObject a) =>
a
-> Int32
-> m Object
objectRefAccessibleChild :: a -> Int32 -> m Object
objectRefAccessibleChild a
accessible Int32
i = IO Object -> m Object
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Object -> m Object) -> IO Object -> m Object
forall a b. (a -> b) -> a -> b
$ do
Ptr Object
accessible' <- a -> IO (Ptr Object)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
accessible
Ptr Object
result <- Ptr Object -> Int32 -> IO (Ptr Object)
atk_object_ref_accessible_child Ptr Object
accessible' Int32
i
Text -> Ptr Object -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"objectRefAccessibleChild" Ptr Object
result
Object
result' <- ((ManagedPtr Object -> Object) -> Ptr Object -> IO Object
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
wrapObject ManagedPtr Object -> Object
Object) Ptr Object
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
accessible
Object -> IO Object
forall (m :: * -> *) a. Monad m => a -> m a
return Object
result'
#if defined(ENABLE_OVERLOADING)
data ObjectRefAccessibleChildMethodInfo
instance (signature ~ (Int32 -> m Object), MonadIO m, IsObject a) => O.MethodInfo ObjectRefAccessibleChildMethodInfo a signature where
overloadedMethod = objectRefAccessibleChild
#endif
foreign import ccall "atk_object_ref_relation_set" atk_object_ref_relation_set ::
Ptr Object ->
IO (Ptr Atk.RelationSet.RelationSet)
objectRefRelationSet ::
(B.CallStack.HasCallStack, MonadIO m, IsObject a) =>
a
-> m Atk.RelationSet.RelationSet
objectRefRelationSet :: a -> m RelationSet
objectRefRelationSet a
accessible = IO RelationSet -> m RelationSet
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO RelationSet -> m RelationSet)
-> IO RelationSet -> m RelationSet
forall a b. (a -> b) -> a -> b
$ do
Ptr Object
accessible' <- a -> IO (Ptr Object)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
accessible
Ptr RelationSet
result <- Ptr Object -> IO (Ptr RelationSet)
atk_object_ref_relation_set Ptr Object
accessible'
Text -> Ptr RelationSet -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"objectRefRelationSet" Ptr RelationSet
result
RelationSet
result' <- ((ManagedPtr RelationSet -> RelationSet)
-> Ptr RelationSet -> IO RelationSet
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
wrapObject ManagedPtr RelationSet -> RelationSet
Atk.RelationSet.RelationSet) Ptr RelationSet
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
accessible
RelationSet -> IO RelationSet
forall (m :: * -> *) a. Monad m => a -> m a
return RelationSet
result'
#if defined(ENABLE_OVERLOADING)
data ObjectRefRelationSetMethodInfo
instance (signature ~ (m Atk.RelationSet.RelationSet), MonadIO m, IsObject a) => O.MethodInfo ObjectRefRelationSetMethodInfo a signature where
overloadedMethod = objectRefRelationSet
#endif
foreign import ccall "atk_object_ref_state_set" atk_object_ref_state_set ::
Ptr Object ->
IO (Ptr Atk.StateSet.StateSet)
objectRefStateSet ::
(B.CallStack.HasCallStack, MonadIO m, IsObject a) =>
a
-> m Atk.StateSet.StateSet
objectRefStateSet :: a -> m StateSet
objectRefStateSet a
accessible = IO StateSet -> m StateSet
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO StateSet -> m StateSet) -> IO StateSet -> m StateSet
forall a b. (a -> b) -> a -> b
$ do
Ptr Object
accessible' <- a -> IO (Ptr Object)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
accessible
Ptr StateSet
result <- Ptr Object -> IO (Ptr StateSet)
atk_object_ref_state_set Ptr Object
accessible'
Text -> Ptr StateSet -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"objectRefStateSet" Ptr StateSet
result
StateSet
result' <- ((ManagedPtr StateSet -> StateSet) -> Ptr StateSet -> IO StateSet
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
wrapObject ManagedPtr StateSet -> StateSet
Atk.StateSet.StateSet) Ptr StateSet
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
accessible
StateSet -> IO StateSet
forall (m :: * -> *) a. Monad m => a -> m a
return StateSet
result'
#if defined(ENABLE_OVERLOADING)
data ObjectRefStateSetMethodInfo
instance (signature ~ (m Atk.StateSet.StateSet), MonadIO m, IsObject a) => O.MethodInfo ObjectRefStateSetMethodInfo a signature where
overloadedMethod = objectRefStateSet
#endif
foreign import ccall "atk_object_remove_property_change_handler" atk_object_remove_property_change_handler ::
Ptr Object ->
Word32 ->
IO ()
{-# DEPRECATED objectRemovePropertyChangeHandler ["(Since version 2.12)","See @/atk_object_connect_property_change_handler()/@"] #-}
objectRemovePropertyChangeHandler ::
(B.CallStack.HasCallStack, MonadIO m, IsObject a) =>
a
-> Word32
-> m ()
objectRemovePropertyChangeHandler :: a -> Word32 -> m ()
objectRemovePropertyChangeHandler a
accessible Word32
handlerId = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr Object
accessible' <- a -> IO (Ptr Object)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
accessible
Ptr Object -> Word32 -> IO ()
atk_object_remove_property_change_handler Ptr Object
accessible' Word32
handlerId
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
accessible
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data ObjectRemovePropertyChangeHandlerMethodInfo
instance (signature ~ (Word32 -> m ()), MonadIO m, IsObject a) => O.MethodInfo ObjectRemovePropertyChangeHandlerMethodInfo a signature where
overloadedMethod = objectRemovePropertyChangeHandler
#endif
foreign import ccall "atk_object_remove_relationship" atk_object_remove_relationship ::
Ptr Object ->
CUInt ->
Ptr Object ->
IO CInt
objectRemoveRelationship ::
(B.CallStack.HasCallStack, MonadIO m, IsObject a, IsObject b) =>
a
-> Atk.Enums.RelationType
-> b
-> m Bool
objectRemoveRelationship :: a -> RelationType -> b -> m Bool
objectRemoveRelationship a
object RelationType
relationship b
target = IO Bool -> m Bool
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr Object
object' <- a -> IO (Ptr Object)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
object
let relationship' :: CUInt
relationship' = (Int -> CUInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CUInt) -> (RelationType -> Int) -> RelationType -> CUInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. RelationType -> Int
forall a. Enum a => a -> Int
fromEnum) RelationType
relationship
Ptr Object
target' <- b -> IO (Ptr Object)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr b
target
CInt
result <- Ptr Object -> CUInt -> Ptr Object -> IO CInt
atk_object_remove_relationship Ptr Object
object' CUInt
relationship' Ptr Object
target'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
object
b -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr b
target
Bool -> IO Bool
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data ObjectRemoveRelationshipMethodInfo
instance (signature ~ (Atk.Enums.RelationType -> b -> m Bool), MonadIO m, IsObject a, IsObject b) => O.MethodInfo ObjectRemoveRelationshipMethodInfo a signature where
overloadedMethod = objectRemoveRelationship
#endif
foreign import ccall "atk_object_set_accessible_id" atk_object_set_accessible_id ::
Ptr Object ->
CString ->
IO ()
objectSetAccessibleId ::
(B.CallStack.HasCallStack, MonadIO m, IsObject a) =>
a
-> T.Text
-> m ()
objectSetAccessibleId :: a -> Text -> m ()
objectSetAccessibleId a
accessible Text
name = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr Object
accessible' <- a -> IO (Ptr Object)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
accessible
CString
name' <- Text -> IO CString
textToCString Text
name
Ptr Object -> CString -> IO ()
atk_object_set_accessible_id Ptr Object
accessible' CString
name'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
accessible
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
name'
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data ObjectSetAccessibleIdMethodInfo
instance (signature ~ (T.Text -> m ()), MonadIO m, IsObject a) => O.MethodInfo ObjectSetAccessibleIdMethodInfo a signature where
overloadedMethod = objectSetAccessibleId
#endif
foreign import ccall "atk_object_set_description" atk_object_set_description ::
Ptr Object ->
CString ->
IO ()
objectSetDescription ::
(B.CallStack.HasCallStack, MonadIO m, IsObject a) =>
a
-> T.Text
-> m ()
objectSetDescription :: a -> Text -> m ()
objectSetDescription a
accessible Text
description = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr Object
accessible' <- a -> IO (Ptr Object)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
accessible
CString
description' <- Text -> IO CString
textToCString Text
description
Ptr Object -> CString -> IO ()
atk_object_set_description Ptr Object
accessible' CString
description'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
accessible
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
description'
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data ObjectSetDescriptionMethodInfo
instance (signature ~ (T.Text -> m ()), MonadIO m, IsObject a) => O.MethodInfo ObjectSetDescriptionMethodInfo a signature where
overloadedMethod = objectSetDescription
#endif
foreign import ccall "atk_object_set_name" atk_object_set_name ::
Ptr Object ->
CString ->
IO ()
objectSetName ::
(B.CallStack.HasCallStack, MonadIO m, IsObject a) =>
a
-> T.Text
-> m ()
objectSetName :: a -> Text -> m ()
objectSetName a
accessible Text
name = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr Object
accessible' <- a -> IO (Ptr Object)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
accessible
CString
name' <- Text -> IO CString
textToCString Text
name
Ptr Object -> CString -> IO ()
atk_object_set_name Ptr Object
accessible' CString
name'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
accessible
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
name'
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data ObjectSetNameMethodInfo
instance (signature ~ (T.Text -> m ()), MonadIO m, IsObject a) => O.MethodInfo ObjectSetNameMethodInfo a signature where
overloadedMethod = objectSetName
#endif
foreign import ccall "atk_object_set_parent" atk_object_set_parent ::
Ptr Object ->
Ptr Object ->
IO ()
objectSetParent ::
(B.CallStack.HasCallStack, MonadIO m, IsObject a, IsObject b) =>
a
-> b
-> m ()
objectSetParent :: a -> b -> m ()
objectSetParent a
accessible b
parent = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr Object
accessible' <- a -> IO (Ptr Object)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
accessible
Ptr Object
parent' <- b -> IO (Ptr Object)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr b
parent
Ptr Object -> Ptr Object -> IO ()
atk_object_set_parent Ptr Object
accessible' Ptr Object
parent'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
accessible
b -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr b
parent
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data ObjectSetParentMethodInfo
instance (signature ~ (b -> m ()), MonadIO m, IsObject a, IsObject b) => O.MethodInfo ObjectSetParentMethodInfo a signature where
overloadedMethod = objectSetParent
#endif
foreign import ccall "atk_object_set_role" atk_object_set_role ::
Ptr Object ->
CUInt ->
IO ()
objectSetRole ::
(B.CallStack.HasCallStack, MonadIO m, IsObject a) =>
a
-> Atk.Enums.Role
-> m ()
objectSetRole :: a -> Role -> m ()
objectSetRole a
accessible Role
role = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr Object
accessible' <- a -> IO (Ptr Object)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
accessible
let role' :: CUInt
role' = (Int -> CUInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CUInt) -> (Role -> Int) -> Role -> CUInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Role -> Int
forall a. Enum a => a -> Int
fromEnum) Role
role
Ptr Object -> CUInt -> IO ()
atk_object_set_role Ptr Object
accessible' CUInt
role'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
accessible
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data ObjectSetRoleMethodInfo
instance (signature ~ (Atk.Enums.Role -> m ()), MonadIO m, IsObject a) => O.MethodInfo ObjectSetRoleMethodInfo a signature where
overloadedMethod = objectSetRole
#endif