{-# LANGUAGE ImplicitParams, RankNTypes, TypeApplications #-}
#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.Dazzle.Objects.StackList
(
StackList(..) ,
IsStackList ,
toStackList ,
#if defined(ENABLE_OVERLOADING)
ResolveStackListMethod ,
#endif
#if defined(ENABLE_OVERLOADING)
StackListClearMethodInfo ,
#endif
stackListClear ,
#if defined(ENABLE_OVERLOADING)
StackListGetDepthMethodInfo ,
#endif
stackListGetDepth ,
#if defined(ENABLE_OVERLOADING)
StackListGetModelMethodInfo ,
#endif
stackListGetModel ,
stackListNew ,
#if defined(ENABLE_OVERLOADING)
StackListPopMethodInfo ,
#endif
stackListPop ,
#if defined(ENABLE_OVERLOADING)
StackListPushMethodInfo ,
#endif
stackListPush ,
#if defined(ENABLE_OVERLOADING)
StackListModelPropertyInfo ,
#endif
getStackListModel ,
#if defined(ENABLE_OVERLOADING)
stackListModel ,
#endif
StackListHeaderActivatedCallback ,
#if defined(ENABLE_OVERLOADING)
StackListHeaderActivatedSignalInfo ,
#endif
afterStackListHeaderActivated ,
onStackListHeaderActivated ,
StackListRowActivatedCallback ,
#if defined(ENABLE_OVERLOADING)
StackListRowActivatedSignalInfo ,
#endif
afterStackListRowActivated ,
onStackListRowActivated ,
) 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.GHashTable as B.GHT
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.Coerce as Coerce
import qualified Data.Text as T
import qualified Data.Kind as DK
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 Data.Word as DW
import qualified Data.Int as DI
import qualified System.Posix.Types as SPT
import qualified Foreign.C.Types as FCT
#if MIN_VERSION_base(4,18,0)
import qualified GI.Atk.Interfaces.ImplementorIface as Atk.ImplementorIface
import qualified GI.Dazzle.Callbacks as Dazzle.Callbacks
import qualified GI.GLib.Callbacks as GLib.Callbacks
import qualified GI.GObject.Objects.Object as GObject.Object
import qualified GI.Gio.Interfaces.ListModel as Gio.ListModel
import qualified GI.Gtk.Interfaces.Buildable as Gtk.Buildable
import qualified GI.Gtk.Objects.Bin as Gtk.Bin
import qualified GI.Gtk.Objects.Container as Gtk.Container
import qualified GI.Gtk.Objects.ListBoxRow as Gtk.ListBoxRow
import qualified GI.Gtk.Objects.Widget as Gtk.Widget
#else
import qualified GI.Atk.Interfaces.ImplementorIface as Atk.ImplementorIface
import qualified GI.Dazzle.Callbacks as Dazzle.Callbacks
import qualified GI.GLib.Callbacks as GLib.Callbacks
import qualified GI.GObject.Objects.Object as GObject.Object
import qualified GI.Gio.Interfaces.ListModel as Gio.ListModel
import qualified GI.Gtk.Interfaces.Buildable as Gtk.Buildable
import qualified GI.Gtk.Objects.Bin as Gtk.Bin
import qualified GI.Gtk.Objects.Container as Gtk.Container
import qualified GI.Gtk.Objects.ListBoxRow as Gtk.ListBoxRow
import qualified GI.Gtk.Objects.Widget as Gtk.Widget
#endif
newtype StackList = StackList (SP.ManagedPtr StackList)
deriving (StackList -> StackList -> Bool
(StackList -> StackList -> Bool)
-> (StackList -> StackList -> Bool) -> Eq StackList
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: StackList -> StackList -> Bool
== :: StackList -> StackList -> Bool
$c/= :: StackList -> StackList -> Bool
/= :: StackList -> StackList -> Bool
Eq)
instance SP.ManagedPtrNewtype StackList where
toManagedPtr :: StackList -> ManagedPtr StackList
toManagedPtr (StackList ManagedPtr StackList
p) = ManagedPtr StackList
p
foreign import ccall "dzl_stack_list_get_type"
c_dzl_stack_list_get_type :: IO B.Types.GType
instance B.Types.TypedObject StackList where
glibType :: IO GType
glibType = IO GType
c_dzl_stack_list_get_type
instance B.Types.GObject StackList
class (SP.GObject o, O.IsDescendantOf StackList o) => IsStackList o
instance (SP.GObject o, O.IsDescendantOf StackList o) => IsStackList o
instance O.HasParentTypes StackList
type instance O.ParentTypes StackList = '[Gtk.Bin.Bin, Gtk.Container.Container, Gtk.Widget.Widget, GObject.Object.Object, Atk.ImplementorIface.ImplementorIface, Gtk.Buildable.Buildable]
toStackList :: (MIO.MonadIO m, IsStackList o) => o -> m StackList
toStackList :: forall (m :: * -> *) o.
(MonadIO m, IsStackList o) =>
o -> m StackList
toStackList = IO StackList -> m StackList
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO StackList -> m StackList)
-> (o -> IO StackList) -> o -> m StackList
forall b c a. (b -> c) -> (a -> b) -> a -> c
. (ManagedPtr StackList -> StackList) -> o -> IO StackList
forall o o'.
(HasCallStack, ManagedPtrNewtype o, TypedObject o,
ManagedPtrNewtype o', TypedObject o') =>
(ManagedPtr o' -> o') -> o -> IO o'
B.ManagedPtr.unsafeCastTo ManagedPtr StackList -> StackList
StackList
instance B.GValue.IsGValue (Maybe StackList) where
gvalueGType_ :: IO GType
gvalueGType_ = IO GType
c_dzl_stack_list_get_type
gvalueSet_ :: Ptr GValue -> Maybe StackList -> IO ()
gvalueSet_ Ptr GValue
gv Maybe StackList
P.Nothing = Ptr GValue -> Ptr StackList -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv (Ptr StackList
forall a. Ptr a
FP.nullPtr :: FP.Ptr StackList)
gvalueSet_ Ptr GValue
gv (P.Just StackList
obj) = StackList -> (Ptr StackList -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
B.ManagedPtr.withManagedPtr StackList
obj (Ptr GValue -> Ptr StackList -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv)
gvalueGet_ :: Ptr GValue -> IO (Maybe StackList)
gvalueGet_ Ptr GValue
gv = do
Ptr StackList
ptr <- Ptr GValue -> IO (Ptr StackList)
forall a. GObject a => Ptr GValue -> IO (Ptr a)
B.GValue.get_object Ptr GValue
gv :: IO (FP.Ptr StackList)
if Ptr StackList
ptr Ptr StackList -> Ptr StackList -> Bool
forall a. Eq a => a -> a -> Bool
/= Ptr StackList
forall a. Ptr a
FP.nullPtr
then StackList -> Maybe StackList
forall a. a -> Maybe a
P.Just (StackList -> Maybe StackList)
-> IO StackList -> IO (Maybe StackList)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> (ManagedPtr StackList -> StackList)
-> Ptr StackList -> IO StackList
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
B.ManagedPtr.newObject ManagedPtr StackList -> StackList
StackList Ptr StackList
ptr
else Maybe StackList -> IO (Maybe StackList)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe StackList
forall a. Maybe a
P.Nothing
#if defined(ENABLE_OVERLOADING)
type family ResolveStackListMethod (t :: Symbol) (o :: DK.Type) :: DK.Type where
ResolveStackListMethod "activate" o = Gtk.Widget.WidgetActivateMethodInfo
ResolveStackListMethod "add" o = Gtk.Container.ContainerAddMethodInfo
ResolveStackListMethod "addAccelerator" o = Gtk.Widget.WidgetAddAcceleratorMethodInfo
ResolveStackListMethod "addChild" o = Gtk.Buildable.BuildableAddChildMethodInfo
ResolveStackListMethod "addDeviceEvents" o = Gtk.Widget.WidgetAddDeviceEventsMethodInfo
ResolveStackListMethod "addEvents" o = Gtk.Widget.WidgetAddEventsMethodInfo
ResolveStackListMethod "addMnemonicLabel" o = Gtk.Widget.WidgetAddMnemonicLabelMethodInfo
ResolveStackListMethod "addTickCallback" o = Gtk.Widget.WidgetAddTickCallbackMethodInfo
ResolveStackListMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolveStackListMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolveStackListMethod "canActivateAccel" o = Gtk.Widget.WidgetCanActivateAccelMethodInfo
ResolveStackListMethod "checkResize" o = Gtk.Container.ContainerCheckResizeMethodInfo
ResolveStackListMethod "childFocus" o = Gtk.Widget.WidgetChildFocusMethodInfo
ResolveStackListMethod "childGetProperty" o = Gtk.Container.ContainerChildGetPropertyMethodInfo
ResolveStackListMethod "childNotify" o = Gtk.Container.ContainerChildNotifyMethodInfo
ResolveStackListMethod "childNotifyByPspec" o = Gtk.Container.ContainerChildNotifyByPspecMethodInfo
ResolveStackListMethod "childSetProperty" o = Gtk.Container.ContainerChildSetPropertyMethodInfo
ResolveStackListMethod "childType" o = Gtk.Container.ContainerChildTypeMethodInfo
ResolveStackListMethod "classPath" o = Gtk.Widget.WidgetClassPathMethodInfo
ResolveStackListMethod "clear" o = StackListClearMethodInfo
ResolveStackListMethod "computeExpand" o = Gtk.Widget.WidgetComputeExpandMethodInfo
ResolveStackListMethod "constructChild" o = Gtk.Buildable.BuildableConstructChildMethodInfo
ResolveStackListMethod "createPangoContext" o = Gtk.Widget.WidgetCreatePangoContextMethodInfo
ResolveStackListMethod "createPangoLayout" o = Gtk.Widget.WidgetCreatePangoLayoutMethodInfo
ResolveStackListMethod "customFinished" o = Gtk.Buildable.BuildableCustomFinishedMethodInfo
ResolveStackListMethod "customTagEnd" o = Gtk.Buildable.BuildableCustomTagEndMethodInfo
ResolveStackListMethod "customTagStart" o = Gtk.Buildable.BuildableCustomTagStartMethodInfo
ResolveStackListMethod "destroy" o = Gtk.Widget.WidgetDestroyMethodInfo
ResolveStackListMethod "destroyed" o = Gtk.Widget.WidgetDestroyedMethodInfo
ResolveStackListMethod "deviceIsShadowed" o = Gtk.Widget.WidgetDeviceIsShadowedMethodInfo
ResolveStackListMethod "dragBegin" o = Gtk.Widget.WidgetDragBeginMethodInfo
ResolveStackListMethod "dragBeginWithCoordinates" o = Gtk.Widget.WidgetDragBeginWithCoordinatesMethodInfo
ResolveStackListMethod "dragCheckThreshold" o = Gtk.Widget.WidgetDragCheckThresholdMethodInfo
ResolveStackListMethod "dragDestAddImageTargets" o = Gtk.Widget.WidgetDragDestAddImageTargetsMethodInfo
ResolveStackListMethod "dragDestAddTextTargets" o = Gtk.Widget.WidgetDragDestAddTextTargetsMethodInfo
ResolveStackListMethod "dragDestAddUriTargets" o = Gtk.Widget.WidgetDragDestAddUriTargetsMethodInfo
ResolveStackListMethod "dragDestFindTarget" o = Gtk.Widget.WidgetDragDestFindTargetMethodInfo
ResolveStackListMethod "dragDestGetTargetList" o = Gtk.Widget.WidgetDragDestGetTargetListMethodInfo
ResolveStackListMethod "dragDestGetTrackMotion" o = Gtk.Widget.WidgetDragDestGetTrackMotionMethodInfo
ResolveStackListMethod "dragDestSet" o = Gtk.Widget.WidgetDragDestSetMethodInfo
ResolveStackListMethod "dragDestSetProxy" o = Gtk.Widget.WidgetDragDestSetProxyMethodInfo
ResolveStackListMethod "dragDestSetTargetList" o = Gtk.Widget.WidgetDragDestSetTargetListMethodInfo
ResolveStackListMethod "dragDestSetTrackMotion" o = Gtk.Widget.WidgetDragDestSetTrackMotionMethodInfo
ResolveStackListMethod "dragDestUnset" o = Gtk.Widget.WidgetDragDestUnsetMethodInfo
ResolveStackListMethod "dragGetData" o = Gtk.Widget.WidgetDragGetDataMethodInfo
ResolveStackListMethod "dragHighlight" o = Gtk.Widget.WidgetDragHighlightMethodInfo
ResolveStackListMethod "dragSourceAddImageTargets" o = Gtk.Widget.WidgetDragSourceAddImageTargetsMethodInfo
ResolveStackListMethod "dragSourceAddTextTargets" o = Gtk.Widget.WidgetDragSourceAddTextTargetsMethodInfo
ResolveStackListMethod "dragSourceAddUriTargets" o = Gtk.Widget.WidgetDragSourceAddUriTargetsMethodInfo
ResolveStackListMethod "dragSourceGetTargetList" o = Gtk.Widget.WidgetDragSourceGetTargetListMethodInfo
ResolveStackListMethod "dragSourceSet" o = Gtk.Widget.WidgetDragSourceSetMethodInfo
ResolveStackListMethod "dragSourceSetIconGicon" o = Gtk.Widget.WidgetDragSourceSetIconGiconMethodInfo
ResolveStackListMethod "dragSourceSetIconName" o = Gtk.Widget.WidgetDragSourceSetIconNameMethodInfo
ResolveStackListMethod "dragSourceSetIconPixbuf" o = Gtk.Widget.WidgetDragSourceSetIconPixbufMethodInfo
ResolveStackListMethod "dragSourceSetIconStock" o = Gtk.Widget.WidgetDragSourceSetIconStockMethodInfo
ResolveStackListMethod "dragSourceSetTargetList" o = Gtk.Widget.WidgetDragSourceSetTargetListMethodInfo
ResolveStackListMethod "dragSourceUnset" o = Gtk.Widget.WidgetDragSourceUnsetMethodInfo
ResolveStackListMethod "dragUnhighlight" o = Gtk.Widget.WidgetDragUnhighlightMethodInfo
ResolveStackListMethod "draw" o = Gtk.Widget.WidgetDrawMethodInfo
ResolveStackListMethod "ensureStyle" o = Gtk.Widget.WidgetEnsureStyleMethodInfo
ResolveStackListMethod "errorBell" o = Gtk.Widget.WidgetErrorBellMethodInfo
ResolveStackListMethod "event" o = Gtk.Widget.WidgetEventMethodInfo
ResolveStackListMethod "forall" o = Gtk.Container.ContainerForallMethodInfo
ResolveStackListMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolveStackListMethod "foreach" o = Gtk.Container.ContainerForeachMethodInfo
ResolveStackListMethod "freezeChildNotify" o = Gtk.Widget.WidgetFreezeChildNotifyMethodInfo
ResolveStackListMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolveStackListMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
ResolveStackListMethod "grabAdd" o = Gtk.Widget.WidgetGrabAddMethodInfo
ResolveStackListMethod "grabDefault" o = Gtk.Widget.WidgetGrabDefaultMethodInfo
ResolveStackListMethod "grabFocus" o = Gtk.Widget.WidgetGrabFocusMethodInfo
ResolveStackListMethod "grabRemove" o = Gtk.Widget.WidgetGrabRemoveMethodInfo
ResolveStackListMethod "hasDefault" o = Gtk.Widget.WidgetHasDefaultMethodInfo
ResolveStackListMethod "hasFocus" o = Gtk.Widget.WidgetHasFocusMethodInfo
ResolveStackListMethod "hasGrab" o = Gtk.Widget.WidgetHasGrabMethodInfo
ResolveStackListMethod "hasRcStyle" o = Gtk.Widget.WidgetHasRcStyleMethodInfo
ResolveStackListMethod "hasScreen" o = Gtk.Widget.WidgetHasScreenMethodInfo
ResolveStackListMethod "hasVisibleFocus" o = Gtk.Widget.WidgetHasVisibleFocusMethodInfo
ResolveStackListMethod "hide" o = Gtk.Widget.WidgetHideMethodInfo
ResolveStackListMethod "hideOnDelete" o = Gtk.Widget.WidgetHideOnDeleteMethodInfo
ResolveStackListMethod "inDestruction" o = Gtk.Widget.WidgetInDestructionMethodInfo
ResolveStackListMethod "initTemplate" o = Gtk.Widget.WidgetInitTemplateMethodInfo
ResolveStackListMethod "inputShapeCombineRegion" o = Gtk.Widget.WidgetInputShapeCombineRegionMethodInfo
ResolveStackListMethod "insertActionGroup" o = Gtk.Widget.WidgetInsertActionGroupMethodInfo
ResolveStackListMethod "intersect" o = Gtk.Widget.WidgetIntersectMethodInfo
ResolveStackListMethod "isAncestor" o = Gtk.Widget.WidgetIsAncestorMethodInfo
ResolveStackListMethod "isComposited" o = Gtk.Widget.WidgetIsCompositedMethodInfo
ResolveStackListMethod "isDrawable" o = Gtk.Widget.WidgetIsDrawableMethodInfo
ResolveStackListMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolveStackListMethod "isFocus" o = Gtk.Widget.WidgetIsFocusMethodInfo
ResolveStackListMethod "isSensitive" o = Gtk.Widget.WidgetIsSensitiveMethodInfo
ResolveStackListMethod "isToplevel" o = Gtk.Widget.WidgetIsToplevelMethodInfo
ResolveStackListMethod "isVisible" o = Gtk.Widget.WidgetIsVisibleMethodInfo
ResolveStackListMethod "keynavFailed" o = Gtk.Widget.WidgetKeynavFailedMethodInfo
ResolveStackListMethod "listAccelClosures" o = Gtk.Widget.WidgetListAccelClosuresMethodInfo
ResolveStackListMethod "listActionPrefixes" o = Gtk.Widget.WidgetListActionPrefixesMethodInfo
ResolveStackListMethod "listMnemonicLabels" o = Gtk.Widget.WidgetListMnemonicLabelsMethodInfo
ResolveStackListMethod "map" o = Gtk.Widget.WidgetMapMethodInfo
ResolveStackListMethod "mnemonicActivate" o = Gtk.Widget.WidgetMnemonicActivateMethodInfo
ResolveStackListMethod "modifyBase" o = Gtk.Widget.WidgetModifyBaseMethodInfo
ResolveStackListMethod "modifyBg" o = Gtk.Widget.WidgetModifyBgMethodInfo
ResolveStackListMethod "modifyCursor" o = Gtk.Widget.WidgetModifyCursorMethodInfo
ResolveStackListMethod "modifyFg" o = Gtk.Widget.WidgetModifyFgMethodInfo
ResolveStackListMethod "modifyFont" o = Gtk.Widget.WidgetModifyFontMethodInfo
ResolveStackListMethod "modifyStyle" o = Gtk.Widget.WidgetModifyStyleMethodInfo
ResolveStackListMethod "modifyText" o = Gtk.Widget.WidgetModifyTextMethodInfo
ResolveStackListMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolveStackListMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolveStackListMethod "overrideBackgroundColor" o = Gtk.Widget.WidgetOverrideBackgroundColorMethodInfo
ResolveStackListMethod "overrideColor" o = Gtk.Widget.WidgetOverrideColorMethodInfo
ResolveStackListMethod "overrideCursor" o = Gtk.Widget.WidgetOverrideCursorMethodInfo
ResolveStackListMethod "overrideFont" o = Gtk.Widget.WidgetOverrideFontMethodInfo
ResolveStackListMethod "overrideSymbolicColor" o = Gtk.Widget.WidgetOverrideSymbolicColorMethodInfo
ResolveStackListMethod "parserFinished" o = Gtk.Buildable.BuildableParserFinishedMethodInfo
ResolveStackListMethod "path" o = Gtk.Widget.WidgetPathMethodInfo
ResolveStackListMethod "pop" o = StackListPopMethodInfo
ResolveStackListMethod "propagateDraw" o = Gtk.Container.ContainerPropagateDrawMethodInfo
ResolveStackListMethod "push" o = StackListPushMethodInfo
ResolveStackListMethod "queueAllocate" o = Gtk.Widget.WidgetQueueAllocateMethodInfo
ResolveStackListMethod "queueComputeExpand" o = Gtk.Widget.WidgetQueueComputeExpandMethodInfo
ResolveStackListMethod "queueDraw" o = Gtk.Widget.WidgetQueueDrawMethodInfo
ResolveStackListMethod "queueDrawArea" o = Gtk.Widget.WidgetQueueDrawAreaMethodInfo
ResolveStackListMethod "queueDrawRegion" o = Gtk.Widget.WidgetQueueDrawRegionMethodInfo
ResolveStackListMethod "queueResize" o = Gtk.Widget.WidgetQueueResizeMethodInfo
ResolveStackListMethod "queueResizeNoRedraw" o = Gtk.Widget.WidgetQueueResizeNoRedrawMethodInfo
ResolveStackListMethod "realize" o = Gtk.Widget.WidgetRealizeMethodInfo
ResolveStackListMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolveStackListMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolveStackListMethod "regionIntersect" o = Gtk.Widget.WidgetRegionIntersectMethodInfo
ResolveStackListMethod "registerWindow" o = Gtk.Widget.WidgetRegisterWindowMethodInfo
ResolveStackListMethod "remove" o = Gtk.Container.ContainerRemoveMethodInfo
ResolveStackListMethod "removeAccelerator" o = Gtk.Widget.WidgetRemoveAcceleratorMethodInfo
ResolveStackListMethod "removeMnemonicLabel" o = Gtk.Widget.WidgetRemoveMnemonicLabelMethodInfo
ResolveStackListMethod "removeTickCallback" o = Gtk.Widget.WidgetRemoveTickCallbackMethodInfo
ResolveStackListMethod "renderIcon" o = Gtk.Widget.WidgetRenderIconMethodInfo
ResolveStackListMethod "renderIconPixbuf" o = Gtk.Widget.WidgetRenderIconPixbufMethodInfo
ResolveStackListMethod "reparent" o = Gtk.Widget.WidgetReparentMethodInfo
ResolveStackListMethod "resetRcStyles" o = Gtk.Widget.WidgetResetRcStylesMethodInfo
ResolveStackListMethod "resetStyle" o = Gtk.Widget.WidgetResetStyleMethodInfo
ResolveStackListMethod "resizeChildren" o = Gtk.Container.ContainerResizeChildrenMethodInfo
ResolveStackListMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolveStackListMethod "sendExpose" o = Gtk.Widget.WidgetSendExposeMethodInfo
ResolveStackListMethod "sendFocusChange" o = Gtk.Widget.WidgetSendFocusChangeMethodInfo
ResolveStackListMethod "shapeCombineRegion" o = Gtk.Widget.WidgetShapeCombineRegionMethodInfo
ResolveStackListMethod "show" o = Gtk.Widget.WidgetShowMethodInfo
ResolveStackListMethod "showAll" o = Gtk.Widget.WidgetShowAllMethodInfo
ResolveStackListMethod "showNow" o = Gtk.Widget.WidgetShowNowMethodInfo
ResolveStackListMethod "sizeAllocate" o = Gtk.Widget.WidgetSizeAllocateMethodInfo
ResolveStackListMethod "sizeAllocateWithBaseline" o = Gtk.Widget.WidgetSizeAllocateWithBaselineMethodInfo
ResolveStackListMethod "sizeRequest" o = Gtk.Widget.WidgetSizeRequestMethodInfo
ResolveStackListMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolveStackListMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolveStackListMethod "styleAttach" o = Gtk.Widget.WidgetStyleAttachMethodInfo
ResolveStackListMethod "styleGetProperty" o = Gtk.Widget.WidgetStyleGetPropertyMethodInfo
ResolveStackListMethod "thawChildNotify" o = Gtk.Widget.WidgetThawChildNotifyMethodInfo
ResolveStackListMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolveStackListMethod "translateCoordinates" o = Gtk.Widget.WidgetTranslateCoordinatesMethodInfo
ResolveStackListMethod "triggerTooltipQuery" o = Gtk.Widget.WidgetTriggerTooltipQueryMethodInfo
ResolveStackListMethod "unmap" o = Gtk.Widget.WidgetUnmapMethodInfo
ResolveStackListMethod "unparent" o = Gtk.Widget.WidgetUnparentMethodInfo
ResolveStackListMethod "unrealize" o = Gtk.Widget.WidgetUnrealizeMethodInfo
ResolveStackListMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolveStackListMethod "unregisterWindow" o = Gtk.Widget.WidgetUnregisterWindowMethodInfo
ResolveStackListMethod "unsetFocusChain" o = Gtk.Container.ContainerUnsetFocusChainMethodInfo
ResolveStackListMethod "unsetStateFlags" o = Gtk.Widget.WidgetUnsetStateFlagsMethodInfo
ResolveStackListMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolveStackListMethod "getAccessible" o = Gtk.Widget.WidgetGetAccessibleMethodInfo
ResolveStackListMethod "getActionGroup" o = Gtk.Widget.WidgetGetActionGroupMethodInfo
ResolveStackListMethod "getAllocatedBaseline" o = Gtk.Widget.WidgetGetAllocatedBaselineMethodInfo
ResolveStackListMethod "getAllocatedHeight" o = Gtk.Widget.WidgetGetAllocatedHeightMethodInfo
ResolveStackListMethod "getAllocatedSize" o = Gtk.Widget.WidgetGetAllocatedSizeMethodInfo
ResolveStackListMethod "getAllocatedWidth" o = Gtk.Widget.WidgetGetAllocatedWidthMethodInfo
ResolveStackListMethod "getAllocation" o = Gtk.Widget.WidgetGetAllocationMethodInfo
ResolveStackListMethod "getAncestor" o = Gtk.Widget.WidgetGetAncestorMethodInfo
ResolveStackListMethod "getAppPaintable" o = Gtk.Widget.WidgetGetAppPaintableMethodInfo
ResolveStackListMethod "getBorderWidth" o = Gtk.Container.ContainerGetBorderWidthMethodInfo
ResolveStackListMethod "getCanDefault" o = Gtk.Widget.WidgetGetCanDefaultMethodInfo
ResolveStackListMethod "getCanFocus" o = Gtk.Widget.WidgetGetCanFocusMethodInfo
ResolveStackListMethod "getChild" o = Gtk.Bin.BinGetChildMethodInfo
ResolveStackListMethod "getChildRequisition" o = Gtk.Widget.WidgetGetChildRequisitionMethodInfo
ResolveStackListMethod "getChildVisible" o = Gtk.Widget.WidgetGetChildVisibleMethodInfo
ResolveStackListMethod "getChildren" o = Gtk.Container.ContainerGetChildrenMethodInfo
ResolveStackListMethod "getClip" o = Gtk.Widget.WidgetGetClipMethodInfo
ResolveStackListMethod "getClipboard" o = Gtk.Widget.WidgetGetClipboardMethodInfo
ResolveStackListMethod "getCompositeName" o = Gtk.Widget.WidgetGetCompositeNameMethodInfo
ResolveStackListMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolveStackListMethod "getDepth" o = StackListGetDepthMethodInfo
ResolveStackListMethod "getDeviceEnabled" o = Gtk.Widget.WidgetGetDeviceEnabledMethodInfo
ResolveStackListMethod "getDeviceEvents" o = Gtk.Widget.WidgetGetDeviceEventsMethodInfo
ResolveStackListMethod "getDirection" o = Gtk.Widget.WidgetGetDirectionMethodInfo
ResolveStackListMethod "getDisplay" o = Gtk.Widget.WidgetGetDisplayMethodInfo
ResolveStackListMethod "getDoubleBuffered" o = Gtk.Widget.WidgetGetDoubleBufferedMethodInfo
ResolveStackListMethod "getEvents" o = Gtk.Widget.WidgetGetEventsMethodInfo
ResolveStackListMethod "getFocusChain" o = Gtk.Container.ContainerGetFocusChainMethodInfo
ResolveStackListMethod "getFocusChild" o = Gtk.Container.ContainerGetFocusChildMethodInfo
ResolveStackListMethod "getFocusHadjustment" o = Gtk.Container.ContainerGetFocusHadjustmentMethodInfo
ResolveStackListMethod "getFocusOnClick" o = Gtk.Widget.WidgetGetFocusOnClickMethodInfo
ResolveStackListMethod "getFocusVadjustment" o = Gtk.Container.ContainerGetFocusVadjustmentMethodInfo
ResolveStackListMethod "getFontMap" o = Gtk.Widget.WidgetGetFontMapMethodInfo
ResolveStackListMethod "getFontOptions" o = Gtk.Widget.WidgetGetFontOptionsMethodInfo
ResolveStackListMethod "getFrameClock" o = Gtk.Widget.WidgetGetFrameClockMethodInfo
ResolveStackListMethod "getHalign" o = Gtk.Widget.WidgetGetHalignMethodInfo
ResolveStackListMethod "getHasTooltip" o = Gtk.Widget.WidgetGetHasTooltipMethodInfo
ResolveStackListMethod "getHasWindow" o = Gtk.Widget.WidgetGetHasWindowMethodInfo
ResolveStackListMethod "getHexpand" o = Gtk.Widget.WidgetGetHexpandMethodInfo
ResolveStackListMethod "getHexpandSet" o = Gtk.Widget.WidgetGetHexpandSetMethodInfo
ResolveStackListMethod "getInternalChild" o = Gtk.Buildable.BuildableGetInternalChildMethodInfo
ResolveStackListMethod "getMapped" o = Gtk.Widget.WidgetGetMappedMethodInfo
ResolveStackListMethod "getMarginBottom" o = Gtk.Widget.WidgetGetMarginBottomMethodInfo
ResolveStackListMethod "getMarginEnd" o = Gtk.Widget.WidgetGetMarginEndMethodInfo
ResolveStackListMethod "getMarginLeft" o = Gtk.Widget.WidgetGetMarginLeftMethodInfo
ResolveStackListMethod "getMarginRight" o = Gtk.Widget.WidgetGetMarginRightMethodInfo
ResolveStackListMethod "getMarginStart" o = Gtk.Widget.WidgetGetMarginStartMethodInfo
ResolveStackListMethod "getMarginTop" o = Gtk.Widget.WidgetGetMarginTopMethodInfo
ResolveStackListMethod "getModel" o = StackListGetModelMethodInfo
ResolveStackListMethod "getModifierMask" o = Gtk.Widget.WidgetGetModifierMaskMethodInfo
ResolveStackListMethod "getModifierStyle" o = Gtk.Widget.WidgetGetModifierStyleMethodInfo
ResolveStackListMethod "getName" o = Gtk.Widget.WidgetGetNameMethodInfo
ResolveStackListMethod "getNoShowAll" o = Gtk.Widget.WidgetGetNoShowAllMethodInfo
ResolveStackListMethod "getOpacity" o = Gtk.Widget.WidgetGetOpacityMethodInfo
ResolveStackListMethod "getPangoContext" o = Gtk.Widget.WidgetGetPangoContextMethodInfo
ResolveStackListMethod "getParent" o = Gtk.Widget.WidgetGetParentMethodInfo
ResolveStackListMethod "getParentWindow" o = Gtk.Widget.WidgetGetParentWindowMethodInfo
ResolveStackListMethod "getPath" o = Gtk.Widget.WidgetGetPathMethodInfo
ResolveStackListMethod "getPathForChild" o = Gtk.Container.ContainerGetPathForChildMethodInfo
ResolveStackListMethod "getPointer" o = Gtk.Widget.WidgetGetPointerMethodInfo
ResolveStackListMethod "getPreferredHeight" o = Gtk.Widget.WidgetGetPreferredHeightMethodInfo
ResolveStackListMethod "getPreferredHeightAndBaselineForWidth" o = Gtk.Widget.WidgetGetPreferredHeightAndBaselineForWidthMethodInfo
ResolveStackListMethod "getPreferredHeightForWidth" o = Gtk.Widget.WidgetGetPreferredHeightForWidthMethodInfo
ResolveStackListMethod "getPreferredSize" o = Gtk.Widget.WidgetGetPreferredSizeMethodInfo
ResolveStackListMethod "getPreferredWidth" o = Gtk.Widget.WidgetGetPreferredWidthMethodInfo
ResolveStackListMethod "getPreferredWidthForHeight" o = Gtk.Widget.WidgetGetPreferredWidthForHeightMethodInfo
ResolveStackListMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolveStackListMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolveStackListMethod "getRealized" o = Gtk.Widget.WidgetGetRealizedMethodInfo
ResolveStackListMethod "getReceivesDefault" o = Gtk.Widget.WidgetGetReceivesDefaultMethodInfo
ResolveStackListMethod "getRequestMode" o = Gtk.Widget.WidgetGetRequestModeMethodInfo
ResolveStackListMethod "getRequisition" o = Gtk.Widget.WidgetGetRequisitionMethodInfo
ResolveStackListMethod "getResizeMode" o = Gtk.Container.ContainerGetResizeModeMethodInfo
ResolveStackListMethod "getRootWindow" o = Gtk.Widget.WidgetGetRootWindowMethodInfo
ResolveStackListMethod "getScaleFactor" o = Gtk.Widget.WidgetGetScaleFactorMethodInfo
ResolveStackListMethod "getScreen" o = Gtk.Widget.WidgetGetScreenMethodInfo
ResolveStackListMethod "getSensitive" o = Gtk.Widget.WidgetGetSensitiveMethodInfo
ResolveStackListMethod "getSettings" o = Gtk.Widget.WidgetGetSettingsMethodInfo
ResolveStackListMethod "getSizeRequest" o = Gtk.Widget.WidgetGetSizeRequestMethodInfo
ResolveStackListMethod "getState" o = Gtk.Widget.WidgetGetStateMethodInfo
ResolveStackListMethod "getStateFlags" o = Gtk.Widget.WidgetGetStateFlagsMethodInfo
ResolveStackListMethod "getStyle" o = Gtk.Widget.WidgetGetStyleMethodInfo
ResolveStackListMethod "getStyleContext" o = Gtk.Widget.WidgetGetStyleContextMethodInfo
ResolveStackListMethod "getSupportMultidevice" o = Gtk.Widget.WidgetGetSupportMultideviceMethodInfo
ResolveStackListMethod "getTemplateChild" o = Gtk.Widget.WidgetGetTemplateChildMethodInfo
ResolveStackListMethod "getTooltipMarkup" o = Gtk.Widget.WidgetGetTooltipMarkupMethodInfo
ResolveStackListMethod "getTooltipText" o = Gtk.Widget.WidgetGetTooltipTextMethodInfo
ResolveStackListMethod "getTooltipWindow" o = Gtk.Widget.WidgetGetTooltipWindowMethodInfo
ResolveStackListMethod "getToplevel" o = Gtk.Widget.WidgetGetToplevelMethodInfo
ResolveStackListMethod "getValign" o = Gtk.Widget.WidgetGetValignMethodInfo
ResolveStackListMethod "getValignWithBaseline" o = Gtk.Widget.WidgetGetValignWithBaselineMethodInfo
ResolveStackListMethod "getVexpand" o = Gtk.Widget.WidgetGetVexpandMethodInfo
ResolveStackListMethod "getVexpandSet" o = Gtk.Widget.WidgetGetVexpandSetMethodInfo
ResolveStackListMethod "getVisible" o = Gtk.Widget.WidgetGetVisibleMethodInfo
ResolveStackListMethod "getVisual" o = Gtk.Widget.WidgetGetVisualMethodInfo
ResolveStackListMethod "getWindow" o = Gtk.Widget.WidgetGetWindowMethodInfo
ResolveStackListMethod "setAccelPath" o = Gtk.Widget.WidgetSetAccelPathMethodInfo
ResolveStackListMethod "setAllocation" o = Gtk.Widget.WidgetSetAllocationMethodInfo
ResolveStackListMethod "setAppPaintable" o = Gtk.Widget.WidgetSetAppPaintableMethodInfo
ResolveStackListMethod "setBorderWidth" o = Gtk.Container.ContainerSetBorderWidthMethodInfo
ResolveStackListMethod "setBuildableProperty" o = Gtk.Buildable.BuildableSetBuildablePropertyMethodInfo
ResolveStackListMethod "setCanDefault" o = Gtk.Widget.WidgetSetCanDefaultMethodInfo
ResolveStackListMethod "setCanFocus" o = Gtk.Widget.WidgetSetCanFocusMethodInfo
ResolveStackListMethod "setChildVisible" o = Gtk.Widget.WidgetSetChildVisibleMethodInfo
ResolveStackListMethod "setClip" o = Gtk.Widget.WidgetSetClipMethodInfo
ResolveStackListMethod "setCompositeName" o = Gtk.Widget.WidgetSetCompositeNameMethodInfo
ResolveStackListMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolveStackListMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
ResolveStackListMethod "setDeviceEnabled" o = Gtk.Widget.WidgetSetDeviceEnabledMethodInfo
ResolveStackListMethod "setDeviceEvents" o = Gtk.Widget.WidgetSetDeviceEventsMethodInfo
ResolveStackListMethod "setDirection" o = Gtk.Widget.WidgetSetDirectionMethodInfo
ResolveStackListMethod "setDoubleBuffered" o = Gtk.Widget.WidgetSetDoubleBufferedMethodInfo
ResolveStackListMethod "setEvents" o = Gtk.Widget.WidgetSetEventsMethodInfo
ResolveStackListMethod "setFocusChain" o = Gtk.Container.ContainerSetFocusChainMethodInfo
ResolveStackListMethod "setFocusChild" o = Gtk.Container.ContainerSetFocusChildMethodInfo
ResolveStackListMethod "setFocusHadjustment" o = Gtk.Container.ContainerSetFocusHadjustmentMethodInfo
ResolveStackListMethod "setFocusOnClick" o = Gtk.Widget.WidgetSetFocusOnClickMethodInfo
ResolveStackListMethod "setFocusVadjustment" o = Gtk.Container.ContainerSetFocusVadjustmentMethodInfo
ResolveStackListMethod "setFontMap" o = Gtk.Widget.WidgetSetFontMapMethodInfo
ResolveStackListMethod "setFontOptions" o = Gtk.Widget.WidgetSetFontOptionsMethodInfo
ResolveStackListMethod "setHalign" o = Gtk.Widget.WidgetSetHalignMethodInfo
ResolveStackListMethod "setHasTooltip" o = Gtk.Widget.WidgetSetHasTooltipMethodInfo
ResolveStackListMethod "setHasWindow" o = Gtk.Widget.WidgetSetHasWindowMethodInfo
ResolveStackListMethod "setHexpand" o = Gtk.Widget.WidgetSetHexpandMethodInfo
ResolveStackListMethod "setHexpandSet" o = Gtk.Widget.WidgetSetHexpandSetMethodInfo
ResolveStackListMethod "setMapped" o = Gtk.Widget.WidgetSetMappedMethodInfo
ResolveStackListMethod "setMarginBottom" o = Gtk.Widget.WidgetSetMarginBottomMethodInfo
ResolveStackListMethod "setMarginEnd" o = Gtk.Widget.WidgetSetMarginEndMethodInfo
ResolveStackListMethod "setMarginLeft" o = Gtk.Widget.WidgetSetMarginLeftMethodInfo
ResolveStackListMethod "setMarginRight" o = Gtk.Widget.WidgetSetMarginRightMethodInfo
ResolveStackListMethod "setMarginStart" o = Gtk.Widget.WidgetSetMarginStartMethodInfo
ResolveStackListMethod "setMarginTop" o = Gtk.Widget.WidgetSetMarginTopMethodInfo
ResolveStackListMethod "setName" o = Gtk.Widget.WidgetSetNameMethodInfo
ResolveStackListMethod "setNoShowAll" o = Gtk.Widget.WidgetSetNoShowAllMethodInfo
ResolveStackListMethod "setOpacity" o = Gtk.Widget.WidgetSetOpacityMethodInfo
ResolveStackListMethod "setParent" o = Gtk.Widget.WidgetSetParentMethodInfo
ResolveStackListMethod "setParentWindow" o = Gtk.Widget.WidgetSetParentWindowMethodInfo
ResolveStackListMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolveStackListMethod "setRealized" o = Gtk.Widget.WidgetSetRealizedMethodInfo
ResolveStackListMethod "setReallocateRedraws" o = Gtk.Container.ContainerSetReallocateRedrawsMethodInfo
ResolveStackListMethod "setReceivesDefault" o = Gtk.Widget.WidgetSetReceivesDefaultMethodInfo
ResolveStackListMethod "setRedrawOnAllocate" o = Gtk.Widget.WidgetSetRedrawOnAllocateMethodInfo
ResolveStackListMethod "setResizeMode" o = Gtk.Container.ContainerSetResizeModeMethodInfo
ResolveStackListMethod "setSensitive" o = Gtk.Widget.WidgetSetSensitiveMethodInfo
ResolveStackListMethod "setSizeRequest" o = Gtk.Widget.WidgetSetSizeRequestMethodInfo
ResolveStackListMethod "setState" o = Gtk.Widget.WidgetSetStateMethodInfo
ResolveStackListMethod "setStateFlags" o = Gtk.Widget.WidgetSetStateFlagsMethodInfo
ResolveStackListMethod "setStyle" o = Gtk.Widget.WidgetSetStyleMethodInfo
ResolveStackListMethod "setSupportMultidevice" o = Gtk.Widget.WidgetSetSupportMultideviceMethodInfo
ResolveStackListMethod "setTooltipMarkup" o = Gtk.Widget.WidgetSetTooltipMarkupMethodInfo
ResolveStackListMethod "setTooltipText" o = Gtk.Widget.WidgetSetTooltipTextMethodInfo
ResolveStackListMethod "setTooltipWindow" o = Gtk.Widget.WidgetSetTooltipWindowMethodInfo
ResolveStackListMethod "setValign" o = Gtk.Widget.WidgetSetValignMethodInfo
ResolveStackListMethod "setVexpand" o = Gtk.Widget.WidgetSetVexpandMethodInfo
ResolveStackListMethod "setVexpandSet" o = Gtk.Widget.WidgetSetVexpandSetMethodInfo
ResolveStackListMethod "setVisible" o = Gtk.Widget.WidgetSetVisibleMethodInfo
ResolveStackListMethod "setVisual" o = Gtk.Widget.WidgetSetVisualMethodInfo
ResolveStackListMethod "setWindow" o = Gtk.Widget.WidgetSetWindowMethodInfo
ResolveStackListMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveStackListMethod t StackList, O.OverloadedMethod info StackList p) => OL.IsLabel t (StackList -> 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 ~ ResolveStackListMethod t StackList, O.OverloadedMethod info StackList p, R.HasField t StackList p) => R.HasField t StackList p where
getField = O.overloadedMethod @info
#endif
instance (info ~ ResolveStackListMethod t StackList, O.OverloadedMethodInfo info StackList) => OL.IsLabel t (O.MethodProxy info StackList) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.MethodProxy
#else
fromLabel _ = O.MethodProxy
#endif
#endif
type =
Gtk.ListBoxRow.ListBoxRow
-> IO ()
type =
Ptr StackList ->
Ptr Gtk.ListBoxRow.ListBoxRow ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
:: C_StackListHeaderActivatedCallback -> IO (FunPtr C_StackListHeaderActivatedCallback)
wrap_StackListHeaderActivatedCallback ::
GObject a => (a -> StackListHeaderActivatedCallback) ->
C_StackListHeaderActivatedCallback
a -> StackListHeaderActivatedCallback
gi'cb Ptr StackList
gi'selfPtr Ptr ListBoxRow
object Ptr ()
_ = do
ListBoxRow
object' <- ((ManagedPtr ListBoxRow -> ListBoxRow)
-> Ptr ListBoxRow -> IO ListBoxRow
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr ListBoxRow -> ListBoxRow
Gtk.ListBoxRow.ListBoxRow) Ptr ListBoxRow
object
Ptr StackList -> (StackList -> IO ()) -> IO ()
forall o b.
(HasCallStack, GObject o) =>
Ptr o -> (o -> IO b) -> IO b
B.ManagedPtr.withNewObject Ptr StackList
gi'selfPtr ((StackList -> IO ()) -> IO ()) -> (StackList -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \StackList
gi'self -> a -> StackListHeaderActivatedCallback
gi'cb (StackList -> a
forall a b. Coercible a b => a -> b
Coerce.coerce StackList
gi'self) ListBoxRow
object'
onStackListHeaderActivated :: (IsStackList a, MonadIO m) => a -> ((?self :: a) => StackListHeaderActivatedCallback) -> m SignalHandlerId
a
obj (?self::a) => StackListHeaderActivatedCallback
cb = IO SignalHandlerId -> m SignalHandlerId
forall a. IO a -> m a
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 wrapped :: a -> StackListHeaderActivatedCallback
wrapped a
self = let ?self = a
?self::a
self in (?self::a) => StackListHeaderActivatedCallback
StackListHeaderActivatedCallback
cb
let wrapped' :: C_StackListHeaderActivatedCallback
wrapped' = (a -> StackListHeaderActivatedCallback)
-> C_StackListHeaderActivatedCallback
forall a.
GObject a =>
(a -> StackListHeaderActivatedCallback)
-> C_StackListHeaderActivatedCallback
wrap_StackListHeaderActivatedCallback a -> StackListHeaderActivatedCallback
wrapped
FunPtr C_StackListHeaderActivatedCallback
wrapped'' <- C_StackListHeaderActivatedCallback
-> IO (FunPtr C_StackListHeaderActivatedCallback)
mk_StackListHeaderActivatedCallback C_StackListHeaderActivatedCallback
wrapped'
a
-> Text
-> FunPtr C_StackListHeaderActivatedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"header-activated" FunPtr C_StackListHeaderActivatedCallback
wrapped'' SignalConnectMode
SignalConnectBefore Maybe Text
forall a. Maybe a
Nothing
afterStackListHeaderActivated :: (IsStackList a, MonadIO m) => a -> ((?self :: a) => StackListHeaderActivatedCallback) -> m SignalHandlerId
a
obj (?self::a) => StackListHeaderActivatedCallback
cb = IO SignalHandlerId -> m SignalHandlerId
forall a. IO a -> m a
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 wrapped :: a -> StackListHeaderActivatedCallback
wrapped a
self = let ?self = a
?self::a
self in (?self::a) => StackListHeaderActivatedCallback
StackListHeaderActivatedCallback
cb
let wrapped' :: C_StackListHeaderActivatedCallback
wrapped' = (a -> StackListHeaderActivatedCallback)
-> C_StackListHeaderActivatedCallback
forall a.
GObject a =>
(a -> StackListHeaderActivatedCallback)
-> C_StackListHeaderActivatedCallback
wrap_StackListHeaderActivatedCallback a -> StackListHeaderActivatedCallback
wrapped
FunPtr C_StackListHeaderActivatedCallback
wrapped'' <- C_StackListHeaderActivatedCallback
-> IO (FunPtr C_StackListHeaderActivatedCallback)
mk_StackListHeaderActivatedCallback C_StackListHeaderActivatedCallback
wrapped'
a
-> Text
-> FunPtr C_StackListHeaderActivatedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"header-activated" FunPtr C_StackListHeaderActivatedCallback
wrapped'' SignalConnectMode
SignalConnectAfter Maybe Text
forall a. Maybe a
Nothing
#if defined(ENABLE_OVERLOADING)
data StackListHeaderActivatedSignalInfo
instance SignalInfo StackListHeaderActivatedSignalInfo where
type HaskellCallbackType StackListHeaderActivatedSignalInfo = StackListHeaderActivatedCallback
connectSignal obj cb connectMode detail = do
let cb' = wrap_StackListHeaderActivatedCallback cb
cb'' <- mk_StackListHeaderActivatedCallback cb'
connectSignalFunPtr obj "header-activated" cb'' connectMode detail
dbgSignalInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Dazzle.Objects.StackList::header-activated"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-dazzle-1.0.2/docs/GI-Dazzle-Objects-StackList.html#g:signal:headerActivated"})
#endif
type StackListRowActivatedCallback =
Gtk.ListBoxRow.ListBoxRow
-> IO ()
type C_StackListRowActivatedCallback =
Ptr StackList ->
Ptr Gtk.ListBoxRow.ListBoxRow ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_StackListRowActivatedCallback :: C_StackListRowActivatedCallback -> IO (FunPtr C_StackListRowActivatedCallback)
wrap_StackListRowActivatedCallback ::
GObject a => (a -> StackListRowActivatedCallback) ->
C_StackListRowActivatedCallback
wrap_StackListRowActivatedCallback :: forall a.
GObject a =>
(a -> StackListHeaderActivatedCallback)
-> C_StackListHeaderActivatedCallback
wrap_StackListRowActivatedCallback a -> StackListHeaderActivatedCallback
gi'cb Ptr StackList
gi'selfPtr Ptr ListBoxRow
object Ptr ()
_ = do
ListBoxRow
object' <- ((ManagedPtr ListBoxRow -> ListBoxRow)
-> Ptr ListBoxRow -> IO ListBoxRow
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr ListBoxRow -> ListBoxRow
Gtk.ListBoxRow.ListBoxRow) Ptr ListBoxRow
object
Ptr StackList -> (StackList -> IO ()) -> IO ()
forall o b.
(HasCallStack, GObject o) =>
Ptr o -> (o -> IO b) -> IO b
B.ManagedPtr.withNewObject Ptr StackList
gi'selfPtr ((StackList -> IO ()) -> IO ()) -> (StackList -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \StackList
gi'self -> a -> StackListHeaderActivatedCallback
gi'cb (StackList -> a
forall a b. Coercible a b => a -> b
Coerce.coerce StackList
gi'self) ListBoxRow
object'
onStackListRowActivated :: (IsStackList a, MonadIO m) => a -> ((?self :: a) => StackListRowActivatedCallback) -> m SignalHandlerId
onStackListRowActivated :: forall a (m :: * -> *).
(IsStackList a, MonadIO m) =>
a
-> ((?self::a) => StackListHeaderActivatedCallback)
-> m SignalHandlerId
onStackListRowActivated a
obj (?self::a) => StackListHeaderActivatedCallback
cb = IO SignalHandlerId -> m SignalHandlerId
forall a. IO a -> m a
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 wrapped :: a -> StackListHeaderActivatedCallback
wrapped a
self = let ?self = a
?self::a
self in (?self::a) => StackListHeaderActivatedCallback
StackListHeaderActivatedCallback
cb
let wrapped' :: C_StackListHeaderActivatedCallback
wrapped' = (a -> StackListHeaderActivatedCallback)
-> C_StackListHeaderActivatedCallback
forall a.
GObject a =>
(a -> StackListHeaderActivatedCallback)
-> C_StackListHeaderActivatedCallback
wrap_StackListRowActivatedCallback a -> StackListHeaderActivatedCallback
wrapped
FunPtr C_StackListHeaderActivatedCallback
wrapped'' <- C_StackListHeaderActivatedCallback
-> IO (FunPtr C_StackListHeaderActivatedCallback)
mk_StackListRowActivatedCallback C_StackListHeaderActivatedCallback
wrapped'
a
-> Text
-> FunPtr C_StackListHeaderActivatedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"row-activated" FunPtr C_StackListHeaderActivatedCallback
wrapped'' SignalConnectMode
SignalConnectBefore Maybe Text
forall a. Maybe a
Nothing
afterStackListRowActivated :: (IsStackList a, MonadIO m) => a -> ((?self :: a) => StackListRowActivatedCallback) -> m SignalHandlerId
afterStackListRowActivated :: forall a (m :: * -> *).
(IsStackList a, MonadIO m) =>
a
-> ((?self::a) => StackListHeaderActivatedCallback)
-> m SignalHandlerId
afterStackListRowActivated a
obj (?self::a) => StackListHeaderActivatedCallback
cb = IO SignalHandlerId -> m SignalHandlerId
forall a. IO a -> m a
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 wrapped :: a -> StackListHeaderActivatedCallback
wrapped a
self = let ?self = a
?self::a
self in (?self::a) => StackListHeaderActivatedCallback
StackListHeaderActivatedCallback
cb
let wrapped' :: C_StackListHeaderActivatedCallback
wrapped' = (a -> StackListHeaderActivatedCallback)
-> C_StackListHeaderActivatedCallback
forall a.
GObject a =>
(a -> StackListHeaderActivatedCallback)
-> C_StackListHeaderActivatedCallback
wrap_StackListRowActivatedCallback a -> StackListHeaderActivatedCallback
wrapped
FunPtr C_StackListHeaderActivatedCallback
wrapped'' <- C_StackListHeaderActivatedCallback
-> IO (FunPtr C_StackListHeaderActivatedCallback)
mk_StackListRowActivatedCallback C_StackListHeaderActivatedCallback
wrapped'
a
-> Text
-> FunPtr C_StackListHeaderActivatedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"row-activated" FunPtr C_StackListHeaderActivatedCallback
wrapped'' SignalConnectMode
SignalConnectAfter Maybe Text
forall a. Maybe a
Nothing
#if defined(ENABLE_OVERLOADING)
data StackListRowActivatedSignalInfo
instance SignalInfo StackListRowActivatedSignalInfo where
type HaskellCallbackType StackListRowActivatedSignalInfo = StackListRowActivatedCallback
connectSignal obj cb connectMode detail = do
let cb' = wrap_StackListRowActivatedCallback cb
cb'' <- mk_StackListRowActivatedCallback cb'
connectSignalFunPtr obj "row-activated" cb'' connectMode detail
dbgSignalInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Dazzle.Objects.StackList::row-activated"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-dazzle-1.0.2/docs/GI-Dazzle-Objects-StackList.html#g:signal:rowActivated"})
#endif
getStackListModel :: (MonadIO m, IsStackList o) => o -> m Gio.ListModel.ListModel
getStackListModel :: forall (m :: * -> *) o.
(MonadIO m, IsStackList o) =>
o -> m ListModel
getStackListModel o
obj = IO ListModel -> m ListModel
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO ListModel -> m ListModel) -> IO ListModel -> m ListModel
forall a b. (a -> b) -> a -> b
$ Text -> IO (Maybe ListModel) -> IO ListModel
forall a. HasCallStack => Text -> IO (Maybe a) -> IO a
checkUnexpectedNothing Text
"getStackListModel" (IO (Maybe ListModel) -> IO ListModel)
-> IO (Maybe ListModel) -> IO ListModel
forall a b. (a -> b) -> a -> b
$ o
-> String
-> (ManagedPtr ListModel -> ListModel)
-> IO (Maybe ListModel)
forall a b.
(GObject a, GObject b) =>
a -> String -> (ManagedPtr b -> b) -> IO (Maybe b)
B.Properties.getObjectPropertyObject o
obj String
"model" ManagedPtr ListModel -> ListModel
Gio.ListModel.ListModel
#if defined(ENABLE_OVERLOADING)
data StackListModelPropertyInfo
instance AttrInfo StackListModelPropertyInfo where
type AttrAllowedOps StackListModelPropertyInfo = '[ 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint StackListModelPropertyInfo = IsStackList
type AttrSetTypeConstraint StackListModelPropertyInfo = (~) ()
type AttrTransferTypeConstraint StackListModelPropertyInfo = (~) ()
type AttrTransferType StackListModelPropertyInfo = ()
type AttrGetType StackListModelPropertyInfo = Gio.ListModel.ListModel
type AttrLabel StackListModelPropertyInfo = "model"
type AttrOrigin StackListModelPropertyInfo = StackList
attrGet = getStackListModel
attrSet = undefined
attrTransfer _ = undefined
attrConstruct = undefined
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Dazzle.Objects.StackList.model"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-dazzle-1.0.2/docs/GI-Dazzle-Objects-StackList.html#g:attr:model"
})
#endif
#if defined(ENABLE_OVERLOADING)
instance O.HasAttributeList StackList
type instance O.AttributeList StackList = StackListAttributeList
type StackListAttributeList = ('[ '("appPaintable", Gtk.Widget.WidgetAppPaintablePropertyInfo), '("borderWidth", Gtk.Container.ContainerBorderWidthPropertyInfo), '("canDefault", Gtk.Widget.WidgetCanDefaultPropertyInfo), '("canFocus", Gtk.Widget.WidgetCanFocusPropertyInfo), '("child", Gtk.Container.ContainerChildPropertyInfo), '("compositeChild", Gtk.Widget.WidgetCompositeChildPropertyInfo), '("doubleBuffered", Gtk.Widget.WidgetDoubleBufferedPropertyInfo), '("events", Gtk.Widget.WidgetEventsPropertyInfo), '("expand", Gtk.Widget.WidgetExpandPropertyInfo), '("focusOnClick", Gtk.Widget.WidgetFocusOnClickPropertyInfo), '("halign", Gtk.Widget.WidgetHalignPropertyInfo), '("hasDefault", Gtk.Widget.WidgetHasDefaultPropertyInfo), '("hasFocus", Gtk.Widget.WidgetHasFocusPropertyInfo), '("hasTooltip", Gtk.Widget.WidgetHasTooltipPropertyInfo), '("heightRequest", Gtk.Widget.WidgetHeightRequestPropertyInfo), '("hexpand", Gtk.Widget.WidgetHexpandPropertyInfo), '("hexpandSet", Gtk.Widget.WidgetHexpandSetPropertyInfo), '("isFocus", Gtk.Widget.WidgetIsFocusPropertyInfo), '("margin", Gtk.Widget.WidgetMarginPropertyInfo), '("marginBottom", Gtk.Widget.WidgetMarginBottomPropertyInfo), '("marginEnd", Gtk.Widget.WidgetMarginEndPropertyInfo), '("marginLeft", Gtk.Widget.WidgetMarginLeftPropertyInfo), '("marginRight", Gtk.Widget.WidgetMarginRightPropertyInfo), '("marginStart", Gtk.Widget.WidgetMarginStartPropertyInfo), '("marginTop", Gtk.Widget.WidgetMarginTopPropertyInfo), '("model", StackListModelPropertyInfo), '("name", Gtk.Widget.WidgetNamePropertyInfo), '("noShowAll", Gtk.Widget.WidgetNoShowAllPropertyInfo), '("opacity", Gtk.Widget.WidgetOpacityPropertyInfo), '("parent", Gtk.Widget.WidgetParentPropertyInfo), '("receivesDefault", Gtk.Widget.WidgetReceivesDefaultPropertyInfo), '("resizeMode", Gtk.Container.ContainerResizeModePropertyInfo), '("scaleFactor", Gtk.Widget.WidgetScaleFactorPropertyInfo), '("sensitive", Gtk.Widget.WidgetSensitivePropertyInfo), '("style", Gtk.Widget.WidgetStylePropertyInfo), '("tooltipMarkup", Gtk.Widget.WidgetTooltipMarkupPropertyInfo), '("tooltipText", Gtk.Widget.WidgetTooltipTextPropertyInfo), '("valign", Gtk.Widget.WidgetValignPropertyInfo), '("vexpand", Gtk.Widget.WidgetVexpandPropertyInfo), '("vexpandSet", Gtk.Widget.WidgetVexpandSetPropertyInfo), '("visible", Gtk.Widget.WidgetVisiblePropertyInfo), '("widthRequest", Gtk.Widget.WidgetWidthRequestPropertyInfo), '("window", Gtk.Widget.WidgetWindowPropertyInfo)] :: [(Symbol, DK.Type)])
#endif
#if defined(ENABLE_OVERLOADING)
stackListModel :: AttrLabelProxy "model"
stackListModel = AttrLabelProxy
#endif
#if defined(ENABLE_OVERLOADING)
type instance O.SignalList StackList = StackListSignalList
type StackListSignalList = ('[ '("accelClosuresChanged", Gtk.Widget.WidgetAccelClosuresChangedSignalInfo), '("add", Gtk.Container.ContainerAddSignalInfo), '("buttonPressEvent", Gtk.Widget.WidgetButtonPressEventSignalInfo), '("buttonReleaseEvent", Gtk.Widget.WidgetButtonReleaseEventSignalInfo), '("canActivateAccel", Gtk.Widget.WidgetCanActivateAccelSignalInfo), '("checkResize", Gtk.Container.ContainerCheckResizeSignalInfo), '("childNotify", Gtk.Widget.WidgetChildNotifySignalInfo), '("compositedChanged", Gtk.Widget.WidgetCompositedChangedSignalInfo), '("configureEvent", Gtk.Widget.WidgetConfigureEventSignalInfo), '("damageEvent", Gtk.Widget.WidgetDamageEventSignalInfo), '("deleteEvent", Gtk.Widget.WidgetDeleteEventSignalInfo), '("destroy", Gtk.Widget.WidgetDestroySignalInfo), '("destroyEvent", Gtk.Widget.WidgetDestroyEventSignalInfo), '("directionChanged", Gtk.Widget.WidgetDirectionChangedSignalInfo), '("dragBegin", Gtk.Widget.WidgetDragBeginSignalInfo), '("dragDataDelete", Gtk.Widget.WidgetDragDataDeleteSignalInfo), '("dragDataGet", Gtk.Widget.WidgetDragDataGetSignalInfo), '("dragDataReceived", Gtk.Widget.WidgetDragDataReceivedSignalInfo), '("dragDrop", Gtk.Widget.WidgetDragDropSignalInfo), '("dragEnd", Gtk.Widget.WidgetDragEndSignalInfo), '("dragFailed", Gtk.Widget.WidgetDragFailedSignalInfo), '("dragLeave", Gtk.Widget.WidgetDragLeaveSignalInfo), '("dragMotion", Gtk.Widget.WidgetDragMotionSignalInfo), '("draw", Gtk.Widget.WidgetDrawSignalInfo), '("enterNotifyEvent", Gtk.Widget.WidgetEnterNotifyEventSignalInfo), '("event", Gtk.Widget.WidgetEventSignalInfo), '("eventAfter", Gtk.Widget.WidgetEventAfterSignalInfo), '("focus", Gtk.Widget.WidgetFocusSignalInfo), '("focusInEvent", Gtk.Widget.WidgetFocusInEventSignalInfo), '("focusOutEvent", Gtk.Widget.WidgetFocusOutEventSignalInfo), '("grabBrokenEvent", Gtk.Widget.WidgetGrabBrokenEventSignalInfo), '("grabFocus", Gtk.Widget.WidgetGrabFocusSignalInfo), '("grabNotify", Gtk.Widget.WidgetGrabNotifySignalInfo), '("headerActivated", StackListHeaderActivatedSignalInfo), '("hide", Gtk.Widget.WidgetHideSignalInfo), '("hierarchyChanged", Gtk.Widget.WidgetHierarchyChangedSignalInfo), '("keyPressEvent", Gtk.Widget.WidgetKeyPressEventSignalInfo), '("keyReleaseEvent", Gtk.Widget.WidgetKeyReleaseEventSignalInfo), '("keynavFailed", Gtk.Widget.WidgetKeynavFailedSignalInfo), '("leaveNotifyEvent", Gtk.Widget.WidgetLeaveNotifyEventSignalInfo), '("map", Gtk.Widget.WidgetMapSignalInfo), '("mapEvent", Gtk.Widget.WidgetMapEventSignalInfo), '("mnemonicActivate", Gtk.Widget.WidgetMnemonicActivateSignalInfo), '("motionNotifyEvent", Gtk.Widget.WidgetMotionNotifyEventSignalInfo), '("moveFocus", Gtk.Widget.WidgetMoveFocusSignalInfo), '("notify", GObject.Object.ObjectNotifySignalInfo), '("parentSet", Gtk.Widget.WidgetParentSetSignalInfo), '("popupMenu", Gtk.Widget.WidgetPopupMenuSignalInfo), '("propertyNotifyEvent", Gtk.Widget.WidgetPropertyNotifyEventSignalInfo), '("proximityInEvent", Gtk.Widget.WidgetProximityInEventSignalInfo), '("proximityOutEvent", Gtk.Widget.WidgetProximityOutEventSignalInfo), '("queryTooltip", Gtk.Widget.WidgetQueryTooltipSignalInfo), '("realize", Gtk.Widget.WidgetRealizeSignalInfo), '("remove", Gtk.Container.ContainerRemoveSignalInfo), '("rowActivated", StackListRowActivatedSignalInfo), '("screenChanged", Gtk.Widget.WidgetScreenChangedSignalInfo), '("scrollEvent", Gtk.Widget.WidgetScrollEventSignalInfo), '("selectionClearEvent", Gtk.Widget.WidgetSelectionClearEventSignalInfo), '("selectionGet", Gtk.Widget.WidgetSelectionGetSignalInfo), '("selectionNotifyEvent", Gtk.Widget.WidgetSelectionNotifyEventSignalInfo), '("selectionReceived", Gtk.Widget.WidgetSelectionReceivedSignalInfo), '("selectionRequestEvent", Gtk.Widget.WidgetSelectionRequestEventSignalInfo), '("setFocusChild", Gtk.Container.ContainerSetFocusChildSignalInfo), '("show", Gtk.Widget.WidgetShowSignalInfo), '("showHelp", Gtk.Widget.WidgetShowHelpSignalInfo), '("sizeAllocate", Gtk.Widget.WidgetSizeAllocateSignalInfo), '("stateChanged", Gtk.Widget.WidgetStateChangedSignalInfo), '("stateFlagsChanged", Gtk.Widget.WidgetStateFlagsChangedSignalInfo), '("styleSet", Gtk.Widget.WidgetStyleSetSignalInfo), '("styleUpdated", Gtk.Widget.WidgetStyleUpdatedSignalInfo), '("touchEvent", Gtk.Widget.WidgetTouchEventSignalInfo), '("unmap", Gtk.Widget.WidgetUnmapSignalInfo), '("unmapEvent", Gtk.Widget.WidgetUnmapEventSignalInfo), '("unrealize", Gtk.Widget.WidgetUnrealizeSignalInfo), '("visibilityNotifyEvent", Gtk.Widget.WidgetVisibilityNotifyEventSignalInfo), '("windowStateEvent", Gtk.Widget.WidgetWindowStateEventSignalInfo)] :: [(Symbol, DK.Type)])
#endif
foreign import ccall "dzl_stack_list_new" dzl_stack_list_new ::
IO (Ptr StackList)
stackListNew ::
(B.CallStack.HasCallStack, MonadIO m) =>
m StackList
stackListNew :: forall (m :: * -> *). (HasCallStack, MonadIO m) => m StackList
stackListNew = IO StackList -> m StackList
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO StackList -> m StackList) -> IO StackList -> m StackList
forall a b. (a -> b) -> a -> b
$ do
Ptr StackList
result <- IO (Ptr StackList)
dzl_stack_list_new
Text -> Ptr StackList -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"stackListNew" Ptr StackList
result
StackList
result' <- ((ManagedPtr StackList -> StackList)
-> Ptr StackList -> IO StackList
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr StackList -> StackList
StackList) Ptr StackList
result
StackList -> IO StackList
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return StackList
result'
#if defined(ENABLE_OVERLOADING)
#endif
foreign import ccall "dzl_stack_list_clear" dzl_stack_list_clear ::
Ptr StackList ->
IO ()
stackListClear ::
(B.CallStack.HasCallStack, MonadIO m, IsStackList a) =>
a
-> m ()
stackListClear :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsStackList a) =>
a -> m ()
stackListClear a
self = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr StackList
self' <- a -> IO (Ptr StackList)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
Ptr StackList -> IO ()
dzl_stack_list_clear Ptr StackList
self'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data StackListClearMethodInfo
instance (signature ~ (m ()), MonadIO m, IsStackList a) => O.OverloadedMethod StackListClearMethodInfo a signature where
overloadedMethod = stackListClear
instance O.OverloadedMethodInfo StackListClearMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Dazzle.Objects.StackList.stackListClear",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-dazzle-1.0.2/docs/GI-Dazzle-Objects-StackList.html#v:stackListClear"
})
#endif
foreign import ccall "dzl_stack_list_get_depth" dzl_stack_list_get_depth ::
Ptr StackList ->
IO Word32
stackListGetDepth ::
(B.CallStack.HasCallStack, MonadIO m, IsStackList a) =>
a
-> m Word32
stackListGetDepth :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsStackList a) =>
a -> m Word32
stackListGetDepth a
self = IO Word32 -> m Word32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Word32 -> m Word32) -> IO Word32 -> m Word32
forall a b. (a -> b) -> a -> b
$ do
Ptr StackList
self' <- a -> IO (Ptr StackList)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
Word32
result <- Ptr StackList -> IO Word32
dzl_stack_list_get_depth Ptr StackList
self'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
Word32 -> IO Word32
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Word32
result
#if defined(ENABLE_OVERLOADING)
data StackListGetDepthMethodInfo
instance (signature ~ (m Word32), MonadIO m, IsStackList a) => O.OverloadedMethod StackListGetDepthMethodInfo a signature where
overloadedMethod = stackListGetDepth
instance O.OverloadedMethodInfo StackListGetDepthMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Dazzle.Objects.StackList.stackListGetDepth",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-dazzle-1.0.2/docs/GI-Dazzle-Objects-StackList.html#v:stackListGetDepth"
})
#endif
foreign import ccall "dzl_stack_list_get_model" dzl_stack_list_get_model ::
Ptr StackList ->
IO (Ptr Gio.ListModel.ListModel)
stackListGetModel ::
(B.CallStack.HasCallStack, MonadIO m, IsStackList a) =>
a
-> m Gio.ListModel.ListModel
stackListGetModel :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsStackList a) =>
a -> m ListModel
stackListGetModel a
self = IO ListModel -> m ListModel
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO ListModel -> m ListModel) -> IO ListModel -> m ListModel
forall a b. (a -> b) -> a -> b
$ do
Ptr StackList
self' <- a -> IO (Ptr StackList)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
Ptr ListModel
result <- Ptr StackList -> IO (Ptr ListModel)
dzl_stack_list_get_model Ptr StackList
self'
Text -> Ptr ListModel -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"stackListGetModel" Ptr ListModel
result
ListModel
result' <- ((ManagedPtr ListModel -> ListModel)
-> Ptr ListModel -> IO ListModel
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr ListModel -> ListModel
Gio.ListModel.ListModel) Ptr ListModel
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
ListModel -> IO ListModel
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ListModel
result'
#if defined(ENABLE_OVERLOADING)
data StackListGetModelMethodInfo
instance (signature ~ (m Gio.ListModel.ListModel), MonadIO m, IsStackList a) => O.OverloadedMethod StackListGetModelMethodInfo a signature where
overloadedMethod = stackListGetModel
instance O.OverloadedMethodInfo StackListGetModelMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Dazzle.Objects.StackList.stackListGetModel",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-dazzle-1.0.2/docs/GI-Dazzle-Objects-StackList.html#v:stackListGetModel"
})
#endif
foreign import ccall "dzl_stack_list_pop" dzl_stack_list_pop ::
Ptr StackList ->
IO ()
stackListPop ::
(B.CallStack.HasCallStack, MonadIO m, IsStackList a) =>
a
-> m ()
stackListPop :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsStackList a) =>
a -> m ()
stackListPop a
self = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr StackList
self' <- a -> IO (Ptr StackList)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
Ptr StackList -> IO ()
dzl_stack_list_pop Ptr StackList
self'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data StackListPopMethodInfo
instance (signature ~ (m ()), MonadIO m, IsStackList a) => O.OverloadedMethod StackListPopMethodInfo a signature where
overloadedMethod = stackListPop
instance O.OverloadedMethodInfo StackListPopMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Dazzle.Objects.StackList.stackListPop",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-dazzle-1.0.2/docs/GI-Dazzle-Objects-StackList.html#v:stackListPop"
})
#endif
foreign import ccall "dzl_stack_list_push" dzl_stack_list_push ::
Ptr StackList ->
Ptr Gtk.Widget.Widget ->
Ptr Gio.ListModel.ListModel ->
FunPtr Dazzle.Callbacks.C_StackListCreateWidgetFunc ->
Ptr () ->
FunPtr GLib.Callbacks.C_DestroyNotify ->
IO ()
stackListPush ::
(B.CallStack.HasCallStack, MonadIO m, IsStackList a, Gtk.Widget.IsWidget b, Gio.ListModel.IsListModel c) =>
a
-> b
-> c
-> Dazzle.Callbacks.StackListCreateWidgetFunc
-> m ()
stackListPush :: forall (m :: * -> *) a b c.
(HasCallStack, MonadIO m, IsStackList a, IsWidget b,
IsListModel c) =>
a -> b -> c -> StackListCreateWidgetFunc -> m ()
stackListPush a
self b
header c
model StackListCreateWidgetFunc
createWidgetFunc = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr StackList
self' <- a -> IO (Ptr StackList)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
Ptr Widget
header' <- b -> IO (Ptr Widget)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr b
header
Ptr ListModel
model' <- c -> IO (Ptr ListModel)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr c
model
FunPtr C_StackListCreateWidgetFunc
createWidgetFunc' <- C_StackListCreateWidgetFunc
-> IO (FunPtr C_StackListCreateWidgetFunc)
Dazzle.Callbacks.mk_StackListCreateWidgetFunc (Maybe (Ptr (FunPtr C_StackListCreateWidgetFunc))
-> StackListCreateWidgetFunc_WithClosures
-> C_StackListCreateWidgetFunc
Dazzle.Callbacks.wrap_StackListCreateWidgetFunc Maybe (Ptr (FunPtr C_StackListCreateWidgetFunc))
forall a. Maybe a
Nothing (StackListCreateWidgetFunc -> StackListCreateWidgetFunc_WithClosures
Dazzle.Callbacks.drop_closures_StackListCreateWidgetFunc StackListCreateWidgetFunc
createWidgetFunc))
let userData :: Ptr ()
userData = FunPtr C_StackListCreateWidgetFunc -> Ptr ()
forall a b. FunPtr a -> Ptr b
castFunPtrToPtr FunPtr C_StackListCreateWidgetFunc
createWidgetFunc'
let userDataFreeFunc :: FunPtr (Ptr a -> IO ())
userDataFreeFunc = FunPtr (Ptr a -> IO ())
forall a. FunPtr (Ptr a -> IO ())
SP.safeFreeFunPtrPtr
Ptr StackList
-> Ptr Widget
-> Ptr ListModel
-> FunPtr C_StackListCreateWidgetFunc
-> Ptr ()
-> FunPtr C_DestroyNotify
-> IO ()
dzl_stack_list_push Ptr StackList
self' Ptr Widget
header' Ptr ListModel
model' FunPtr C_StackListCreateWidgetFunc
createWidgetFunc' Ptr ()
userData FunPtr C_DestroyNotify
forall a. FunPtr (Ptr a -> IO ())
userDataFreeFunc
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
b -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr b
header
c -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr c
model
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data StackListPushMethodInfo
instance (signature ~ (b -> c -> Dazzle.Callbacks.StackListCreateWidgetFunc -> m ()), MonadIO m, IsStackList a, Gtk.Widget.IsWidget b, Gio.ListModel.IsListModel c) => O.OverloadedMethod StackListPushMethodInfo a signature where
overloadedMethod = stackListPush
instance O.OverloadedMethodInfo StackListPushMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Dazzle.Objects.StackList.stackListPush",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-dazzle-1.0.2/docs/GI-Dazzle-Objects-StackList.html#v:stackListPush"
})
#endif