{-# LANGUAGE TypeApplications #-}
#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.Gtk.Objects.ContainerAccessible
(
ContainerAccessible(..) ,
IsContainerAccessible ,
toContainerAccessible ,
#if defined(ENABLE_OVERLOADING)
ResolveContainerAccessibleMethod ,
#endif
) 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.GArray as B.GArray
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 qualified GHC.Records as R
import qualified GI.Atk.Interfaces.Component as Atk.Component
import qualified GI.Atk.Objects.Object as Atk.Object
import qualified GI.GObject.Objects.Object as GObject.Object
import {-# SOURCE #-} qualified GI.Gtk.Objects.Accessible as Gtk.Accessible
import {-# SOURCE #-} qualified GI.Gtk.Objects.WidgetAccessible as Gtk.WidgetAccessible
newtype ContainerAccessible = ContainerAccessible (SP.ManagedPtr ContainerAccessible)
deriving (ContainerAccessible -> ContainerAccessible -> Bool
(ContainerAccessible -> ContainerAccessible -> Bool)
-> (ContainerAccessible -> ContainerAccessible -> Bool)
-> Eq ContainerAccessible
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ContainerAccessible -> ContainerAccessible -> Bool
$c/= :: ContainerAccessible -> ContainerAccessible -> Bool
== :: ContainerAccessible -> ContainerAccessible -> Bool
$c== :: ContainerAccessible -> ContainerAccessible -> Bool
Eq)
instance SP.ManagedPtrNewtype ContainerAccessible where
toManagedPtr :: ContainerAccessible -> ManagedPtr ContainerAccessible
toManagedPtr (ContainerAccessible ManagedPtr ContainerAccessible
p) = ManagedPtr ContainerAccessible
p
foreign import ccall "gtk_container_accessible_get_type"
c_gtk_container_accessible_get_type :: IO B.Types.GType
instance B.Types.TypedObject ContainerAccessible where
glibType :: IO GType
glibType = IO GType
c_gtk_container_accessible_get_type
instance B.Types.GObject ContainerAccessible
class (SP.GObject o, O.IsDescendantOf ContainerAccessible o) => IsContainerAccessible o
instance (SP.GObject o, O.IsDescendantOf ContainerAccessible o) => IsContainerAccessible o
instance O.HasParentTypes ContainerAccessible
type instance O.ParentTypes ContainerAccessible = '[Gtk.WidgetAccessible.WidgetAccessible, Gtk.Accessible.Accessible, Atk.Object.Object, GObject.Object.Object, Atk.Component.Component]
toContainerAccessible :: (MIO.MonadIO m, IsContainerAccessible o) => o -> m ContainerAccessible
toContainerAccessible :: forall (m :: * -> *) o.
(MonadIO m, IsContainerAccessible o) =>
o -> m ContainerAccessible
toContainerAccessible = IO ContainerAccessible -> m ContainerAccessible
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO ContainerAccessible -> m ContainerAccessible)
-> (o -> IO ContainerAccessible) -> o -> m ContainerAccessible
forall b c a. (b -> c) -> (a -> b) -> a -> c
. (ManagedPtr ContainerAccessible -> ContainerAccessible)
-> o -> IO ContainerAccessible
forall o o'.
(HasCallStack, ManagedPtrNewtype o, TypedObject o,
ManagedPtrNewtype o', TypedObject o') =>
(ManagedPtr o' -> o') -> o -> IO o'
B.ManagedPtr.unsafeCastTo ManagedPtr ContainerAccessible -> ContainerAccessible
ContainerAccessible
instance B.GValue.IsGValue (Maybe ContainerAccessible) where
gvalueGType_ :: IO GType
gvalueGType_ = IO GType
c_gtk_container_accessible_get_type
gvalueSet_ :: Ptr GValue -> Maybe ContainerAccessible -> IO ()
gvalueSet_ Ptr GValue
gv Maybe ContainerAccessible
P.Nothing = Ptr GValue -> Ptr ContainerAccessible -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv (Ptr ContainerAccessible
forall a. Ptr a
FP.nullPtr :: FP.Ptr ContainerAccessible)
gvalueSet_ Ptr GValue
gv (P.Just ContainerAccessible
obj) = ContainerAccessible -> (Ptr ContainerAccessible -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
B.ManagedPtr.withManagedPtr ContainerAccessible
obj (Ptr GValue -> Ptr ContainerAccessible -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv)
gvalueGet_ :: Ptr GValue -> IO (Maybe ContainerAccessible)
gvalueGet_ Ptr GValue
gv = do
Ptr ContainerAccessible
ptr <- Ptr GValue -> IO (Ptr ContainerAccessible)
forall a. GObject a => Ptr GValue -> IO (Ptr a)
B.GValue.get_object Ptr GValue
gv :: IO (FP.Ptr ContainerAccessible)
if Ptr ContainerAccessible
ptr Ptr ContainerAccessible -> Ptr ContainerAccessible -> Bool
forall a. Eq a => a -> a -> Bool
/= Ptr ContainerAccessible
forall a. Ptr a
FP.nullPtr
then ContainerAccessible -> Maybe ContainerAccessible
forall a. a -> Maybe a
P.Just (ContainerAccessible -> Maybe ContainerAccessible)
-> IO ContainerAccessible -> IO (Maybe ContainerAccessible)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> (ManagedPtr ContainerAccessible -> ContainerAccessible)
-> Ptr ContainerAccessible -> IO ContainerAccessible
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
B.ManagedPtr.newObject ManagedPtr ContainerAccessible -> ContainerAccessible
ContainerAccessible Ptr ContainerAccessible
ptr
else Maybe ContainerAccessible -> IO (Maybe ContainerAccessible)
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe ContainerAccessible
forall a. Maybe a
P.Nothing
#if defined(ENABLE_OVERLOADING)
type family ResolveContainerAccessibleMethod (t :: Symbol) (o :: *) :: * where
ResolveContainerAccessibleMethod "addRelationship" o = Atk.Object.ObjectAddRelationshipMethodInfo
ResolveContainerAccessibleMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolveContainerAccessibleMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolveContainerAccessibleMethod "connectWidgetDestroyed" o = Gtk.Accessible.AccessibleConnectWidgetDestroyedMethodInfo
ResolveContainerAccessibleMethod "contains" o = Atk.Component.ComponentContainsMethodInfo
ResolveContainerAccessibleMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolveContainerAccessibleMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolveContainerAccessibleMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
ResolveContainerAccessibleMethod "grabFocus" o = Atk.Component.ComponentGrabFocusMethodInfo
ResolveContainerAccessibleMethod "initialize" o = Atk.Object.ObjectInitializeMethodInfo
ResolveContainerAccessibleMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolveContainerAccessibleMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolveContainerAccessibleMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolveContainerAccessibleMethod "notifyStateChange" o = Atk.Object.ObjectNotifyStateChangeMethodInfo
ResolveContainerAccessibleMethod "peekParent" o = Atk.Object.ObjectPeekParentMethodInfo
ResolveContainerAccessibleMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolveContainerAccessibleMethod "refAccessibleAtPoint" o = Atk.Component.ComponentRefAccessibleAtPointMethodInfo
ResolveContainerAccessibleMethod "refAccessibleChild" o = Atk.Object.ObjectRefAccessibleChildMethodInfo
ResolveContainerAccessibleMethod "refRelationSet" o = Atk.Object.ObjectRefRelationSetMethodInfo
ResolveContainerAccessibleMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolveContainerAccessibleMethod "refStateSet" o = Atk.Object.ObjectRefStateSetMethodInfo
ResolveContainerAccessibleMethod "removeFocusHandler" o = Atk.Component.ComponentRemoveFocusHandlerMethodInfo
ResolveContainerAccessibleMethod "removePropertyChangeHandler" o = Atk.Object.ObjectRemovePropertyChangeHandlerMethodInfo
ResolveContainerAccessibleMethod "removeRelationship" o = Atk.Object.ObjectRemoveRelationshipMethodInfo
ResolveContainerAccessibleMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolveContainerAccessibleMethod "scrollTo" o = Atk.Component.ComponentScrollToMethodInfo
ResolveContainerAccessibleMethod "scrollToPoint" o = Atk.Component.ComponentScrollToPointMethodInfo
ResolveContainerAccessibleMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolveContainerAccessibleMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolveContainerAccessibleMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolveContainerAccessibleMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolveContainerAccessibleMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolveContainerAccessibleMethod "getAccessibleId" o = Atk.Object.ObjectGetAccessibleIdMethodInfo
ResolveContainerAccessibleMethod "getAlpha" o = Atk.Component.ComponentGetAlphaMethodInfo
ResolveContainerAccessibleMethod "getAttributes" o = Atk.Object.ObjectGetAttributesMethodInfo
ResolveContainerAccessibleMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolveContainerAccessibleMethod "getDescription" o = Atk.Object.ObjectGetDescriptionMethodInfo
ResolveContainerAccessibleMethod "getExtents" o = Atk.Component.ComponentGetExtentsMethodInfo
ResolveContainerAccessibleMethod "getIndexInParent" o = Atk.Object.ObjectGetIndexInParentMethodInfo
ResolveContainerAccessibleMethod "getLayer" o = Atk.Object.ObjectGetLayerMethodInfo
ResolveContainerAccessibleMethod "getMdiZorder" o = Atk.Object.ObjectGetMdiZorderMethodInfo
ResolveContainerAccessibleMethod "getNAccessibleChildren" o = Atk.Object.ObjectGetNAccessibleChildrenMethodInfo
ResolveContainerAccessibleMethod "getName" o = Atk.Object.ObjectGetNameMethodInfo
ResolveContainerAccessibleMethod "getObjectLocale" o = Atk.Object.ObjectGetObjectLocaleMethodInfo
ResolveContainerAccessibleMethod "getParent" o = Atk.Object.ObjectGetParentMethodInfo
ResolveContainerAccessibleMethod "getPosition" o = Atk.Component.ComponentGetPositionMethodInfo
ResolveContainerAccessibleMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolveContainerAccessibleMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolveContainerAccessibleMethod "getRole" o = Atk.Object.ObjectGetRoleMethodInfo
ResolveContainerAccessibleMethod "getSize" o = Atk.Component.ComponentGetSizeMethodInfo
ResolveContainerAccessibleMethod "getWidget" o = Gtk.Accessible.AccessibleGetWidgetMethodInfo
ResolveContainerAccessibleMethod "setAccessibleId" o = Atk.Object.ObjectSetAccessibleIdMethodInfo
ResolveContainerAccessibleMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolveContainerAccessibleMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
ResolveContainerAccessibleMethod "setDescription" o = Atk.Object.ObjectSetDescriptionMethodInfo
ResolveContainerAccessibleMethod "setExtents" o = Atk.Component.ComponentSetExtentsMethodInfo
ResolveContainerAccessibleMethod "setName" o = Atk.Object.ObjectSetNameMethodInfo
ResolveContainerAccessibleMethod "setParent" o = Atk.Object.ObjectSetParentMethodInfo
ResolveContainerAccessibleMethod "setPosition" o = Atk.Component.ComponentSetPositionMethodInfo
ResolveContainerAccessibleMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolveContainerAccessibleMethod "setRole" o = Atk.Object.ObjectSetRoleMethodInfo
ResolveContainerAccessibleMethod "setSize" o = Atk.Component.ComponentSetSizeMethodInfo
ResolveContainerAccessibleMethod "setWidget" o = Gtk.Accessible.AccessibleSetWidgetMethodInfo
ResolveContainerAccessibleMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveContainerAccessibleMethod t ContainerAccessible, O.OverloadedMethod info ContainerAccessible p) => OL.IsLabel t (ContainerAccessible -> p) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.overloadedMethod @info
#else
fromLabel _ = O.overloadedMethod @info
#endif
#if MIN_VERSION_base(4,13,0)
instance (info ~ ResolveContainerAccessibleMethod t ContainerAccessible, O.OverloadedMethod info ContainerAccessible p, R.HasField t ContainerAccessible p) => R.HasField t ContainerAccessible p where
getField = O.overloadedMethod @info
#endif
instance (info ~ ResolveContainerAccessibleMethod t ContainerAccessible, O.OverloadedMethodInfo info ContainerAccessible) => OL.IsLabel t (O.MethodProxy info ContainerAccessible) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.MethodProxy
#else
fromLabel _ = O.MethodProxy
#endif
#endif
#if defined(ENABLE_OVERLOADING)
instance O.HasAttributeList ContainerAccessible
type instance O.AttributeList ContainerAccessible = ContainerAccessibleAttributeList
type ContainerAccessibleAttributeList = ('[ '("accessibleComponentLayer", Atk.Object.ObjectAccessibleComponentLayerPropertyInfo), '("accessibleComponentMdiZorder", Atk.Object.ObjectAccessibleComponentMdiZorderPropertyInfo), '("accessibleDescription", Atk.Object.ObjectAccessibleDescriptionPropertyInfo), '("accessibleHypertextNlinks", Atk.Object.ObjectAccessibleHypertextNlinksPropertyInfo), '("accessibleName", Atk.Object.ObjectAccessibleNamePropertyInfo), '("accessibleParent", Atk.Object.ObjectAccessibleParentPropertyInfo), '("accessibleRole", Atk.Object.ObjectAccessibleRolePropertyInfo), '("accessibleTableCaption", Atk.Object.ObjectAccessibleTableCaptionPropertyInfo), '("accessibleTableCaptionObject", Atk.Object.ObjectAccessibleTableCaptionObjectPropertyInfo), '("accessibleTableColumnDescription", Atk.Object.ObjectAccessibleTableColumnDescriptionPropertyInfo), '("accessibleTableColumnHeader", Atk.Object.ObjectAccessibleTableColumnHeaderPropertyInfo), '("accessibleTableRowDescription", Atk.Object.ObjectAccessibleTableRowDescriptionPropertyInfo), '("accessibleTableRowHeader", Atk.Object.ObjectAccessibleTableRowHeaderPropertyInfo), '("accessibleTableSummary", Atk.Object.ObjectAccessibleTableSummaryPropertyInfo), '("accessibleValue", Atk.Object.ObjectAccessibleValuePropertyInfo), '("widget", Gtk.Accessible.AccessibleWidgetPropertyInfo)] :: [(Symbol, *)])
#endif
#if defined(ENABLE_OVERLOADING)
#endif
#if defined(ENABLE_OVERLOADING)
type instance O.SignalList ContainerAccessible = ContainerAccessibleSignalList
type ContainerAccessibleSignalList = ('[ '("activeDescendantChanged", Atk.Object.ObjectActiveDescendantChangedSignalInfo), '("boundsChanged", Atk.Component.ComponentBoundsChangedSignalInfo), '("childrenChanged", Atk.Object.ObjectChildrenChangedSignalInfo), '("focusEvent", Atk.Object.ObjectFocusEventSignalInfo), '("notify", GObject.Object.ObjectNotifySignalInfo), '("propertyChange", Atk.Object.ObjectPropertyChangeSignalInfo), '("stateChange", Atk.Object.ObjectStateChangeSignalInfo), '("visibleDataChanged", Atk.Object.ObjectVisibleDataChangedSignalInfo)] :: [(Symbol, *)])
#endif