#define ENABLE_OVERLOADING (MIN_VERSION_haskell_gi_overloading(1,0,0) \
&& !defined(__HADDOCK_VERSION__))
module GI.Atk.Objects.Object
(
Object(..) ,
IsObject ,
toObject ,
noObject ,
#if ENABLE_OVERLOADING
ObjectAddRelationshipMethodInfo ,
#endif
objectAddRelationship ,
#if ENABLE_OVERLOADING
ObjectGetAttributesMethodInfo ,
#endif
objectGetAttributes ,
#if ENABLE_OVERLOADING
ObjectGetDescriptionMethodInfo ,
#endif
objectGetDescription ,
#if ENABLE_OVERLOADING
ObjectGetIndexInParentMethodInfo ,
#endif
objectGetIndexInParent ,
#if ENABLE_OVERLOADING
ObjectGetLayerMethodInfo ,
#endif
objectGetLayer ,
#if ENABLE_OVERLOADING
ObjectGetMdiZorderMethodInfo ,
#endif
objectGetMdiZorder ,
#if ENABLE_OVERLOADING
ObjectGetNAccessibleChildrenMethodInfo ,
#endif
objectGetNAccessibleChildren ,
#if ENABLE_OVERLOADING
ObjectGetNameMethodInfo ,
#endif
objectGetName ,
#if ENABLE_OVERLOADING
ObjectGetObjectLocaleMethodInfo ,
#endif
objectGetObjectLocale ,
#if ENABLE_OVERLOADING
ObjectGetParentMethodInfo ,
#endif
objectGetParent ,
#if ENABLE_OVERLOADING
ObjectGetRoleMethodInfo ,
#endif
objectGetRole ,
#if ENABLE_OVERLOADING
ObjectInitializeMethodInfo ,
#endif
objectInitialize ,
#if ENABLE_OVERLOADING
ObjectNotifyStateChangeMethodInfo ,
#endif
objectNotifyStateChange ,
#if ENABLE_OVERLOADING
ObjectPeekParentMethodInfo ,
#endif
objectPeekParent ,
#if ENABLE_OVERLOADING
ObjectRefAccessibleChildMethodInfo ,
#endif
objectRefAccessibleChild ,
#if ENABLE_OVERLOADING
ObjectRefRelationSetMethodInfo ,
#endif
objectRefRelationSet ,
#if ENABLE_OVERLOADING
ObjectRefStateSetMethodInfo ,
#endif
objectRefStateSet ,
#if ENABLE_OVERLOADING
ObjectRemovePropertyChangeHandlerMethodInfo,
#endif
objectRemovePropertyChangeHandler ,
#if ENABLE_OVERLOADING
ObjectRemoveRelationshipMethodInfo ,
#endif
objectRemoveRelationship ,
#if ENABLE_OVERLOADING
ObjectSetDescriptionMethodInfo ,
#endif
objectSetDescription ,
#if ENABLE_OVERLOADING
ObjectSetNameMethodInfo ,
#endif
objectSetName ,
#if ENABLE_OVERLOADING
ObjectSetParentMethodInfo ,
#endif
objectSetParent ,
#if ENABLE_OVERLOADING
ObjectSetRoleMethodInfo ,
#endif
objectSetRole ,
#if ENABLE_OVERLOADING
ObjectAccessibleComponentLayerPropertyInfo,
#endif
getObjectAccessibleComponentLayer ,
#if ENABLE_OVERLOADING
objectAccessibleComponentLayer ,
#endif
#if ENABLE_OVERLOADING
ObjectAccessibleComponentMdiZorderPropertyInfo,
#endif
getObjectAccessibleComponentMdiZorder ,
#if ENABLE_OVERLOADING
objectAccessibleComponentMdiZorder ,
#endif
#if ENABLE_OVERLOADING
ObjectAccessibleDescriptionPropertyInfo ,
#endif
clearObjectAccessibleDescription ,
constructObjectAccessibleDescription ,
getObjectAccessibleDescription ,
#if ENABLE_OVERLOADING
objectAccessibleDescription ,
#endif
setObjectAccessibleDescription ,
#if ENABLE_OVERLOADING
ObjectAccessibleHypertextNlinksPropertyInfo,
#endif
getObjectAccessibleHypertextNlinks ,
#if ENABLE_OVERLOADING
objectAccessibleHypertextNlinks ,
#endif
#if ENABLE_OVERLOADING
ObjectAccessibleNamePropertyInfo ,
#endif
clearObjectAccessibleName ,
constructObjectAccessibleName ,
getObjectAccessibleName ,
#if ENABLE_OVERLOADING
objectAccessibleName ,
#endif
setObjectAccessibleName ,
#if ENABLE_OVERLOADING
ObjectAccessibleParentPropertyInfo ,
#endif
clearObjectAccessibleParent ,
constructObjectAccessibleParent ,
getObjectAccessibleParent ,
#if ENABLE_OVERLOADING
objectAccessibleParent ,
#endif
setObjectAccessibleParent ,
#if ENABLE_OVERLOADING
ObjectAccessibleRolePropertyInfo ,
#endif
constructObjectAccessibleRole ,
getObjectAccessibleRole ,
#if ENABLE_OVERLOADING
objectAccessibleRole ,
#endif
setObjectAccessibleRole ,
#if ENABLE_OVERLOADING
ObjectAccessibleTableCaptionPropertyInfo,
#endif
clearObjectAccessibleTableCaption ,
constructObjectAccessibleTableCaption ,
getObjectAccessibleTableCaption ,
#if ENABLE_OVERLOADING
objectAccessibleTableCaption ,
#endif
setObjectAccessibleTableCaption ,
#if ENABLE_OVERLOADING
ObjectAccessibleTableCaptionObjectPropertyInfo,
#endif
clearObjectAccessibleTableCaptionObject ,
constructObjectAccessibleTableCaptionObject,
getObjectAccessibleTableCaptionObject ,
#if ENABLE_OVERLOADING
objectAccessibleTableCaptionObject ,
#endif
setObjectAccessibleTableCaptionObject ,
#if ENABLE_OVERLOADING
ObjectAccessibleTableColumnDescriptionPropertyInfo,
#endif
clearObjectAccessibleTableColumnDescription,
constructObjectAccessibleTableColumnDescription,
getObjectAccessibleTableColumnDescription,
#if ENABLE_OVERLOADING
objectAccessibleTableColumnDescription ,
#endif
setObjectAccessibleTableColumnDescription,
#if ENABLE_OVERLOADING
ObjectAccessibleTableColumnHeaderPropertyInfo,
#endif
clearObjectAccessibleTableColumnHeader ,
constructObjectAccessibleTableColumnHeader,
getObjectAccessibleTableColumnHeader ,
#if ENABLE_OVERLOADING
objectAccessibleTableColumnHeader ,
#endif
setObjectAccessibleTableColumnHeader ,
#if ENABLE_OVERLOADING
ObjectAccessibleTableRowDescriptionPropertyInfo,
#endif
clearObjectAccessibleTableRowDescription,
constructObjectAccessibleTableRowDescription,
getObjectAccessibleTableRowDescription ,
#if ENABLE_OVERLOADING
objectAccessibleTableRowDescription ,
#endif
setObjectAccessibleTableRowDescription ,
#if ENABLE_OVERLOADING
ObjectAccessibleTableRowHeaderPropertyInfo,
#endif
clearObjectAccessibleTableRowHeader ,
constructObjectAccessibleTableRowHeader ,
getObjectAccessibleTableRowHeader ,
#if ENABLE_OVERLOADING
objectAccessibleTableRowHeader ,
#endif
setObjectAccessibleTableRowHeader ,
#if ENABLE_OVERLOADING
ObjectAccessibleTableSummaryPropertyInfo,
#endif
clearObjectAccessibleTableSummary ,
constructObjectAccessibleTableSummary ,
getObjectAccessibleTableSummary ,
#if ENABLE_OVERLOADING
objectAccessibleTableSummary ,
#endif
setObjectAccessibleTableSummary ,
#if ENABLE_OVERLOADING
ObjectAccessibleValuePropertyInfo ,
#endif
constructObjectAccessibleValue ,
getObjectAccessibleValue ,
#if ENABLE_OVERLOADING
objectAccessibleValue ,
#endif
setObjectAccessibleValue ,
C_ObjectActiveDescendantChangedCallback ,
ObjectActiveDescendantChangedCallback ,
#if ENABLE_OVERLOADING
ObjectActiveDescendantChangedSignalInfo ,
#endif
afterObjectActiveDescendantChanged ,
genClosure_ObjectActiveDescendantChanged,
mk_ObjectActiveDescendantChangedCallback,
noObjectActiveDescendantChangedCallback ,
onObjectActiveDescendantChanged ,
wrap_ObjectActiveDescendantChangedCallback,
C_ObjectChildrenChangedCallback ,
ObjectChildrenChangedCallback ,
#if ENABLE_OVERLOADING
ObjectChildrenChangedSignalInfo ,
#endif
afterObjectChildrenChanged ,
genClosure_ObjectChildrenChanged ,
mk_ObjectChildrenChangedCallback ,
noObjectChildrenChangedCallback ,
onObjectChildrenChanged ,
wrap_ObjectChildrenChangedCallback ,
C_ObjectFocusEventCallback ,
ObjectFocusEventCallback ,
#if ENABLE_OVERLOADING
ObjectFocusEventSignalInfo ,
#endif
afterObjectFocusEvent ,
genClosure_ObjectFocusEvent ,
mk_ObjectFocusEventCallback ,
noObjectFocusEventCallback ,
onObjectFocusEvent ,
wrap_ObjectFocusEventCallback ,
C_ObjectPropertyChangeCallback ,
ObjectPropertyChangeCallback ,
#if ENABLE_OVERLOADING
ObjectPropertyChangeSignalInfo ,
#endif
afterObjectPropertyChange ,
genClosure_ObjectPropertyChange ,
mk_ObjectPropertyChangeCallback ,
noObjectPropertyChangeCallback ,
onObjectPropertyChange ,
wrap_ObjectPropertyChangeCallback ,
C_ObjectStateChangeCallback ,
ObjectStateChangeCallback ,
#if ENABLE_OVERLOADING
ObjectStateChangeSignalInfo ,
#endif
afterObjectStateChange ,
genClosure_ObjectStateChange ,
mk_ObjectStateChangeCallback ,
noObjectStateChangeCallback ,
onObjectStateChange ,
wrap_ObjectStateChangeCallback ,
C_ObjectVisibleDataChangedCallback ,
ObjectVisibleDataChangedCallback ,
#if 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.ManagedPtr as B.ManagedPtr
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.Text as T
import qualified Data.ByteString.Char8 as B
import qualified Data.Map as Map
import qualified Foreign.Ptr as FP
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 qualified GI.GObject.Objects.Object as GObject.Object
newtype Object = Object (ManagedPtr Object)
foreign import ccall "atk_object_get_type"
c_atk_object_get_type :: IO GType
instance GObject Object where
gobjectType _ = c_atk_object_get_type
class GObject o => IsObject o
#if MIN_VERSION_base(4,9,0)
instance {-# OVERLAPPABLE #-} (GObject a, O.UnknownAncestorError Object a) =>
IsObject a
#endif
instance IsObject Object
instance GObject.Object.IsObject Object
toObject :: (MonadIO m, IsObject o) => o -> m Object
toObject = liftIO . unsafeCastTo Object
noObject :: Maybe Object
noObject = Nothing
#if 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 "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 "setData" o = GObject.Object.ObjectSetDataMethodInfo
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) => O.IsLabelProxy t (Object -> p) where
fromLabelProxy _ = O.overloadedMethod (O.MethodProxy :: O.MethodProxy info)
#if MIN_VERSION_base(4,9,0)
instance (info ~ ResolveObjectMethod t Object, O.MethodInfo info Object p) => O.IsLabel t (Object -> p) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.overloadedMethod (O.MethodProxy :: O.MethodProxy info)
#else
fromLabel _ = O.overloadedMethod (O.MethodProxy :: O.MethodProxy info)
#endif
#endif
#endif
type ObjectActiveDescendantChangedCallback =
Ptr ()
-> IO ()
noObjectActiveDescendantChangedCallback :: Maybe ObjectActiveDescendantChangedCallback
noObjectActiveDescendantChangedCallback = Nothing
type C_ObjectActiveDescendantChangedCallback =
Ptr () ->
Ptr () ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_ObjectActiveDescendantChangedCallback :: C_ObjectActiveDescendantChangedCallback -> IO (FunPtr C_ObjectActiveDescendantChangedCallback)
genClosure_ObjectActiveDescendantChanged :: ObjectActiveDescendantChangedCallback -> IO Closure
genClosure_ObjectActiveDescendantChanged cb = do
let cb' = wrap_ObjectActiveDescendantChangedCallback cb
mk_ObjectActiveDescendantChangedCallback cb' >>= newCClosure
wrap_ObjectActiveDescendantChangedCallback ::
ObjectActiveDescendantChangedCallback ->
C_ObjectActiveDescendantChangedCallback
wrap_ObjectActiveDescendantChangedCallback _cb _ arg1 _ = do
_cb arg1
onObjectActiveDescendantChanged :: (IsObject a, MonadIO m) => a -> ObjectActiveDescendantChangedCallback -> m SignalHandlerId
onObjectActiveDescendantChanged obj cb = liftIO $ do
let cb' = wrap_ObjectActiveDescendantChangedCallback cb
cb'' <- mk_ObjectActiveDescendantChangedCallback cb'
connectSignalFunPtr obj "active-descendant-changed" cb'' SignalConnectBefore
afterObjectActiveDescendantChanged :: (IsObject a, MonadIO m) => a -> ObjectActiveDescendantChangedCallback -> m SignalHandlerId
afterObjectActiveDescendantChanged obj cb = liftIO $ do
let cb' = wrap_ObjectActiveDescendantChangedCallback cb
cb'' <- mk_ObjectActiveDescendantChangedCallback cb'
connectSignalFunPtr obj "active-descendant-changed" cb'' SignalConnectAfter
type ObjectChildrenChangedCallback =
Word32
-> Ptr ()
-> IO ()
noObjectChildrenChangedCallback :: Maybe ObjectChildrenChangedCallback
noObjectChildrenChangedCallback = Nothing
type C_ObjectChildrenChangedCallback =
Ptr () ->
Word32 ->
Ptr () ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_ObjectChildrenChangedCallback :: C_ObjectChildrenChangedCallback -> IO (FunPtr C_ObjectChildrenChangedCallback)
genClosure_ObjectChildrenChanged :: ObjectChildrenChangedCallback -> IO Closure
genClosure_ObjectChildrenChanged cb = do
let cb' = wrap_ObjectChildrenChangedCallback cb
mk_ObjectChildrenChangedCallback cb' >>= newCClosure
wrap_ObjectChildrenChangedCallback ::
ObjectChildrenChangedCallback ->
C_ObjectChildrenChangedCallback
wrap_ObjectChildrenChangedCallback _cb _ arg1 arg2 _ = do
_cb arg1 arg2
onObjectChildrenChanged :: (IsObject a, MonadIO m) => a -> ObjectChildrenChangedCallback -> m SignalHandlerId
onObjectChildrenChanged obj cb = liftIO $ do
let cb' = wrap_ObjectChildrenChangedCallback cb
cb'' <- mk_ObjectChildrenChangedCallback cb'
connectSignalFunPtr obj "children-changed" cb'' SignalConnectBefore
afterObjectChildrenChanged :: (IsObject a, MonadIO m) => a -> ObjectChildrenChangedCallback -> m SignalHandlerId
afterObjectChildrenChanged obj cb = liftIO $ do
let cb' = wrap_ObjectChildrenChangedCallback cb
cb'' <- mk_ObjectChildrenChangedCallback cb'
connectSignalFunPtr obj "children-changed" cb'' SignalConnectAfter
{-# DEPRECATED ObjectFocusEventCallback ["(Since version 2.9.4)","Use the 'GI.Atk.Objects.Object.Object'::@/state-change/@ signal instead."] #-}
type ObjectFocusEventCallback =
Bool
-> IO ()
noObjectFocusEventCallback :: Maybe ObjectFocusEventCallback
noObjectFocusEventCallback = Nothing
type C_ObjectFocusEventCallback =
Ptr () ->
CInt ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_ObjectFocusEventCallback :: C_ObjectFocusEventCallback -> IO (FunPtr C_ObjectFocusEventCallback)
genClosure_ObjectFocusEvent :: ObjectFocusEventCallback -> IO Closure
genClosure_ObjectFocusEvent cb = do
let cb' = wrap_ObjectFocusEventCallback cb
mk_ObjectFocusEventCallback cb' >>= newCClosure
wrap_ObjectFocusEventCallback ::
ObjectFocusEventCallback ->
C_ObjectFocusEventCallback
wrap_ObjectFocusEventCallback _cb _ arg1 _ = do
let arg1' = (/= 0) arg1
_cb arg1'
onObjectFocusEvent :: (IsObject a, MonadIO m) => a -> ObjectFocusEventCallback -> m SignalHandlerId
onObjectFocusEvent obj cb = liftIO $ do
let cb' = wrap_ObjectFocusEventCallback cb
cb'' <- mk_ObjectFocusEventCallback cb'
connectSignalFunPtr obj "focus-event" cb'' SignalConnectBefore
afterObjectFocusEvent :: (IsObject a, MonadIO m) => a -> ObjectFocusEventCallback -> m SignalHandlerId
afterObjectFocusEvent obj cb = liftIO $ do
let cb' = wrap_ObjectFocusEventCallback cb
cb'' <- mk_ObjectFocusEventCallback cb'
connectSignalFunPtr obj "focus-event" cb'' SignalConnectAfter
type ObjectPropertyChangeCallback =
Ptr ()
-> IO ()
noObjectPropertyChangeCallback :: Maybe ObjectPropertyChangeCallback
noObjectPropertyChangeCallback = Nothing
type C_ObjectPropertyChangeCallback =
Ptr () ->
Ptr () ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_ObjectPropertyChangeCallback :: C_ObjectPropertyChangeCallback -> IO (FunPtr C_ObjectPropertyChangeCallback)
genClosure_ObjectPropertyChange :: ObjectPropertyChangeCallback -> IO Closure
genClosure_ObjectPropertyChange cb = do
let cb' = wrap_ObjectPropertyChangeCallback cb
mk_ObjectPropertyChangeCallback cb' >>= newCClosure
wrap_ObjectPropertyChangeCallback ::
ObjectPropertyChangeCallback ->
C_ObjectPropertyChangeCallback
wrap_ObjectPropertyChangeCallback _cb _ arg1 _ = do
_cb arg1
onObjectPropertyChange :: (IsObject a, MonadIO m) => a -> ObjectPropertyChangeCallback -> m SignalHandlerId
onObjectPropertyChange obj cb = liftIO $ do
let cb' = wrap_ObjectPropertyChangeCallback cb
cb'' <- mk_ObjectPropertyChangeCallback cb'
connectSignalFunPtr obj "property-change" cb'' SignalConnectBefore
afterObjectPropertyChange :: (IsObject a, MonadIO m) => a -> ObjectPropertyChangeCallback -> m SignalHandlerId
afterObjectPropertyChange obj cb = liftIO $ do
let cb' = wrap_ObjectPropertyChangeCallback cb
cb'' <- mk_ObjectPropertyChangeCallback cb'
connectSignalFunPtr obj "property-change" cb'' SignalConnectAfter
type ObjectStateChangeCallback =
T.Text
-> Bool
-> IO ()
noObjectStateChangeCallback :: Maybe ObjectStateChangeCallback
noObjectStateChangeCallback = Nothing
type C_ObjectStateChangeCallback =
Ptr () ->
CString ->
CInt ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_ObjectStateChangeCallback :: C_ObjectStateChangeCallback -> IO (FunPtr C_ObjectStateChangeCallback)
genClosure_ObjectStateChange :: ObjectStateChangeCallback -> IO Closure
genClosure_ObjectStateChange cb = do
let cb' = wrap_ObjectStateChangeCallback cb
mk_ObjectStateChangeCallback cb' >>= newCClosure
wrap_ObjectStateChangeCallback ::
ObjectStateChangeCallback ->
C_ObjectStateChangeCallback
wrap_ObjectStateChangeCallback _cb _ arg1 arg2 _ = do
arg1' <- cstringToText arg1
let arg2' = (/= 0) arg2
_cb arg1' arg2'
onObjectStateChange :: (IsObject a, MonadIO m) => a -> ObjectStateChangeCallback -> m SignalHandlerId
onObjectStateChange obj cb = liftIO $ do
let cb' = wrap_ObjectStateChangeCallback cb
cb'' <- mk_ObjectStateChangeCallback cb'
connectSignalFunPtr obj "state-change" cb'' SignalConnectBefore
afterObjectStateChange :: (IsObject a, MonadIO m) => a -> ObjectStateChangeCallback -> m SignalHandlerId
afterObjectStateChange obj cb = liftIO $ do
let cb' = wrap_ObjectStateChangeCallback cb
cb'' <- mk_ObjectStateChangeCallback cb'
connectSignalFunPtr obj "state-change" cb'' SignalConnectAfter
type ObjectVisibleDataChangedCallback =
IO ()
noObjectVisibleDataChangedCallback :: Maybe ObjectVisibleDataChangedCallback
noObjectVisibleDataChangedCallback = Nothing
type C_ObjectVisibleDataChangedCallback =
Ptr () ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_ObjectVisibleDataChangedCallback :: C_ObjectVisibleDataChangedCallback -> IO (FunPtr C_ObjectVisibleDataChangedCallback)
genClosure_ObjectVisibleDataChanged :: ObjectVisibleDataChangedCallback -> IO Closure
genClosure_ObjectVisibleDataChanged cb = do
let cb' = wrap_ObjectVisibleDataChangedCallback cb
mk_ObjectVisibleDataChangedCallback cb' >>= newCClosure
wrap_ObjectVisibleDataChangedCallback ::
ObjectVisibleDataChangedCallback ->
C_ObjectVisibleDataChangedCallback
wrap_ObjectVisibleDataChangedCallback _cb _ _ = do
_cb
onObjectVisibleDataChanged :: (IsObject a, MonadIO m) => a -> ObjectVisibleDataChangedCallback -> m SignalHandlerId
onObjectVisibleDataChanged obj cb = liftIO $ do
let cb' = wrap_ObjectVisibleDataChangedCallback cb
cb'' <- mk_ObjectVisibleDataChangedCallback cb'
connectSignalFunPtr obj "visible-data-changed" cb'' SignalConnectBefore
afterObjectVisibleDataChanged :: (IsObject a, MonadIO m) => a -> ObjectVisibleDataChangedCallback -> m SignalHandlerId
afterObjectVisibleDataChanged obj cb = liftIO $ do
let cb' = wrap_ObjectVisibleDataChangedCallback cb
cb'' <- mk_ObjectVisibleDataChangedCallback cb'
connectSignalFunPtr obj "visible-data-changed" cb'' SignalConnectAfter
getObjectAccessibleComponentLayer :: (MonadIO m, IsObject o) => o -> m Int32
getObjectAccessibleComponentLayer obj = liftIO $ getObjectPropertyInt32 obj "accessible-component-layer"
#if ENABLE_OVERLOADING
data ObjectAccessibleComponentLayerPropertyInfo
instance AttrInfo ObjectAccessibleComponentLayerPropertyInfo where
type AttrAllowedOps ObjectAccessibleComponentLayerPropertyInfo = '[ 'AttrGet]
type AttrSetTypeConstraint ObjectAccessibleComponentLayerPropertyInfo = (~) ()
type AttrBaseTypeConstraint ObjectAccessibleComponentLayerPropertyInfo = IsObject
type AttrGetType ObjectAccessibleComponentLayerPropertyInfo = Int32
type AttrLabel ObjectAccessibleComponentLayerPropertyInfo = "accessible-component-layer"
type AttrOrigin ObjectAccessibleComponentLayerPropertyInfo = Object
attrGet _ = getObjectAccessibleComponentLayer
attrSet _ = undefined
attrConstruct _ = undefined
attrClear _ = undefined
#endif
getObjectAccessibleComponentMdiZorder :: (MonadIO m, IsObject o) => o -> m Int32
getObjectAccessibleComponentMdiZorder obj = liftIO $ getObjectPropertyInt32 obj "accessible-component-mdi-zorder"
#if ENABLE_OVERLOADING
data ObjectAccessibleComponentMdiZorderPropertyInfo
instance AttrInfo ObjectAccessibleComponentMdiZorderPropertyInfo where
type AttrAllowedOps ObjectAccessibleComponentMdiZorderPropertyInfo = '[ 'AttrGet]
type AttrSetTypeConstraint ObjectAccessibleComponentMdiZorderPropertyInfo = (~) ()
type AttrBaseTypeConstraint ObjectAccessibleComponentMdiZorderPropertyInfo = IsObject
type AttrGetType ObjectAccessibleComponentMdiZorderPropertyInfo = Int32
type AttrLabel ObjectAccessibleComponentMdiZorderPropertyInfo = "accessible-component-mdi-zorder"
type AttrOrigin ObjectAccessibleComponentMdiZorderPropertyInfo = Object
attrGet _ = getObjectAccessibleComponentMdiZorder
attrSet _ = undefined
attrConstruct _ = undefined
attrClear _ = undefined
#endif
getObjectAccessibleDescription :: (MonadIO m, IsObject o) => o -> m (Maybe T.Text)
getObjectAccessibleDescription obj = liftIO $ getObjectPropertyString obj "accessible-description"
setObjectAccessibleDescription :: (MonadIO m, IsObject o) => o -> T.Text -> m ()
setObjectAccessibleDescription obj val = liftIO $ setObjectPropertyString obj "accessible-description" (Just val)
constructObjectAccessibleDescription :: (IsObject o) => T.Text -> IO (GValueConstruct o)
constructObjectAccessibleDescription val = constructObjectPropertyString "accessible-description" (Just val)
clearObjectAccessibleDescription :: (MonadIO m, IsObject o) => o -> m ()
clearObjectAccessibleDescription obj = liftIO $ setObjectPropertyString obj "accessible-description" (Nothing :: Maybe T.Text)
#if ENABLE_OVERLOADING
data ObjectAccessibleDescriptionPropertyInfo
instance AttrInfo ObjectAccessibleDescriptionPropertyInfo where
type AttrAllowedOps ObjectAccessibleDescriptionPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrSetTypeConstraint ObjectAccessibleDescriptionPropertyInfo = (~) T.Text
type AttrBaseTypeConstraint ObjectAccessibleDescriptionPropertyInfo = IsObject
type AttrGetType ObjectAccessibleDescriptionPropertyInfo = (Maybe T.Text)
type AttrLabel ObjectAccessibleDescriptionPropertyInfo = "accessible-description"
type AttrOrigin ObjectAccessibleDescriptionPropertyInfo = Object
attrGet _ = getObjectAccessibleDescription
attrSet _ = setObjectAccessibleDescription
attrConstruct _ = constructObjectAccessibleDescription
attrClear _ = clearObjectAccessibleDescription
#endif
getObjectAccessibleHypertextNlinks :: (MonadIO m, IsObject o) => o -> m Int32
getObjectAccessibleHypertextNlinks obj = liftIO $ getObjectPropertyInt32 obj "accessible-hypertext-nlinks"
#if ENABLE_OVERLOADING
data ObjectAccessibleHypertextNlinksPropertyInfo
instance AttrInfo ObjectAccessibleHypertextNlinksPropertyInfo where
type AttrAllowedOps ObjectAccessibleHypertextNlinksPropertyInfo = '[ 'AttrGet]
type AttrSetTypeConstraint ObjectAccessibleHypertextNlinksPropertyInfo = (~) ()
type AttrBaseTypeConstraint ObjectAccessibleHypertextNlinksPropertyInfo = IsObject
type AttrGetType ObjectAccessibleHypertextNlinksPropertyInfo = Int32
type AttrLabel ObjectAccessibleHypertextNlinksPropertyInfo = "accessible-hypertext-nlinks"
type AttrOrigin ObjectAccessibleHypertextNlinksPropertyInfo = Object
attrGet _ = getObjectAccessibleHypertextNlinks
attrSet _ = undefined
attrConstruct _ = undefined
attrClear _ = undefined
#endif
getObjectAccessibleName :: (MonadIO m, IsObject o) => o -> m (Maybe T.Text)
getObjectAccessibleName obj = liftIO $ getObjectPropertyString obj "accessible-name"
setObjectAccessibleName :: (MonadIO m, IsObject o) => o -> T.Text -> m ()
setObjectAccessibleName obj val = liftIO $ setObjectPropertyString obj "accessible-name" (Just val)
constructObjectAccessibleName :: (IsObject o) => T.Text -> IO (GValueConstruct o)
constructObjectAccessibleName val = constructObjectPropertyString "accessible-name" (Just val)
clearObjectAccessibleName :: (MonadIO m, IsObject o) => o -> m ()
clearObjectAccessibleName obj = liftIO $ setObjectPropertyString obj "accessible-name" (Nothing :: Maybe T.Text)
#if ENABLE_OVERLOADING
data ObjectAccessibleNamePropertyInfo
instance AttrInfo ObjectAccessibleNamePropertyInfo where
type AttrAllowedOps ObjectAccessibleNamePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrSetTypeConstraint ObjectAccessibleNamePropertyInfo = (~) T.Text
type AttrBaseTypeConstraint ObjectAccessibleNamePropertyInfo = IsObject
type AttrGetType ObjectAccessibleNamePropertyInfo = (Maybe T.Text)
type AttrLabel ObjectAccessibleNamePropertyInfo = "accessible-name"
type AttrOrigin ObjectAccessibleNamePropertyInfo = Object
attrGet _ = getObjectAccessibleName
attrSet _ = setObjectAccessibleName
attrConstruct _ = constructObjectAccessibleName
attrClear _ = clearObjectAccessibleName
#endif
getObjectAccessibleParent :: (MonadIO m, IsObject o) => o -> m (Maybe Object)
getObjectAccessibleParent obj = liftIO $ getObjectPropertyObject obj "accessible-parent" Object
setObjectAccessibleParent :: (MonadIO m, IsObject o, IsObject a) => o -> a -> m ()
setObjectAccessibleParent obj val = liftIO $ setObjectPropertyObject obj "accessible-parent" (Just val)
constructObjectAccessibleParent :: (IsObject o, IsObject a) => a -> IO (GValueConstruct o)
constructObjectAccessibleParent val = constructObjectPropertyObject "accessible-parent" (Just val)
clearObjectAccessibleParent :: (MonadIO m, IsObject o) => o -> m ()
clearObjectAccessibleParent obj = liftIO $ setObjectPropertyObject obj "accessible-parent" (Nothing :: Maybe Object)
#if ENABLE_OVERLOADING
data ObjectAccessibleParentPropertyInfo
instance AttrInfo ObjectAccessibleParentPropertyInfo where
type AttrAllowedOps ObjectAccessibleParentPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrSetTypeConstraint ObjectAccessibleParentPropertyInfo = IsObject
type AttrBaseTypeConstraint ObjectAccessibleParentPropertyInfo = IsObject
type AttrGetType ObjectAccessibleParentPropertyInfo = (Maybe Object)
type AttrLabel ObjectAccessibleParentPropertyInfo = "accessible-parent"
type AttrOrigin ObjectAccessibleParentPropertyInfo = Object
attrGet _ = getObjectAccessibleParent
attrSet _ = setObjectAccessibleParent
attrConstruct _ = constructObjectAccessibleParent
attrClear _ = clearObjectAccessibleParent
#endif
getObjectAccessibleRole :: (MonadIO m, IsObject o) => o -> m Int32
getObjectAccessibleRole obj = liftIO $ getObjectPropertyInt32 obj "accessible-role"
setObjectAccessibleRole :: (MonadIO m, IsObject o) => o -> Int32 -> m ()
setObjectAccessibleRole obj val = liftIO $ setObjectPropertyInt32 obj "accessible-role" val
constructObjectAccessibleRole :: (IsObject o) => Int32 -> IO (GValueConstruct o)
constructObjectAccessibleRole val = constructObjectPropertyInt32 "accessible-role" val
#if ENABLE_OVERLOADING
data ObjectAccessibleRolePropertyInfo
instance AttrInfo ObjectAccessibleRolePropertyInfo where
type AttrAllowedOps ObjectAccessibleRolePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint ObjectAccessibleRolePropertyInfo = (~) Int32
type AttrBaseTypeConstraint ObjectAccessibleRolePropertyInfo = IsObject
type AttrGetType ObjectAccessibleRolePropertyInfo = Int32
type AttrLabel ObjectAccessibleRolePropertyInfo = "accessible-role"
type AttrOrigin ObjectAccessibleRolePropertyInfo = Object
attrGet _ = getObjectAccessibleRole
attrSet _ = setObjectAccessibleRole
attrConstruct _ = constructObjectAccessibleRole
attrClear _ = undefined
#endif
getObjectAccessibleTableCaption :: (MonadIO m, IsObject o) => o -> m (Maybe T.Text)
getObjectAccessibleTableCaption obj = liftIO $ getObjectPropertyString obj "accessible-table-caption"
setObjectAccessibleTableCaption :: (MonadIO m, IsObject o) => o -> T.Text -> m ()
setObjectAccessibleTableCaption obj val = liftIO $ setObjectPropertyString obj "accessible-table-caption" (Just val)
constructObjectAccessibleTableCaption :: (IsObject o) => T.Text -> IO (GValueConstruct o)
constructObjectAccessibleTableCaption val = constructObjectPropertyString "accessible-table-caption" (Just val)
clearObjectAccessibleTableCaption :: (MonadIO m, IsObject o) => o -> m ()
clearObjectAccessibleTableCaption obj = liftIO $ setObjectPropertyString obj "accessible-table-caption" (Nothing :: Maybe T.Text)
#if ENABLE_OVERLOADING
data ObjectAccessibleTableCaptionPropertyInfo
instance AttrInfo ObjectAccessibleTableCaptionPropertyInfo where
type AttrAllowedOps ObjectAccessibleTableCaptionPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrSetTypeConstraint ObjectAccessibleTableCaptionPropertyInfo = (~) T.Text
type AttrBaseTypeConstraint ObjectAccessibleTableCaptionPropertyInfo = IsObject
type AttrGetType ObjectAccessibleTableCaptionPropertyInfo = (Maybe T.Text)
type AttrLabel ObjectAccessibleTableCaptionPropertyInfo = "accessible-table-caption"
type AttrOrigin ObjectAccessibleTableCaptionPropertyInfo = Object
attrGet _ = getObjectAccessibleTableCaption
attrSet _ = setObjectAccessibleTableCaption
attrConstruct _ = constructObjectAccessibleTableCaption
attrClear _ = clearObjectAccessibleTableCaption
#endif
getObjectAccessibleTableCaptionObject :: (MonadIO m, IsObject o) => o -> m (Maybe Object)
getObjectAccessibleTableCaptionObject obj = liftIO $ getObjectPropertyObject obj "accessible-table-caption-object" Object
setObjectAccessibleTableCaptionObject :: (MonadIO m, IsObject o, IsObject a) => o -> a -> m ()
setObjectAccessibleTableCaptionObject obj val = liftIO $ setObjectPropertyObject obj "accessible-table-caption-object" (Just val)
constructObjectAccessibleTableCaptionObject :: (IsObject o, IsObject a) => a -> IO (GValueConstruct o)
constructObjectAccessibleTableCaptionObject val = constructObjectPropertyObject "accessible-table-caption-object" (Just val)
clearObjectAccessibleTableCaptionObject :: (MonadIO m, IsObject o) => o -> m ()
clearObjectAccessibleTableCaptionObject obj = liftIO $ setObjectPropertyObject obj "accessible-table-caption-object" (Nothing :: Maybe Object)
#if ENABLE_OVERLOADING
data ObjectAccessibleTableCaptionObjectPropertyInfo
instance AttrInfo ObjectAccessibleTableCaptionObjectPropertyInfo where
type AttrAllowedOps ObjectAccessibleTableCaptionObjectPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrSetTypeConstraint ObjectAccessibleTableCaptionObjectPropertyInfo = IsObject
type AttrBaseTypeConstraint ObjectAccessibleTableCaptionObjectPropertyInfo = IsObject
type AttrGetType ObjectAccessibleTableCaptionObjectPropertyInfo = (Maybe Object)
type AttrLabel ObjectAccessibleTableCaptionObjectPropertyInfo = "accessible-table-caption-object"
type AttrOrigin ObjectAccessibleTableCaptionObjectPropertyInfo = Object
attrGet _ = getObjectAccessibleTableCaptionObject
attrSet _ = setObjectAccessibleTableCaptionObject
attrConstruct _ = constructObjectAccessibleTableCaptionObject
attrClear _ = clearObjectAccessibleTableCaptionObject
#endif
getObjectAccessibleTableColumnDescription :: (MonadIO m, IsObject o) => o -> m (Maybe T.Text)
getObjectAccessibleTableColumnDescription obj = liftIO $ getObjectPropertyString obj "accessible-table-column-description"
setObjectAccessibleTableColumnDescription :: (MonadIO m, IsObject o) => o -> T.Text -> m ()
setObjectAccessibleTableColumnDescription obj val = liftIO $ setObjectPropertyString obj "accessible-table-column-description" (Just val)
constructObjectAccessibleTableColumnDescription :: (IsObject o) => T.Text -> IO (GValueConstruct o)
constructObjectAccessibleTableColumnDescription val = constructObjectPropertyString "accessible-table-column-description" (Just val)
clearObjectAccessibleTableColumnDescription :: (MonadIO m, IsObject o) => o -> m ()
clearObjectAccessibleTableColumnDescription obj = liftIO $ setObjectPropertyString obj "accessible-table-column-description" (Nothing :: Maybe T.Text)
#if ENABLE_OVERLOADING
data ObjectAccessibleTableColumnDescriptionPropertyInfo
instance AttrInfo ObjectAccessibleTableColumnDescriptionPropertyInfo where
type AttrAllowedOps ObjectAccessibleTableColumnDescriptionPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrSetTypeConstraint ObjectAccessibleTableColumnDescriptionPropertyInfo = (~) T.Text
type AttrBaseTypeConstraint ObjectAccessibleTableColumnDescriptionPropertyInfo = IsObject
type AttrGetType ObjectAccessibleTableColumnDescriptionPropertyInfo = (Maybe T.Text)
type AttrLabel ObjectAccessibleTableColumnDescriptionPropertyInfo = "accessible-table-column-description"
type AttrOrigin ObjectAccessibleTableColumnDescriptionPropertyInfo = Object
attrGet _ = getObjectAccessibleTableColumnDescription
attrSet _ = setObjectAccessibleTableColumnDescription
attrConstruct _ = constructObjectAccessibleTableColumnDescription
attrClear _ = clearObjectAccessibleTableColumnDescription
#endif
getObjectAccessibleTableColumnHeader :: (MonadIO m, IsObject o) => o -> m (Maybe Object)
getObjectAccessibleTableColumnHeader obj = liftIO $ getObjectPropertyObject obj "accessible-table-column-header" Object
setObjectAccessibleTableColumnHeader :: (MonadIO m, IsObject o, IsObject a) => o -> a -> m ()
setObjectAccessibleTableColumnHeader obj val = liftIO $ setObjectPropertyObject obj "accessible-table-column-header" (Just val)
constructObjectAccessibleTableColumnHeader :: (IsObject o, IsObject a) => a -> IO (GValueConstruct o)
constructObjectAccessibleTableColumnHeader val = constructObjectPropertyObject "accessible-table-column-header" (Just val)
clearObjectAccessibleTableColumnHeader :: (MonadIO m, IsObject o) => o -> m ()
clearObjectAccessibleTableColumnHeader obj = liftIO $ setObjectPropertyObject obj "accessible-table-column-header" (Nothing :: Maybe Object)
#if ENABLE_OVERLOADING
data ObjectAccessibleTableColumnHeaderPropertyInfo
instance AttrInfo ObjectAccessibleTableColumnHeaderPropertyInfo where
type AttrAllowedOps ObjectAccessibleTableColumnHeaderPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrSetTypeConstraint ObjectAccessibleTableColumnHeaderPropertyInfo = IsObject
type AttrBaseTypeConstraint ObjectAccessibleTableColumnHeaderPropertyInfo = IsObject
type AttrGetType ObjectAccessibleTableColumnHeaderPropertyInfo = (Maybe Object)
type AttrLabel ObjectAccessibleTableColumnHeaderPropertyInfo = "accessible-table-column-header"
type AttrOrigin ObjectAccessibleTableColumnHeaderPropertyInfo = Object
attrGet _ = getObjectAccessibleTableColumnHeader
attrSet _ = setObjectAccessibleTableColumnHeader
attrConstruct _ = constructObjectAccessibleTableColumnHeader
attrClear _ = clearObjectAccessibleTableColumnHeader
#endif
getObjectAccessibleTableRowDescription :: (MonadIO m, IsObject o) => o -> m (Maybe T.Text)
getObjectAccessibleTableRowDescription obj = liftIO $ getObjectPropertyString obj "accessible-table-row-description"
setObjectAccessibleTableRowDescription :: (MonadIO m, IsObject o) => o -> T.Text -> m ()
setObjectAccessibleTableRowDescription obj val = liftIO $ setObjectPropertyString obj "accessible-table-row-description" (Just val)
constructObjectAccessibleTableRowDescription :: (IsObject o) => T.Text -> IO (GValueConstruct o)
constructObjectAccessibleTableRowDescription val = constructObjectPropertyString "accessible-table-row-description" (Just val)
clearObjectAccessibleTableRowDescription :: (MonadIO m, IsObject o) => o -> m ()
clearObjectAccessibleTableRowDescription obj = liftIO $ setObjectPropertyString obj "accessible-table-row-description" (Nothing :: Maybe T.Text)
#if ENABLE_OVERLOADING
data ObjectAccessibleTableRowDescriptionPropertyInfo
instance AttrInfo ObjectAccessibleTableRowDescriptionPropertyInfo where
type AttrAllowedOps ObjectAccessibleTableRowDescriptionPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrSetTypeConstraint ObjectAccessibleTableRowDescriptionPropertyInfo = (~) T.Text
type AttrBaseTypeConstraint ObjectAccessibleTableRowDescriptionPropertyInfo = IsObject
type AttrGetType ObjectAccessibleTableRowDescriptionPropertyInfo = (Maybe T.Text)
type AttrLabel ObjectAccessibleTableRowDescriptionPropertyInfo = "accessible-table-row-description"
type AttrOrigin ObjectAccessibleTableRowDescriptionPropertyInfo = Object
attrGet _ = getObjectAccessibleTableRowDescription
attrSet _ = setObjectAccessibleTableRowDescription
attrConstruct _ = constructObjectAccessibleTableRowDescription
attrClear _ = clearObjectAccessibleTableRowDescription
#endif
getObjectAccessibleTableRowHeader :: (MonadIO m, IsObject o) => o -> m (Maybe Object)
getObjectAccessibleTableRowHeader obj = liftIO $ getObjectPropertyObject obj "accessible-table-row-header" Object
setObjectAccessibleTableRowHeader :: (MonadIO m, IsObject o, IsObject a) => o -> a -> m ()
setObjectAccessibleTableRowHeader obj val = liftIO $ setObjectPropertyObject obj "accessible-table-row-header" (Just val)
constructObjectAccessibleTableRowHeader :: (IsObject o, IsObject a) => a -> IO (GValueConstruct o)
constructObjectAccessibleTableRowHeader val = constructObjectPropertyObject "accessible-table-row-header" (Just val)
clearObjectAccessibleTableRowHeader :: (MonadIO m, IsObject o) => o -> m ()
clearObjectAccessibleTableRowHeader obj = liftIO $ setObjectPropertyObject obj "accessible-table-row-header" (Nothing :: Maybe Object)
#if ENABLE_OVERLOADING
data ObjectAccessibleTableRowHeaderPropertyInfo
instance AttrInfo ObjectAccessibleTableRowHeaderPropertyInfo where
type AttrAllowedOps ObjectAccessibleTableRowHeaderPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrSetTypeConstraint ObjectAccessibleTableRowHeaderPropertyInfo = IsObject
type AttrBaseTypeConstraint ObjectAccessibleTableRowHeaderPropertyInfo = IsObject
type AttrGetType ObjectAccessibleTableRowHeaderPropertyInfo = (Maybe Object)
type AttrLabel ObjectAccessibleTableRowHeaderPropertyInfo = "accessible-table-row-header"
type AttrOrigin ObjectAccessibleTableRowHeaderPropertyInfo = Object
attrGet _ = getObjectAccessibleTableRowHeader
attrSet _ = setObjectAccessibleTableRowHeader
attrConstruct _ = constructObjectAccessibleTableRowHeader
attrClear _ = clearObjectAccessibleTableRowHeader
#endif
getObjectAccessibleTableSummary :: (MonadIO m, IsObject o) => o -> m (Maybe Object)
getObjectAccessibleTableSummary obj = liftIO $ getObjectPropertyObject obj "accessible-table-summary" Object
setObjectAccessibleTableSummary :: (MonadIO m, IsObject o, IsObject a) => o -> a -> m ()
setObjectAccessibleTableSummary obj val = liftIO $ setObjectPropertyObject obj "accessible-table-summary" (Just val)
constructObjectAccessibleTableSummary :: (IsObject o, IsObject a) => a -> IO (GValueConstruct o)
constructObjectAccessibleTableSummary val = constructObjectPropertyObject "accessible-table-summary" (Just val)
clearObjectAccessibleTableSummary :: (MonadIO m, IsObject o) => o -> m ()
clearObjectAccessibleTableSummary obj = liftIO $ setObjectPropertyObject obj "accessible-table-summary" (Nothing :: Maybe Object)
#if ENABLE_OVERLOADING
data ObjectAccessibleTableSummaryPropertyInfo
instance AttrInfo ObjectAccessibleTableSummaryPropertyInfo where
type AttrAllowedOps ObjectAccessibleTableSummaryPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrSetTypeConstraint ObjectAccessibleTableSummaryPropertyInfo = IsObject
type AttrBaseTypeConstraint ObjectAccessibleTableSummaryPropertyInfo = IsObject
type AttrGetType ObjectAccessibleTableSummaryPropertyInfo = (Maybe Object)
type AttrLabel ObjectAccessibleTableSummaryPropertyInfo = "accessible-table-summary"
type AttrOrigin ObjectAccessibleTableSummaryPropertyInfo = Object
attrGet _ = getObjectAccessibleTableSummary
attrSet _ = setObjectAccessibleTableSummary
attrConstruct _ = constructObjectAccessibleTableSummary
attrClear _ = clearObjectAccessibleTableSummary
#endif
getObjectAccessibleValue :: (MonadIO m, IsObject o) => o -> m Double
getObjectAccessibleValue obj = liftIO $ getObjectPropertyDouble obj "accessible-value"
setObjectAccessibleValue :: (MonadIO m, IsObject o) => o -> Double -> m ()
setObjectAccessibleValue obj val = liftIO $ setObjectPropertyDouble obj "accessible-value" val
constructObjectAccessibleValue :: (IsObject o) => Double -> IO (GValueConstruct o)
constructObjectAccessibleValue val = constructObjectPropertyDouble "accessible-value" val
#if ENABLE_OVERLOADING
data ObjectAccessibleValuePropertyInfo
instance AttrInfo ObjectAccessibleValuePropertyInfo where
type AttrAllowedOps ObjectAccessibleValuePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint ObjectAccessibleValuePropertyInfo = (~) Double
type AttrBaseTypeConstraint ObjectAccessibleValuePropertyInfo = IsObject
type AttrGetType ObjectAccessibleValuePropertyInfo = Double
type AttrLabel ObjectAccessibleValuePropertyInfo = "accessible-value"
type AttrOrigin ObjectAccessibleValuePropertyInfo = Object
attrGet _ = getObjectAccessibleValue
attrSet _ = setObjectAccessibleValue
attrConstruct _ = constructObjectAccessibleValue
attrClear _ = undefined
#endif
#if 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 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 ENABLE_OVERLOADING
data ObjectActiveDescendantChangedSignalInfo
instance SignalInfo ObjectActiveDescendantChangedSignalInfo where
type HaskellCallbackType ObjectActiveDescendantChangedSignalInfo = ObjectActiveDescendantChangedCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_ObjectActiveDescendantChangedCallback cb
cb'' <- mk_ObjectActiveDescendantChangedCallback cb'
connectSignalFunPtr obj "active-descendant-changed" cb'' connectMode
data ObjectChildrenChangedSignalInfo
instance SignalInfo ObjectChildrenChangedSignalInfo where
type HaskellCallbackType ObjectChildrenChangedSignalInfo = ObjectChildrenChangedCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_ObjectChildrenChangedCallback cb
cb'' <- mk_ObjectChildrenChangedCallback cb'
connectSignalFunPtr obj "children-changed" cb'' connectMode
data ObjectFocusEventSignalInfo
instance SignalInfo ObjectFocusEventSignalInfo where
type HaskellCallbackType ObjectFocusEventSignalInfo = ObjectFocusEventCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_ObjectFocusEventCallback cb
cb'' <- mk_ObjectFocusEventCallback cb'
connectSignalFunPtr obj "focus-event" cb'' connectMode
data ObjectPropertyChangeSignalInfo
instance SignalInfo ObjectPropertyChangeSignalInfo where
type HaskellCallbackType ObjectPropertyChangeSignalInfo = ObjectPropertyChangeCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_ObjectPropertyChangeCallback cb
cb'' <- mk_ObjectPropertyChangeCallback cb'
connectSignalFunPtr obj "property-change" cb'' connectMode
data ObjectStateChangeSignalInfo
instance SignalInfo ObjectStateChangeSignalInfo where
type HaskellCallbackType ObjectStateChangeSignalInfo = ObjectStateChangeCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_ObjectStateChangeCallback cb
cb'' <- mk_ObjectStateChangeCallback cb'
connectSignalFunPtr obj "state-change" cb'' connectMode
data ObjectVisibleDataChangedSignalInfo
instance SignalInfo ObjectVisibleDataChangedSignalInfo where
type HaskellCallbackType ObjectVisibleDataChangedSignalInfo = ObjectVisibleDataChangedCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_ObjectVisibleDataChangedCallback cb
cb'' <- mk_ObjectVisibleDataChangedCallback cb'
connectSignalFunPtr obj "visible-data-changed" cb'' connectMode
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 object relationship target = liftIO $ do
object' <- unsafeManagedPtrCastPtr object
let relationship' = (fromIntegral . fromEnum) relationship
target' <- unsafeManagedPtrCastPtr target
result <- atk_object_add_relationship object' relationship' target'
let result' = (/= 0) result
touchManagedPtr object
touchManagedPtr target
return result'
#if 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_attributes" atk_object_get_attributes ::
Ptr Object ->
IO (Ptr (GSList (Ptr ())))
objectGetAttributes ::
(B.CallStack.HasCallStack, MonadIO m, IsObject a) =>
a
-> m ([Ptr ()])
objectGetAttributes accessible = liftIO $ do
accessible' <- unsafeManagedPtrCastPtr accessible
result <- atk_object_get_attributes accessible'
result' <- unpackGSList result
g_slist_free result
touchManagedPtr accessible
return result'
#if 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 accessible = liftIO $ do
accessible' <- unsafeManagedPtrCastPtr accessible
result <- atk_object_get_description accessible'
checkUnexpectedReturnNULL "objectGetDescription" result
result' <- cstringToText result
touchManagedPtr accessible
return result'
#if 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 accessible = liftIO $ do
accessible' <- unsafeManagedPtrCastPtr accessible
result <- atk_object_get_index_in_parent accessible'
touchManagedPtr accessible
return result
#if 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 accessible = liftIO $ do
accessible' <- unsafeManagedPtrCastPtr accessible
result <- atk_object_get_layer accessible'
let result' = (toEnum . fromIntegral) result
touchManagedPtr accessible
return result'
#if 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 accessible = liftIO $ do
accessible' <- unsafeManagedPtrCastPtr accessible
result <- atk_object_get_mdi_zorder accessible'
touchManagedPtr accessible
return result
#if 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 accessible = liftIO $ do
accessible' <- unsafeManagedPtrCastPtr accessible
result <- atk_object_get_n_accessible_children accessible'
touchManagedPtr accessible
return result
#if 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 accessible = liftIO $ do
accessible' <- unsafeManagedPtrCastPtr accessible
result <- atk_object_get_name accessible'
checkUnexpectedReturnNULL "objectGetName" result
result' <- cstringToText result
touchManagedPtr accessible
return result'
#if 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 accessible = liftIO $ do
accessible' <- unsafeManagedPtrCastPtr accessible
result <- atk_object_get_object_locale accessible'
checkUnexpectedReturnNULL "objectGetObjectLocale" result
result' <- cstringToText result
touchManagedPtr accessible
return result'
#if 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 accessible = liftIO $ do
accessible' <- unsafeManagedPtrCastPtr accessible
result <- atk_object_get_parent accessible'
checkUnexpectedReturnNULL "objectGetParent" result
result' <- (newObject Object) result
touchManagedPtr accessible
return result'
#if 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 accessible = liftIO $ do
accessible' <- unsafeManagedPtrCastPtr accessible
result <- atk_object_get_role accessible'
let result' = (toEnum . fromIntegral) result
touchManagedPtr accessible
return result'
#if 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 accessible data_ = liftIO $ do
accessible' <- unsafeManagedPtrCastPtr accessible
atk_object_initialize accessible' data_
touchManagedPtr accessible
return ()
#if 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 accessible state value = liftIO $ do
accessible' <- unsafeManagedPtrCastPtr accessible
let value' = (fromIntegral . fromEnum) value
atk_object_notify_state_change accessible' state value'
touchManagedPtr accessible
return ()
#if 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 accessible = liftIO $ do
accessible' <- unsafeManagedPtrCastPtr accessible
result <- atk_object_peek_parent accessible'
checkUnexpectedReturnNULL "objectPeekParent" result
result' <- (newObject Object) result
touchManagedPtr accessible
return result'
#if 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 accessible i = liftIO $ do
accessible' <- unsafeManagedPtrCastPtr accessible
result <- atk_object_ref_accessible_child accessible' i
checkUnexpectedReturnNULL "objectRefAccessibleChild" result
result' <- (wrapObject Object) result
touchManagedPtr accessible
return result'
#if 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 accessible = liftIO $ do
accessible' <- unsafeManagedPtrCastPtr accessible
result <- atk_object_ref_relation_set accessible'
checkUnexpectedReturnNULL "objectRefRelationSet" result
result' <- (wrapObject Atk.RelationSet.RelationSet) result
touchManagedPtr accessible
return result'
#if 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 accessible = liftIO $ do
accessible' <- unsafeManagedPtrCastPtr accessible
result <- atk_object_ref_state_set accessible'
checkUnexpectedReturnNULL "objectRefStateSet" result
result' <- (wrapObject Atk.StateSet.StateSet) result
touchManagedPtr accessible
return result'
#if 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 2.12.","","Removes a property change handler."] #-}
objectRemovePropertyChangeHandler ::
(B.CallStack.HasCallStack, MonadIO m, IsObject a) =>
a
-> Word32
-> m ()
objectRemovePropertyChangeHandler accessible handlerId = liftIO $ do
accessible' <- unsafeManagedPtrCastPtr accessible
atk_object_remove_property_change_handler accessible' handlerId
touchManagedPtr accessible
return ()
#if 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 object relationship target = liftIO $ do
object' <- unsafeManagedPtrCastPtr object
let relationship' = (fromIntegral . fromEnum) relationship
target' <- unsafeManagedPtrCastPtr target
result <- atk_object_remove_relationship object' relationship' target'
let result' = (/= 0) result
touchManagedPtr object
touchManagedPtr target
return result'
#if 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_description" atk_object_set_description ::
Ptr Object ->
CString ->
IO ()
objectSetDescription ::
(B.CallStack.HasCallStack, MonadIO m, IsObject a) =>
a
-> T.Text
-> m ()
objectSetDescription accessible description = liftIO $ do
accessible' <- unsafeManagedPtrCastPtr accessible
description' <- textToCString description
atk_object_set_description accessible' description'
touchManagedPtr accessible
freeMem description'
return ()
#if 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 accessible name = liftIO $ do
accessible' <- unsafeManagedPtrCastPtr accessible
name' <- textToCString name
atk_object_set_name accessible' name'
touchManagedPtr accessible
freeMem name'
return ()
#if 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 accessible parent = liftIO $ do
accessible' <- unsafeManagedPtrCastPtr accessible
parent' <- unsafeManagedPtrCastPtr parent
atk_object_set_parent accessible' parent'
touchManagedPtr accessible
touchManagedPtr parent
return ()
#if 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 accessible role = liftIO $ do
accessible' <- unsafeManagedPtrCastPtr accessible
let role' = (fromIntegral . fromEnum) role
atk_object_set_role accessible' role'
touchManagedPtr accessible
return ()
#if ENABLE_OVERLOADING
data ObjectSetRoleMethodInfo
instance (signature ~ (Atk.Enums.Role -> m ()), MonadIO m, IsObject a) => O.MethodInfo ObjectSetRoleMethodInfo a signature where
overloadedMethod _ = objectSetRole
#endif