{-# LANGUAGE ImplicitParams, RankNTypes, TypeApplications #-}
#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.Gtk.Objects.InfoBar
(
InfoBar(..) ,
IsInfoBar ,
toInfoBar ,
#if defined(ENABLE_OVERLOADING)
ResolveInfoBarMethod ,
#endif
#if defined(ENABLE_OVERLOADING)
InfoBarAddActionWidgetMethodInfo ,
#endif
infoBarAddActionWidget ,
#if defined(ENABLE_OVERLOADING)
InfoBarAddButtonMethodInfo ,
#endif
infoBarAddButton ,
#if defined(ENABLE_OVERLOADING)
InfoBarAddChildMethodInfo ,
#endif
infoBarAddChild ,
#if defined(ENABLE_OVERLOADING)
InfoBarGetMessageTypeMethodInfo ,
#endif
infoBarGetMessageType ,
#if defined(ENABLE_OVERLOADING)
InfoBarGetRevealedMethodInfo ,
#endif
infoBarGetRevealed ,
#if defined(ENABLE_OVERLOADING)
InfoBarGetShowCloseButtonMethodInfo ,
#endif
infoBarGetShowCloseButton ,
infoBarNew ,
#if defined(ENABLE_OVERLOADING)
InfoBarRemoveActionWidgetMethodInfo ,
#endif
infoBarRemoveActionWidget ,
#if defined(ENABLE_OVERLOADING)
InfoBarRemoveChildMethodInfo ,
#endif
infoBarRemoveChild ,
#if defined(ENABLE_OVERLOADING)
InfoBarResponseMethodInfo ,
#endif
infoBarResponse ,
#if defined(ENABLE_OVERLOADING)
InfoBarSetDefaultResponseMethodInfo ,
#endif
infoBarSetDefaultResponse ,
#if defined(ENABLE_OVERLOADING)
InfoBarSetMessageTypeMethodInfo ,
#endif
infoBarSetMessageType ,
#if defined(ENABLE_OVERLOADING)
InfoBarSetResponseSensitiveMethodInfo ,
#endif
infoBarSetResponseSensitive ,
#if defined(ENABLE_OVERLOADING)
InfoBarSetRevealedMethodInfo ,
#endif
infoBarSetRevealed ,
#if defined(ENABLE_OVERLOADING)
InfoBarSetShowCloseButtonMethodInfo ,
#endif
infoBarSetShowCloseButton ,
#if defined(ENABLE_OVERLOADING)
InfoBarMessageTypePropertyInfo ,
#endif
constructInfoBarMessageType ,
getInfoBarMessageType ,
#if defined(ENABLE_OVERLOADING)
infoBarMessageType ,
#endif
setInfoBarMessageType ,
#if defined(ENABLE_OVERLOADING)
InfoBarRevealedPropertyInfo ,
#endif
constructInfoBarRevealed ,
getInfoBarRevealed ,
#if defined(ENABLE_OVERLOADING)
infoBarRevealed ,
#endif
setInfoBarRevealed ,
#if defined(ENABLE_OVERLOADING)
InfoBarShowCloseButtonPropertyInfo ,
#endif
constructInfoBarShowCloseButton ,
getInfoBarShowCloseButton ,
#if defined(ENABLE_OVERLOADING)
infoBarShowCloseButton ,
#endif
setInfoBarShowCloseButton ,
InfoBarCloseCallback ,
#if defined(ENABLE_OVERLOADING)
InfoBarCloseSignalInfo ,
#endif
afterInfoBarClose ,
onInfoBarClose ,
InfoBarResponseCallback ,
#if defined(ENABLE_OVERLOADING)
InfoBarResponseSignalInfo ,
#endif
afterInfoBarResponse ,
onInfoBarResponse ,
) 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.Cairo.Structs.Context as Cairo.Context
import qualified GI.Cairo.Structs.FontOptions as Cairo.FontOptions
import qualified GI.GLib.Callbacks as GLib.Callbacks
import qualified GI.GLib.Structs.Bytes as GLib.Bytes
import qualified GI.GObject.Objects.Object as GObject.Object
import qualified GI.Gdk.Flags as Gdk.Flags
import qualified GI.Gdk.Interfaces.Paintable as Gdk.Paintable
import qualified GI.Gdk.Objects.Clipboard as Gdk.Clipboard
import qualified GI.Gdk.Objects.Cursor as Gdk.Cursor
import qualified GI.Gdk.Objects.Device as Gdk.Device
import qualified GI.Gdk.Objects.Display as Gdk.Display
import qualified GI.Gdk.Objects.Event as Gdk.Event
import qualified GI.Gdk.Objects.FrameClock as Gdk.FrameClock
import qualified GI.Gdk.Objects.Snapshot as Gdk.Snapshot
import qualified GI.Gdk.Objects.Surface as Gdk.Surface
import qualified GI.Gdk.Objects.Texture as Gdk.Texture
import qualified GI.Gdk.Structs.RGBA as Gdk.RGBA
import qualified GI.Gdk.Structs.Rectangle as Gdk.Rectangle
import qualified GI.Gio.Interfaces.ActionGroup as Gio.ActionGroup
import qualified GI.Gio.Interfaces.Icon as Gio.Icon
import qualified GI.Gio.Interfaces.ListModel as Gio.ListModel
import qualified GI.Graphene.Structs.Matrix as Graphene.Matrix
import qualified GI.Graphene.Structs.Point as Graphene.Point
import qualified GI.Graphene.Structs.Point3D as Graphene.Point3D
import qualified GI.Graphene.Structs.Rect as Graphene.Rect
import qualified GI.Graphene.Structs.Size as Graphene.Size
import qualified GI.Graphene.Structs.Vec3 as Graphene.Vec3
import qualified GI.Graphene.Structs.Vec4 as Graphene.Vec4
import qualified GI.Gsk.Enums as Gsk.Enums
import qualified GI.Gsk.Objects.GLShader as Gsk.GLShader
import qualified GI.Gsk.Objects.RenderNode as Gsk.RenderNode
import qualified GI.Gsk.Objects.Renderer as Gsk.Renderer
import qualified GI.Gsk.Structs.ColorStop as Gsk.ColorStop
import qualified GI.Gsk.Structs.Path as Gsk.Path
import qualified GI.Gsk.Structs.RoundedRect as Gsk.RoundedRect
import qualified GI.Gsk.Structs.Shadow as Gsk.Shadow
import qualified GI.Gsk.Structs.Stroke as Gsk.Stroke
import qualified GI.Gsk.Structs.Transform as Gsk.Transform
import qualified GI.Gtk.Callbacks as Gtk.Callbacks
import {-# SOURCE #-} qualified GI.Gtk.Enums as Gtk.Enums
import {-# SOURCE #-} qualified GI.Gtk.Flags as Gtk.Flags
import {-# SOURCE #-} qualified GI.Gtk.Interfaces.Accessible as Gtk.Accessible
import {-# SOURCE #-} qualified GI.Gtk.Interfaces.Actionable as Gtk.Actionable
import {-# SOURCE #-} qualified GI.Gtk.Interfaces.Buildable as Gtk.Buildable
import {-# SOURCE #-} qualified GI.Gtk.Interfaces.ConstraintTarget as Gtk.ConstraintTarget
import {-# SOURCE #-} qualified GI.Gtk.Interfaces.Native as Gtk.Native
import {-# SOURCE #-} qualified GI.Gtk.Interfaces.Root as Gtk.Root
import {-# SOURCE #-} qualified GI.Gtk.Interfaces.StyleProvider as Gtk.StyleProvider
import {-# SOURCE #-} qualified GI.Gtk.Objects.ATContext as Gtk.ATContext
import {-# SOURCE #-} qualified GI.Gtk.Objects.Button as Gtk.Button
import {-# SOURCE #-} qualified GI.Gtk.Objects.EventController as Gtk.EventController
import {-# SOURCE #-} qualified GI.Gtk.Objects.LayoutChild as Gtk.LayoutChild
import {-# SOURCE #-} qualified GI.Gtk.Objects.LayoutManager as Gtk.LayoutManager
import {-# SOURCE #-} qualified GI.Gtk.Objects.Settings as Gtk.Settings
import {-# SOURCE #-} qualified GI.Gtk.Objects.Snapshot as Gtk.Snapshot
import {-# SOURCE #-} qualified GI.Gtk.Objects.StyleContext as Gtk.StyleContext
import {-# SOURCE #-} qualified GI.Gtk.Objects.Tooltip as Gtk.Tooltip
import {-# SOURCE #-} qualified GI.Gtk.Objects.Widget as Gtk.Widget
import {-# SOURCE #-} qualified GI.Gtk.Structs.Border as Gtk.Border
import {-# SOURCE #-} qualified GI.Gtk.Structs.Requisition as Gtk.Requisition
import qualified GI.Pango.Enums as Pango.Enums
import qualified GI.Pango.Objects.Context as Pango.Context
import qualified GI.Pango.Objects.FontMap as Pango.FontMap
import qualified GI.Pango.Objects.Layout as Pango.Layout
#else
import qualified GI.GObject.Objects.Object as GObject.Object
import {-# SOURCE #-} qualified GI.Gtk.Enums as Gtk.Enums
import {-# SOURCE #-} qualified GI.Gtk.Interfaces.Accessible as Gtk.Accessible
import {-# SOURCE #-} qualified GI.Gtk.Interfaces.Buildable as Gtk.Buildable
import {-# SOURCE #-} qualified GI.Gtk.Interfaces.ConstraintTarget as Gtk.ConstraintTarget
import {-# SOURCE #-} qualified GI.Gtk.Objects.Button as Gtk.Button
import {-# SOURCE #-} qualified GI.Gtk.Objects.Widget as Gtk.Widget
#endif
newtype InfoBar = InfoBar (SP.ManagedPtr InfoBar)
deriving (InfoBar -> InfoBar -> Bool
(InfoBar -> InfoBar -> Bool)
-> (InfoBar -> InfoBar -> Bool) -> Eq InfoBar
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: InfoBar -> InfoBar -> Bool
== :: InfoBar -> InfoBar -> Bool
$c/= :: InfoBar -> InfoBar -> Bool
/= :: InfoBar -> InfoBar -> Bool
Eq)
instance SP.ManagedPtrNewtype InfoBar where
toManagedPtr :: InfoBar -> ManagedPtr InfoBar
toManagedPtr (InfoBar ManagedPtr InfoBar
p) = ManagedPtr InfoBar
p
foreign import ccall "gtk_info_bar_get_type"
c_gtk_info_bar_get_type :: IO B.Types.GType
instance B.Types.TypedObject InfoBar where
glibType :: IO GType
glibType = IO GType
c_gtk_info_bar_get_type
instance B.Types.GObject InfoBar
class (SP.GObject o, O.IsDescendantOf InfoBar o) => IsInfoBar o
instance (SP.GObject o, O.IsDescendantOf InfoBar o) => IsInfoBar o
instance O.HasParentTypes InfoBar
type instance O.ParentTypes InfoBar = '[Gtk.Widget.Widget, GObject.Object.Object, Gtk.Accessible.Accessible, Gtk.Buildable.Buildable, Gtk.ConstraintTarget.ConstraintTarget]
toInfoBar :: (MIO.MonadIO m, IsInfoBar o) => o -> m InfoBar
toInfoBar :: forall (m :: * -> *) o. (MonadIO m, IsInfoBar o) => o -> m InfoBar
toInfoBar = IO InfoBar -> m InfoBar
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO InfoBar -> m InfoBar) -> (o -> IO InfoBar) -> o -> m InfoBar
forall b c a. (b -> c) -> (a -> b) -> a -> c
. (ManagedPtr InfoBar -> InfoBar) -> o -> IO InfoBar
forall o o'.
(HasCallStack, ManagedPtrNewtype o, TypedObject o,
ManagedPtrNewtype o', TypedObject o') =>
(ManagedPtr o' -> o') -> o -> IO o'
B.ManagedPtr.unsafeCastTo ManagedPtr InfoBar -> InfoBar
InfoBar
instance B.GValue.IsGValue (Maybe InfoBar) where
gvalueGType_ :: IO GType
gvalueGType_ = IO GType
c_gtk_info_bar_get_type
gvalueSet_ :: Ptr GValue -> Maybe InfoBar -> IO ()
gvalueSet_ Ptr GValue
gv Maybe InfoBar
P.Nothing = Ptr GValue -> Ptr InfoBar -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv (Ptr InfoBar
forall a. Ptr a
FP.nullPtr :: FP.Ptr InfoBar)
gvalueSet_ Ptr GValue
gv (P.Just InfoBar
obj) = InfoBar -> (Ptr InfoBar -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
B.ManagedPtr.withManagedPtr InfoBar
obj (Ptr GValue -> Ptr InfoBar -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv)
gvalueGet_ :: Ptr GValue -> IO (Maybe InfoBar)
gvalueGet_ Ptr GValue
gv = do
ptr <- Ptr GValue -> IO (Ptr InfoBar)
forall a. GObject a => Ptr GValue -> IO (Ptr a)
B.GValue.get_object Ptr GValue
gv :: IO (FP.Ptr InfoBar)
if ptr /= FP.nullPtr
then P.Just <$> B.ManagedPtr.newObject InfoBar ptr
else return P.Nothing
#if defined(ENABLE_OVERLOADING)
type family ResolveInfoBarMethod (t :: Symbol) (o :: DK.Type) :: DK.Type where
ResolveInfoBarMethod "actionSetEnabled" o = Gtk.Widget.WidgetActionSetEnabledMethodInfo
ResolveInfoBarMethod "activate" o = Gtk.Widget.WidgetActivateMethodInfo
ResolveInfoBarMethod "activateAction" o = Gtk.Widget.WidgetActivateActionMethodInfo
ResolveInfoBarMethod "activateDefault" o = Gtk.Widget.WidgetActivateDefaultMethodInfo
ResolveInfoBarMethod "addActionWidget" o = InfoBarAddActionWidgetMethodInfo
ResolveInfoBarMethod "addButton" o = InfoBarAddButtonMethodInfo
ResolveInfoBarMethod "addChild" o = InfoBarAddChildMethodInfo
ResolveInfoBarMethod "addController" o = Gtk.Widget.WidgetAddControllerMethodInfo
ResolveInfoBarMethod "addCssClass" o = Gtk.Widget.WidgetAddCssClassMethodInfo
ResolveInfoBarMethod "addMnemonicLabel" o = Gtk.Widget.WidgetAddMnemonicLabelMethodInfo
ResolveInfoBarMethod "addTickCallback" o = Gtk.Widget.WidgetAddTickCallbackMethodInfo
ResolveInfoBarMethod "allocate" o = Gtk.Widget.WidgetAllocateMethodInfo
ResolveInfoBarMethod "announce" o = Gtk.Accessible.AccessibleAnnounceMethodInfo
ResolveInfoBarMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolveInfoBarMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolveInfoBarMethod "childFocus" o = Gtk.Widget.WidgetChildFocusMethodInfo
ResolveInfoBarMethod "computeBounds" o = Gtk.Widget.WidgetComputeBoundsMethodInfo
ResolveInfoBarMethod "computeExpand" o = Gtk.Widget.WidgetComputeExpandMethodInfo
ResolveInfoBarMethod "computePoint" o = Gtk.Widget.WidgetComputePointMethodInfo
ResolveInfoBarMethod "computeTransform" o = Gtk.Widget.WidgetComputeTransformMethodInfo
ResolveInfoBarMethod "contains" o = Gtk.Widget.WidgetContainsMethodInfo
ResolveInfoBarMethod "createPangoContext" o = Gtk.Widget.WidgetCreatePangoContextMethodInfo
ResolveInfoBarMethod "createPangoLayout" o = Gtk.Widget.WidgetCreatePangoLayoutMethodInfo
ResolveInfoBarMethod "disposeTemplate" o = Gtk.Widget.WidgetDisposeTemplateMethodInfo
ResolveInfoBarMethod "dragCheckThreshold" o = Gtk.Widget.WidgetDragCheckThresholdMethodInfo
ResolveInfoBarMethod "errorBell" o = Gtk.Widget.WidgetErrorBellMethodInfo
ResolveInfoBarMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolveInfoBarMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolveInfoBarMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
ResolveInfoBarMethod "grabFocus" o = Gtk.Widget.WidgetGrabFocusMethodInfo
ResolveInfoBarMethod "hasCssClass" o = Gtk.Widget.WidgetHasCssClassMethodInfo
ResolveInfoBarMethod "hasDefault" o = Gtk.Widget.WidgetHasDefaultMethodInfo
ResolveInfoBarMethod "hasFocus" o = Gtk.Widget.WidgetHasFocusMethodInfo
ResolveInfoBarMethod "hasVisibleFocus" o = Gtk.Widget.WidgetHasVisibleFocusMethodInfo
ResolveInfoBarMethod "hide" o = Gtk.Widget.WidgetHideMethodInfo
ResolveInfoBarMethod "inDestruction" o = Gtk.Widget.WidgetInDestructionMethodInfo
ResolveInfoBarMethod "initTemplate" o = Gtk.Widget.WidgetInitTemplateMethodInfo
ResolveInfoBarMethod "insertActionGroup" o = Gtk.Widget.WidgetInsertActionGroupMethodInfo
ResolveInfoBarMethod "insertAfter" o = Gtk.Widget.WidgetInsertAfterMethodInfo
ResolveInfoBarMethod "insertBefore" o = Gtk.Widget.WidgetInsertBeforeMethodInfo
ResolveInfoBarMethod "isAncestor" o = Gtk.Widget.WidgetIsAncestorMethodInfo
ResolveInfoBarMethod "isDrawable" o = Gtk.Widget.WidgetIsDrawableMethodInfo
ResolveInfoBarMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolveInfoBarMethod "isFocus" o = Gtk.Widget.WidgetIsFocusMethodInfo
ResolveInfoBarMethod "isSensitive" o = Gtk.Widget.WidgetIsSensitiveMethodInfo
ResolveInfoBarMethod "isVisible" o = Gtk.Widget.WidgetIsVisibleMethodInfo
ResolveInfoBarMethod "keynavFailed" o = Gtk.Widget.WidgetKeynavFailedMethodInfo
ResolveInfoBarMethod "listMnemonicLabels" o = Gtk.Widget.WidgetListMnemonicLabelsMethodInfo
ResolveInfoBarMethod "map" o = Gtk.Widget.WidgetMapMethodInfo
ResolveInfoBarMethod "measure" o = Gtk.Widget.WidgetMeasureMethodInfo
ResolveInfoBarMethod "mnemonicActivate" o = Gtk.Widget.WidgetMnemonicActivateMethodInfo
ResolveInfoBarMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolveInfoBarMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolveInfoBarMethod "observeChildren" o = Gtk.Widget.WidgetObserveChildrenMethodInfo
ResolveInfoBarMethod "observeControllers" o = Gtk.Widget.WidgetObserveControllersMethodInfo
ResolveInfoBarMethod "pick" o = Gtk.Widget.WidgetPickMethodInfo
ResolveInfoBarMethod "queueAllocate" o = Gtk.Widget.WidgetQueueAllocateMethodInfo
ResolveInfoBarMethod "queueDraw" o = Gtk.Widget.WidgetQueueDrawMethodInfo
ResolveInfoBarMethod "queueResize" o = Gtk.Widget.WidgetQueueResizeMethodInfo
ResolveInfoBarMethod "realize" o = Gtk.Widget.WidgetRealizeMethodInfo
ResolveInfoBarMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolveInfoBarMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolveInfoBarMethod "removeActionWidget" o = InfoBarRemoveActionWidgetMethodInfo
ResolveInfoBarMethod "removeChild" o = InfoBarRemoveChildMethodInfo
ResolveInfoBarMethod "removeController" o = Gtk.Widget.WidgetRemoveControllerMethodInfo
ResolveInfoBarMethod "removeCssClass" o = Gtk.Widget.WidgetRemoveCssClassMethodInfo
ResolveInfoBarMethod "removeMnemonicLabel" o = Gtk.Widget.WidgetRemoveMnemonicLabelMethodInfo
ResolveInfoBarMethod "removeTickCallback" o = Gtk.Widget.WidgetRemoveTickCallbackMethodInfo
ResolveInfoBarMethod "resetProperty" o = Gtk.Accessible.AccessibleResetPropertyMethodInfo
ResolveInfoBarMethod "resetRelation" o = Gtk.Accessible.AccessibleResetRelationMethodInfo
ResolveInfoBarMethod "resetState" o = Gtk.Accessible.AccessibleResetStateMethodInfo
ResolveInfoBarMethod "response" o = InfoBarResponseMethodInfo
ResolveInfoBarMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolveInfoBarMethod "shouldLayout" o = Gtk.Widget.WidgetShouldLayoutMethodInfo
ResolveInfoBarMethod "show" o = Gtk.Widget.WidgetShowMethodInfo
ResolveInfoBarMethod "sizeAllocate" o = Gtk.Widget.WidgetSizeAllocateMethodInfo
ResolveInfoBarMethod "snapshotChild" o = Gtk.Widget.WidgetSnapshotChildMethodInfo
ResolveInfoBarMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolveInfoBarMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolveInfoBarMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolveInfoBarMethod "translateCoordinates" o = Gtk.Widget.WidgetTranslateCoordinatesMethodInfo
ResolveInfoBarMethod "triggerTooltipQuery" o = Gtk.Widget.WidgetTriggerTooltipQueryMethodInfo
ResolveInfoBarMethod "unmap" o = Gtk.Widget.WidgetUnmapMethodInfo
ResolveInfoBarMethod "unparent" o = Gtk.Widget.WidgetUnparentMethodInfo
ResolveInfoBarMethod "unrealize" o = Gtk.Widget.WidgetUnrealizeMethodInfo
ResolveInfoBarMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolveInfoBarMethod "unsetStateFlags" o = Gtk.Widget.WidgetUnsetStateFlagsMethodInfo
ResolveInfoBarMethod "updateNextAccessibleSibling" o = Gtk.Accessible.AccessibleUpdateNextAccessibleSiblingMethodInfo
ResolveInfoBarMethod "updatePlatformState" o = Gtk.Accessible.AccessibleUpdatePlatformStateMethodInfo
ResolveInfoBarMethod "updateProperty" o = Gtk.Accessible.AccessibleUpdatePropertyMethodInfo
ResolveInfoBarMethod "updateRelation" o = Gtk.Accessible.AccessibleUpdateRelationMethodInfo
ResolveInfoBarMethod "updateState" o = Gtk.Accessible.AccessibleUpdateStateMethodInfo
ResolveInfoBarMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolveInfoBarMethod "getAccessibleParent" o = Gtk.Accessible.AccessibleGetAccessibleParentMethodInfo
ResolveInfoBarMethod "getAccessibleRole" o = Gtk.Accessible.AccessibleGetAccessibleRoleMethodInfo
ResolveInfoBarMethod "getAllocatedBaseline" o = Gtk.Widget.WidgetGetAllocatedBaselineMethodInfo
ResolveInfoBarMethod "getAllocatedHeight" o = Gtk.Widget.WidgetGetAllocatedHeightMethodInfo
ResolveInfoBarMethod "getAllocatedWidth" o = Gtk.Widget.WidgetGetAllocatedWidthMethodInfo
ResolveInfoBarMethod "getAllocation" o = Gtk.Widget.WidgetGetAllocationMethodInfo
ResolveInfoBarMethod "getAncestor" o = Gtk.Widget.WidgetGetAncestorMethodInfo
ResolveInfoBarMethod "getAtContext" o = Gtk.Accessible.AccessibleGetAtContextMethodInfo
ResolveInfoBarMethod "getBaseline" o = Gtk.Widget.WidgetGetBaselineMethodInfo
ResolveInfoBarMethod "getBounds" o = Gtk.Accessible.AccessibleGetBoundsMethodInfo
ResolveInfoBarMethod "getBuildableId" o = Gtk.Buildable.BuildableGetBuildableIdMethodInfo
ResolveInfoBarMethod "getCanFocus" o = Gtk.Widget.WidgetGetCanFocusMethodInfo
ResolveInfoBarMethod "getCanTarget" o = Gtk.Widget.WidgetGetCanTargetMethodInfo
ResolveInfoBarMethod "getChildVisible" o = Gtk.Widget.WidgetGetChildVisibleMethodInfo
ResolveInfoBarMethod "getClipboard" o = Gtk.Widget.WidgetGetClipboardMethodInfo
ResolveInfoBarMethod "getColor" o = Gtk.Widget.WidgetGetColorMethodInfo
ResolveInfoBarMethod "getCssClasses" o = Gtk.Widget.WidgetGetCssClassesMethodInfo
ResolveInfoBarMethod "getCssName" o = Gtk.Widget.WidgetGetCssNameMethodInfo
ResolveInfoBarMethod "getCursor" o = Gtk.Widget.WidgetGetCursorMethodInfo
ResolveInfoBarMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolveInfoBarMethod "getDirection" o = Gtk.Widget.WidgetGetDirectionMethodInfo
ResolveInfoBarMethod "getDisplay" o = Gtk.Widget.WidgetGetDisplayMethodInfo
ResolveInfoBarMethod "getFirstAccessibleChild" o = Gtk.Accessible.AccessibleGetFirstAccessibleChildMethodInfo
ResolveInfoBarMethod "getFirstChild" o = Gtk.Widget.WidgetGetFirstChildMethodInfo
ResolveInfoBarMethod "getFocusChild" o = Gtk.Widget.WidgetGetFocusChildMethodInfo
ResolveInfoBarMethod "getFocusOnClick" o = Gtk.Widget.WidgetGetFocusOnClickMethodInfo
ResolveInfoBarMethod "getFocusable" o = Gtk.Widget.WidgetGetFocusableMethodInfo
ResolveInfoBarMethod "getFontMap" o = Gtk.Widget.WidgetGetFontMapMethodInfo
ResolveInfoBarMethod "getFontOptions" o = Gtk.Widget.WidgetGetFontOptionsMethodInfo
ResolveInfoBarMethod "getFrameClock" o = Gtk.Widget.WidgetGetFrameClockMethodInfo
ResolveInfoBarMethod "getHalign" o = Gtk.Widget.WidgetGetHalignMethodInfo
ResolveInfoBarMethod "getHasTooltip" o = Gtk.Widget.WidgetGetHasTooltipMethodInfo
ResolveInfoBarMethod "getHeight" o = Gtk.Widget.WidgetGetHeightMethodInfo
ResolveInfoBarMethod "getHexpand" o = Gtk.Widget.WidgetGetHexpandMethodInfo
ResolveInfoBarMethod "getHexpandSet" o = Gtk.Widget.WidgetGetHexpandSetMethodInfo
ResolveInfoBarMethod "getLastChild" o = Gtk.Widget.WidgetGetLastChildMethodInfo
ResolveInfoBarMethod "getLayoutManager" o = Gtk.Widget.WidgetGetLayoutManagerMethodInfo
ResolveInfoBarMethod "getLimitEvents" o = Gtk.Widget.WidgetGetLimitEventsMethodInfo
ResolveInfoBarMethod "getMapped" o = Gtk.Widget.WidgetGetMappedMethodInfo
ResolveInfoBarMethod "getMarginBottom" o = Gtk.Widget.WidgetGetMarginBottomMethodInfo
ResolveInfoBarMethod "getMarginEnd" o = Gtk.Widget.WidgetGetMarginEndMethodInfo
ResolveInfoBarMethod "getMarginStart" o = Gtk.Widget.WidgetGetMarginStartMethodInfo
ResolveInfoBarMethod "getMarginTop" o = Gtk.Widget.WidgetGetMarginTopMethodInfo
ResolveInfoBarMethod "getMessageType" o = InfoBarGetMessageTypeMethodInfo
ResolveInfoBarMethod "getName" o = Gtk.Widget.WidgetGetNameMethodInfo
ResolveInfoBarMethod "getNative" o = Gtk.Widget.WidgetGetNativeMethodInfo
ResolveInfoBarMethod "getNextAccessibleSibling" o = Gtk.Accessible.AccessibleGetNextAccessibleSiblingMethodInfo
ResolveInfoBarMethod "getNextSibling" o = Gtk.Widget.WidgetGetNextSiblingMethodInfo
ResolveInfoBarMethod "getOpacity" o = Gtk.Widget.WidgetGetOpacityMethodInfo
ResolveInfoBarMethod "getOverflow" o = Gtk.Widget.WidgetGetOverflowMethodInfo
ResolveInfoBarMethod "getPangoContext" o = Gtk.Widget.WidgetGetPangoContextMethodInfo
ResolveInfoBarMethod "getParent" o = Gtk.Widget.WidgetGetParentMethodInfo
ResolveInfoBarMethod "getPlatformState" o = Gtk.Accessible.AccessibleGetPlatformStateMethodInfo
ResolveInfoBarMethod "getPreferredSize" o = Gtk.Widget.WidgetGetPreferredSizeMethodInfo
ResolveInfoBarMethod "getPrevSibling" o = Gtk.Widget.WidgetGetPrevSiblingMethodInfo
ResolveInfoBarMethod "getPrimaryClipboard" o = Gtk.Widget.WidgetGetPrimaryClipboardMethodInfo
ResolveInfoBarMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolveInfoBarMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolveInfoBarMethod "getRealized" o = Gtk.Widget.WidgetGetRealizedMethodInfo
ResolveInfoBarMethod "getReceivesDefault" o = Gtk.Widget.WidgetGetReceivesDefaultMethodInfo
ResolveInfoBarMethod "getRequestMode" o = Gtk.Widget.WidgetGetRequestModeMethodInfo
ResolveInfoBarMethod "getRevealed" o = InfoBarGetRevealedMethodInfo
ResolveInfoBarMethod "getRoot" o = Gtk.Widget.WidgetGetRootMethodInfo
ResolveInfoBarMethod "getScaleFactor" o = Gtk.Widget.WidgetGetScaleFactorMethodInfo
ResolveInfoBarMethod "getSensitive" o = Gtk.Widget.WidgetGetSensitiveMethodInfo
ResolveInfoBarMethod "getSettings" o = Gtk.Widget.WidgetGetSettingsMethodInfo
ResolveInfoBarMethod "getShowCloseButton" o = InfoBarGetShowCloseButtonMethodInfo
ResolveInfoBarMethod "getSize" o = Gtk.Widget.WidgetGetSizeMethodInfo
ResolveInfoBarMethod "getSizeRequest" o = Gtk.Widget.WidgetGetSizeRequestMethodInfo
ResolveInfoBarMethod "getStateFlags" o = Gtk.Widget.WidgetGetStateFlagsMethodInfo
ResolveInfoBarMethod "getStyleContext" o = Gtk.Widget.WidgetGetStyleContextMethodInfo
ResolveInfoBarMethod "getTemplateChild" o = Gtk.Widget.WidgetGetTemplateChildMethodInfo
ResolveInfoBarMethod "getTooltipMarkup" o = Gtk.Widget.WidgetGetTooltipMarkupMethodInfo
ResolveInfoBarMethod "getTooltipText" o = Gtk.Widget.WidgetGetTooltipTextMethodInfo
ResolveInfoBarMethod "getValign" o = Gtk.Widget.WidgetGetValignMethodInfo
ResolveInfoBarMethod "getVexpand" o = Gtk.Widget.WidgetGetVexpandMethodInfo
ResolveInfoBarMethod "getVexpandSet" o = Gtk.Widget.WidgetGetVexpandSetMethodInfo
ResolveInfoBarMethod "getVisible" o = Gtk.Widget.WidgetGetVisibleMethodInfo
ResolveInfoBarMethod "getWidth" o = Gtk.Widget.WidgetGetWidthMethodInfo
ResolveInfoBarMethod "setAccessibleParent" o = Gtk.Accessible.AccessibleSetAccessibleParentMethodInfo
ResolveInfoBarMethod "setCanFocus" o = Gtk.Widget.WidgetSetCanFocusMethodInfo
ResolveInfoBarMethod "setCanTarget" o = Gtk.Widget.WidgetSetCanTargetMethodInfo
ResolveInfoBarMethod "setChildVisible" o = Gtk.Widget.WidgetSetChildVisibleMethodInfo
ResolveInfoBarMethod "setCssClasses" o = Gtk.Widget.WidgetSetCssClassesMethodInfo
ResolveInfoBarMethod "setCursor" o = Gtk.Widget.WidgetSetCursorMethodInfo
ResolveInfoBarMethod "setCursorFromName" o = Gtk.Widget.WidgetSetCursorFromNameMethodInfo
ResolveInfoBarMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolveInfoBarMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
ResolveInfoBarMethod "setDefaultResponse" o = InfoBarSetDefaultResponseMethodInfo
ResolveInfoBarMethod "setDirection" o = Gtk.Widget.WidgetSetDirectionMethodInfo
ResolveInfoBarMethod "setFocusChild" o = Gtk.Widget.WidgetSetFocusChildMethodInfo
ResolveInfoBarMethod "setFocusOnClick" o = Gtk.Widget.WidgetSetFocusOnClickMethodInfo
ResolveInfoBarMethod "setFocusable" o = Gtk.Widget.WidgetSetFocusableMethodInfo
ResolveInfoBarMethod "setFontMap" o = Gtk.Widget.WidgetSetFontMapMethodInfo
ResolveInfoBarMethod "setFontOptions" o = Gtk.Widget.WidgetSetFontOptionsMethodInfo
ResolveInfoBarMethod "setHalign" o = Gtk.Widget.WidgetSetHalignMethodInfo
ResolveInfoBarMethod "setHasTooltip" o = Gtk.Widget.WidgetSetHasTooltipMethodInfo
ResolveInfoBarMethod "setHexpand" o = Gtk.Widget.WidgetSetHexpandMethodInfo
ResolveInfoBarMethod "setHexpandSet" o = Gtk.Widget.WidgetSetHexpandSetMethodInfo
ResolveInfoBarMethod "setLayoutManager" o = Gtk.Widget.WidgetSetLayoutManagerMethodInfo
ResolveInfoBarMethod "setLimitEvents" o = Gtk.Widget.WidgetSetLimitEventsMethodInfo
ResolveInfoBarMethod "setMarginBottom" o = Gtk.Widget.WidgetSetMarginBottomMethodInfo
ResolveInfoBarMethod "setMarginEnd" o = Gtk.Widget.WidgetSetMarginEndMethodInfo
ResolveInfoBarMethod "setMarginStart" o = Gtk.Widget.WidgetSetMarginStartMethodInfo
ResolveInfoBarMethod "setMarginTop" o = Gtk.Widget.WidgetSetMarginTopMethodInfo
ResolveInfoBarMethod "setMessageType" o = InfoBarSetMessageTypeMethodInfo
ResolveInfoBarMethod "setName" o = Gtk.Widget.WidgetSetNameMethodInfo
ResolveInfoBarMethod "setOpacity" o = Gtk.Widget.WidgetSetOpacityMethodInfo
ResolveInfoBarMethod "setOverflow" o = Gtk.Widget.WidgetSetOverflowMethodInfo
ResolveInfoBarMethod "setParent" o = Gtk.Widget.WidgetSetParentMethodInfo
ResolveInfoBarMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolveInfoBarMethod "setReceivesDefault" o = Gtk.Widget.WidgetSetReceivesDefaultMethodInfo
ResolveInfoBarMethod "setResponseSensitive" o = InfoBarSetResponseSensitiveMethodInfo
ResolveInfoBarMethod "setRevealed" o = InfoBarSetRevealedMethodInfo
ResolveInfoBarMethod "setSensitive" o = Gtk.Widget.WidgetSetSensitiveMethodInfo
ResolveInfoBarMethod "setShowCloseButton" o = InfoBarSetShowCloseButtonMethodInfo
ResolveInfoBarMethod "setSizeRequest" o = Gtk.Widget.WidgetSetSizeRequestMethodInfo
ResolveInfoBarMethod "setStateFlags" o = Gtk.Widget.WidgetSetStateFlagsMethodInfo
ResolveInfoBarMethod "setTooltipMarkup" o = Gtk.Widget.WidgetSetTooltipMarkupMethodInfo
ResolveInfoBarMethod "setTooltipText" o = Gtk.Widget.WidgetSetTooltipTextMethodInfo
ResolveInfoBarMethod "setValign" o = Gtk.Widget.WidgetSetValignMethodInfo
ResolveInfoBarMethod "setVexpand" o = Gtk.Widget.WidgetSetVexpandMethodInfo
ResolveInfoBarMethod "setVexpandSet" o = Gtk.Widget.WidgetSetVexpandSetMethodInfo
ResolveInfoBarMethod "setVisible" o = Gtk.Widget.WidgetSetVisibleMethodInfo
ResolveInfoBarMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveInfoBarMethod t InfoBar, O.OverloadedMethod info InfoBar p) => OL.IsLabel t (InfoBar -> 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 ~ ResolveInfoBarMethod t InfoBar, O.OverloadedMethod info InfoBar p, R.HasField t InfoBar p) => R.HasField t InfoBar p where
getField = O.overloadedMethod @info
#endif
instance (info ~ ResolveInfoBarMethod t InfoBar, O.OverloadedMethodInfo info InfoBar) => OL.IsLabel t (O.MethodProxy info InfoBar) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.MethodProxy
#else
fromLabel _ = O.MethodProxy
#endif
#endif
type InfoBarCloseCallback =
IO ()
type C_InfoBarCloseCallback =
Ptr InfoBar ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_InfoBarCloseCallback :: C_InfoBarCloseCallback -> IO (FunPtr C_InfoBarCloseCallback)
wrap_InfoBarCloseCallback ::
GObject a => (a -> InfoBarCloseCallback) ->
C_InfoBarCloseCallback
wrap_InfoBarCloseCallback :: forall a. GObject a => (a -> IO ()) -> C_InfoBarCloseCallback
wrap_InfoBarCloseCallback a -> IO ()
gi'cb Ptr InfoBar
gi'selfPtr Ptr ()
_ = do
Ptr InfoBar -> (InfoBar -> IO ()) -> IO ()
forall o b.
(HasCallStack, GObject o) =>
Ptr o -> (o -> IO b) -> IO b
B.ManagedPtr.withNewObject Ptr InfoBar
gi'selfPtr ((InfoBar -> IO ()) -> IO ()) -> (InfoBar -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \InfoBar
gi'self -> a -> IO ()
gi'cb (InfoBar -> a
forall a b. Coercible a b => a -> b
Coerce.coerce InfoBar
gi'self)
onInfoBarClose :: (IsInfoBar a, MonadIO m) => a -> ((?self :: a) => InfoBarCloseCallback) -> m SignalHandlerId
onInfoBarClose :: forall a (m :: * -> *).
(IsInfoBar a, MonadIO m) =>
a -> ((?self::a) => IO ()) -> m SignalHandlerId
onInfoBarClose a
obj (?self::a) => IO ()
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 -> IO ()
wrapped a
self = let ?self = a
?self::a
self in IO ()
(?self::a) => IO ()
cb
let wrapped' :: C_InfoBarCloseCallback
wrapped' = (a -> IO ()) -> C_InfoBarCloseCallback
forall a. GObject a => (a -> IO ()) -> C_InfoBarCloseCallback
wrap_InfoBarCloseCallback a -> IO ()
wrapped
wrapped'' <- C_InfoBarCloseCallback -> IO (FunPtr C_InfoBarCloseCallback)
mk_InfoBarCloseCallback C_InfoBarCloseCallback
wrapped'
connectSignalFunPtr obj "close" wrapped'' SignalConnectBefore Nothing
afterInfoBarClose :: (IsInfoBar a, MonadIO m) => a -> ((?self :: a) => InfoBarCloseCallback) -> m SignalHandlerId
afterInfoBarClose :: forall a (m :: * -> *).
(IsInfoBar a, MonadIO m) =>
a -> ((?self::a) => IO ()) -> m SignalHandlerId
afterInfoBarClose a
obj (?self::a) => IO ()
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 -> IO ()
wrapped a
self = let ?self = a
?self::a
self in IO ()
(?self::a) => IO ()
cb
let wrapped' :: C_InfoBarCloseCallback
wrapped' = (a -> IO ()) -> C_InfoBarCloseCallback
forall a. GObject a => (a -> IO ()) -> C_InfoBarCloseCallback
wrap_InfoBarCloseCallback a -> IO ()
wrapped
wrapped'' <- C_InfoBarCloseCallback -> IO (FunPtr C_InfoBarCloseCallback)
mk_InfoBarCloseCallback C_InfoBarCloseCallback
wrapped'
connectSignalFunPtr obj "close" wrapped'' SignalConnectAfter Nothing
#if defined(ENABLE_OVERLOADING)
data InfoBarCloseSignalInfo
instance SignalInfo InfoBarCloseSignalInfo where
type HaskellCallbackType InfoBarCloseSignalInfo = InfoBarCloseCallback
connectSignal obj cb connectMode detail = do
let cb' = wrap_InfoBarCloseCallback cb
cb'' <- mk_InfoBarCloseCallback cb'
connectSignalFunPtr obj "close" cb'' connectMode detail
dbgSignalInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.InfoBar::close"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk4-4.0.12/docs/GI-Gtk-Objects-InfoBar.html#g:signal:close"})
#endif
type InfoBarResponseCallback =
Int32
-> IO ()
type C_InfoBarResponseCallback =
Ptr InfoBar ->
Int32 ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_InfoBarResponseCallback :: C_InfoBarResponseCallback -> IO (FunPtr C_InfoBarResponseCallback)
wrap_InfoBarResponseCallback ::
GObject a => (a -> InfoBarResponseCallback) ->
C_InfoBarResponseCallback
wrap_InfoBarResponseCallback :: forall a.
GObject a =>
(a -> InfoBarResponseCallback) -> C_InfoBarResponseCallback
wrap_InfoBarResponseCallback a -> InfoBarResponseCallback
gi'cb Ptr InfoBar
gi'selfPtr Int32
responseId Ptr ()
_ = do
Ptr InfoBar -> (InfoBar -> IO ()) -> IO ()
forall o b.
(HasCallStack, GObject o) =>
Ptr o -> (o -> IO b) -> IO b
B.ManagedPtr.withNewObject Ptr InfoBar
gi'selfPtr ((InfoBar -> IO ()) -> IO ()) -> (InfoBar -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \InfoBar
gi'self -> a -> InfoBarResponseCallback
gi'cb (InfoBar -> a
forall a b. Coercible a b => a -> b
Coerce.coerce InfoBar
gi'self) Int32
responseId
onInfoBarResponse :: (IsInfoBar a, MonadIO m) => a -> ((?self :: a) => InfoBarResponseCallback) -> m SignalHandlerId
onInfoBarResponse :: forall a (m :: * -> *).
(IsInfoBar a, MonadIO m) =>
a -> ((?self::a) => InfoBarResponseCallback) -> m SignalHandlerId
onInfoBarResponse a
obj (?self::a) => InfoBarResponseCallback
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 -> InfoBarResponseCallback
wrapped a
self = let ?self = a
?self::a
self in (?self::a) => InfoBarResponseCallback
InfoBarResponseCallback
cb
let wrapped' :: C_InfoBarResponseCallback
wrapped' = (a -> InfoBarResponseCallback) -> C_InfoBarResponseCallback
forall a.
GObject a =>
(a -> InfoBarResponseCallback) -> C_InfoBarResponseCallback
wrap_InfoBarResponseCallback a -> InfoBarResponseCallback
wrapped
wrapped'' <- C_InfoBarResponseCallback -> IO (FunPtr C_InfoBarResponseCallback)
mk_InfoBarResponseCallback C_InfoBarResponseCallback
wrapped'
connectSignalFunPtr obj "response" wrapped'' SignalConnectBefore Nothing
afterInfoBarResponse :: (IsInfoBar a, MonadIO m) => a -> ((?self :: a) => InfoBarResponseCallback) -> m SignalHandlerId
afterInfoBarResponse :: forall a (m :: * -> *).
(IsInfoBar a, MonadIO m) =>
a -> ((?self::a) => InfoBarResponseCallback) -> m SignalHandlerId
afterInfoBarResponse a
obj (?self::a) => InfoBarResponseCallback
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 -> InfoBarResponseCallback
wrapped a
self = let ?self = a
?self::a
self in (?self::a) => InfoBarResponseCallback
InfoBarResponseCallback
cb
let wrapped' :: C_InfoBarResponseCallback
wrapped' = (a -> InfoBarResponseCallback) -> C_InfoBarResponseCallback
forall a.
GObject a =>
(a -> InfoBarResponseCallback) -> C_InfoBarResponseCallback
wrap_InfoBarResponseCallback a -> InfoBarResponseCallback
wrapped
wrapped'' <- C_InfoBarResponseCallback -> IO (FunPtr C_InfoBarResponseCallback)
mk_InfoBarResponseCallback C_InfoBarResponseCallback
wrapped'
connectSignalFunPtr obj "response" wrapped'' SignalConnectAfter Nothing
#if defined(ENABLE_OVERLOADING)
data InfoBarResponseSignalInfo
instance SignalInfo InfoBarResponseSignalInfo where
type HaskellCallbackType InfoBarResponseSignalInfo = InfoBarResponseCallback
connectSignal obj cb connectMode detail = do
let cb' = wrap_InfoBarResponseCallback cb
cb'' <- mk_InfoBarResponseCallback cb'
connectSignalFunPtr obj "response" cb'' connectMode detail
dbgSignalInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.InfoBar::response"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk4-4.0.12/docs/GI-Gtk-Objects-InfoBar.html#g:signal:response"})
#endif
getInfoBarMessageType :: (MonadIO m, IsInfoBar o) => o -> m Gtk.Enums.MessageType
getInfoBarMessageType :: forall (m :: * -> *) o.
(MonadIO m, IsInfoBar o) =>
o -> m MessageType
getInfoBarMessageType o
obj = IO MessageType -> m MessageType
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO MessageType -> m MessageType)
-> IO MessageType -> m MessageType
forall a b. (a -> b) -> a -> b
$ o -> String -> IO MessageType
forall a b. (GObject a, Enum b, BoxedEnum b) => a -> String -> IO b
B.Properties.getObjectPropertyEnum o
obj String
"message-type"
setInfoBarMessageType :: (MonadIO m, IsInfoBar o) => o -> Gtk.Enums.MessageType -> m ()
setInfoBarMessageType :: forall (m :: * -> *) o.
(MonadIO m, IsInfoBar o) =>
o -> MessageType -> m ()
setInfoBarMessageType o
obj MessageType
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> MessageType -> IO ()
forall a b.
(GObject a, Enum b, BoxedEnum b) =>
a -> String -> b -> IO ()
B.Properties.setObjectPropertyEnum o
obj String
"message-type" MessageType
val
constructInfoBarMessageType :: (IsInfoBar o, MIO.MonadIO m) => Gtk.Enums.MessageType -> m (GValueConstruct o)
constructInfoBarMessageType :: forall o (m :: * -> *).
(IsInfoBar o, MonadIO m) =>
MessageType -> m (GValueConstruct o)
constructInfoBarMessageType MessageType
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> MessageType -> IO (GValueConstruct o)
forall a o.
(Enum a, BoxedEnum a) =>
String -> a -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyEnum String
"message-type" MessageType
val
#if defined(ENABLE_OVERLOADING)
data InfoBarMessageTypePropertyInfo
instance AttrInfo InfoBarMessageTypePropertyInfo where
type AttrAllowedOps InfoBarMessageTypePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint InfoBarMessageTypePropertyInfo = IsInfoBar
type AttrSetTypeConstraint InfoBarMessageTypePropertyInfo = (~) Gtk.Enums.MessageType
type AttrTransferTypeConstraint InfoBarMessageTypePropertyInfo = (~) Gtk.Enums.MessageType
type AttrTransferType InfoBarMessageTypePropertyInfo = Gtk.Enums.MessageType
type AttrGetType InfoBarMessageTypePropertyInfo = Gtk.Enums.MessageType
type AttrLabel InfoBarMessageTypePropertyInfo = "message-type"
type AttrOrigin InfoBarMessageTypePropertyInfo = InfoBar
attrGet = getInfoBarMessageType
attrSet = setInfoBarMessageType
attrTransfer _ v = do
return v
attrConstruct = constructInfoBarMessageType
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.InfoBar.messageType"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk4-4.0.12/docs/GI-Gtk-Objects-InfoBar.html#g:attr:messageType"
})
#endif
getInfoBarRevealed :: (MonadIO m, IsInfoBar o) => o -> m Bool
getInfoBarRevealed :: forall (m :: * -> *) o. (MonadIO m, IsInfoBar o) => o -> m Bool
getInfoBarRevealed o
obj = IO Bool -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Bool
forall a. GObject a => a -> String -> IO Bool
B.Properties.getObjectPropertyBool o
obj String
"revealed"
setInfoBarRevealed :: (MonadIO m, IsInfoBar o) => o -> Bool -> m ()
setInfoBarRevealed :: forall (m :: * -> *) o.
(MonadIO m, IsInfoBar o) =>
o -> Bool -> m ()
setInfoBarRevealed o
obj Bool
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Bool -> IO ()
forall a. GObject a => a -> String -> Bool -> IO ()
B.Properties.setObjectPropertyBool o
obj String
"revealed" Bool
val
constructInfoBarRevealed :: (IsInfoBar o, MIO.MonadIO m) => Bool -> m (GValueConstruct o)
constructInfoBarRevealed :: forall o (m :: * -> *).
(IsInfoBar o, MonadIO m) =>
Bool -> m (GValueConstruct o)
constructInfoBarRevealed Bool
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Bool -> IO (GValueConstruct o)
forall o. String -> Bool -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyBool String
"revealed" Bool
val
#if defined(ENABLE_OVERLOADING)
data InfoBarRevealedPropertyInfo
instance AttrInfo InfoBarRevealedPropertyInfo where
type AttrAllowedOps InfoBarRevealedPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint InfoBarRevealedPropertyInfo = IsInfoBar
type AttrSetTypeConstraint InfoBarRevealedPropertyInfo = (~) Bool
type AttrTransferTypeConstraint InfoBarRevealedPropertyInfo = (~) Bool
type AttrTransferType InfoBarRevealedPropertyInfo = Bool
type AttrGetType InfoBarRevealedPropertyInfo = Bool
type AttrLabel InfoBarRevealedPropertyInfo = "revealed"
type AttrOrigin InfoBarRevealedPropertyInfo = InfoBar
attrGet = getInfoBarRevealed
attrSet = setInfoBarRevealed
attrTransfer _ v = do
return v
attrConstruct = constructInfoBarRevealed
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.InfoBar.revealed"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk4-4.0.12/docs/GI-Gtk-Objects-InfoBar.html#g:attr:revealed"
})
#endif
getInfoBarShowCloseButton :: (MonadIO m, IsInfoBar o) => o -> m Bool
getInfoBarShowCloseButton :: forall (m :: * -> *) o. (MonadIO m, IsInfoBar o) => o -> m Bool
getInfoBarShowCloseButton o
obj = IO Bool -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Bool
forall a. GObject a => a -> String -> IO Bool
B.Properties.getObjectPropertyBool o
obj String
"show-close-button"
setInfoBarShowCloseButton :: (MonadIO m, IsInfoBar o) => o -> Bool -> m ()
setInfoBarShowCloseButton :: forall (m :: * -> *) o.
(MonadIO m, IsInfoBar o) =>
o -> Bool -> m ()
setInfoBarShowCloseButton o
obj Bool
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Bool -> IO ()
forall a. GObject a => a -> String -> Bool -> IO ()
B.Properties.setObjectPropertyBool o
obj String
"show-close-button" Bool
val
constructInfoBarShowCloseButton :: (IsInfoBar o, MIO.MonadIO m) => Bool -> m (GValueConstruct o)
constructInfoBarShowCloseButton :: forall o (m :: * -> *).
(IsInfoBar o, MonadIO m) =>
Bool -> m (GValueConstruct o)
constructInfoBarShowCloseButton Bool
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Bool -> IO (GValueConstruct o)
forall o. String -> Bool -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyBool String
"show-close-button" Bool
val
#if defined(ENABLE_OVERLOADING)
data InfoBarShowCloseButtonPropertyInfo
instance AttrInfo InfoBarShowCloseButtonPropertyInfo where
type AttrAllowedOps InfoBarShowCloseButtonPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint InfoBarShowCloseButtonPropertyInfo = IsInfoBar
type AttrSetTypeConstraint InfoBarShowCloseButtonPropertyInfo = (~) Bool
type AttrTransferTypeConstraint InfoBarShowCloseButtonPropertyInfo = (~) Bool
type AttrTransferType InfoBarShowCloseButtonPropertyInfo = Bool
type AttrGetType InfoBarShowCloseButtonPropertyInfo = Bool
type AttrLabel InfoBarShowCloseButtonPropertyInfo = "show-close-button"
type AttrOrigin InfoBarShowCloseButtonPropertyInfo = InfoBar
attrGet = getInfoBarShowCloseButton
attrSet = setInfoBarShowCloseButton
attrTransfer _ v = do
return v
attrConstruct = constructInfoBarShowCloseButton
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.InfoBar.showCloseButton"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk4-4.0.12/docs/GI-Gtk-Objects-InfoBar.html#g:attr:showCloseButton"
})
#endif
#if defined(ENABLE_OVERLOADING)
instance O.HasAttributeList InfoBar
type instance O.AttributeList InfoBar = InfoBarAttributeList
type InfoBarAttributeList = ('[ '("accessibleRole", Gtk.Accessible.AccessibleAccessibleRolePropertyInfo), '("canFocus", Gtk.Widget.WidgetCanFocusPropertyInfo), '("canTarget", Gtk.Widget.WidgetCanTargetPropertyInfo), '("cssClasses", Gtk.Widget.WidgetCssClassesPropertyInfo), '("cssName", Gtk.Widget.WidgetCssNamePropertyInfo), '("cursor", Gtk.Widget.WidgetCursorPropertyInfo), '("focusOnClick", Gtk.Widget.WidgetFocusOnClickPropertyInfo), '("focusable", Gtk.Widget.WidgetFocusablePropertyInfo), '("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), '("layoutManager", Gtk.Widget.WidgetLayoutManagerPropertyInfo), '("limitEvents", Gtk.Widget.WidgetLimitEventsPropertyInfo), '("marginBottom", Gtk.Widget.WidgetMarginBottomPropertyInfo), '("marginEnd", Gtk.Widget.WidgetMarginEndPropertyInfo), '("marginStart", Gtk.Widget.WidgetMarginStartPropertyInfo), '("marginTop", Gtk.Widget.WidgetMarginTopPropertyInfo), '("messageType", InfoBarMessageTypePropertyInfo), '("name", Gtk.Widget.WidgetNamePropertyInfo), '("opacity", Gtk.Widget.WidgetOpacityPropertyInfo), '("overflow", Gtk.Widget.WidgetOverflowPropertyInfo), '("parent", Gtk.Widget.WidgetParentPropertyInfo), '("receivesDefault", Gtk.Widget.WidgetReceivesDefaultPropertyInfo), '("revealed", InfoBarRevealedPropertyInfo), '("root", Gtk.Widget.WidgetRootPropertyInfo), '("scaleFactor", Gtk.Widget.WidgetScaleFactorPropertyInfo), '("sensitive", Gtk.Widget.WidgetSensitivePropertyInfo), '("showCloseButton", InfoBarShowCloseButtonPropertyInfo), '("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)] :: [(Symbol, DK.Type)])
#endif
#if defined(ENABLE_OVERLOADING)
infoBarMessageType :: AttrLabelProxy "messageType"
infoBarMessageType = AttrLabelProxy
infoBarRevealed :: AttrLabelProxy "revealed"
infoBarRevealed = AttrLabelProxy
infoBarShowCloseButton :: AttrLabelProxy "showCloseButton"
infoBarShowCloseButton = AttrLabelProxy
#endif
#if defined(ENABLE_OVERLOADING)
type instance O.SignalList InfoBar = InfoBarSignalList
type InfoBarSignalList = ('[ '("close", InfoBarCloseSignalInfo), '("destroy", Gtk.Widget.WidgetDestroySignalInfo), '("directionChanged", Gtk.Widget.WidgetDirectionChangedSignalInfo), '("hide", Gtk.Widget.WidgetHideSignalInfo), '("keynavFailed", Gtk.Widget.WidgetKeynavFailedSignalInfo), '("map", Gtk.Widget.WidgetMapSignalInfo), '("mnemonicActivate", Gtk.Widget.WidgetMnemonicActivateSignalInfo), '("moveFocus", Gtk.Widget.WidgetMoveFocusSignalInfo), '("notify", GObject.Object.ObjectNotifySignalInfo), '("queryTooltip", Gtk.Widget.WidgetQueryTooltipSignalInfo), '("realize", Gtk.Widget.WidgetRealizeSignalInfo), '("response", InfoBarResponseSignalInfo), '("show", Gtk.Widget.WidgetShowSignalInfo), '("stateFlagsChanged", Gtk.Widget.WidgetStateFlagsChangedSignalInfo), '("unmap", Gtk.Widget.WidgetUnmapSignalInfo), '("unrealize", Gtk.Widget.WidgetUnrealizeSignalInfo)] :: [(Symbol, DK.Type)])
#endif
foreign import ccall "gtk_info_bar_new" gtk_info_bar_new ::
IO (Ptr InfoBar)
{-# DEPRECATED infoBarNew ["(Since version 4.10)"] #-}
infoBarNew ::
(B.CallStack.HasCallStack, MonadIO m) =>
m InfoBar
infoBarNew :: forall (m :: * -> *). (HasCallStack, MonadIO m) => m InfoBar
infoBarNew = IO InfoBar -> m InfoBar
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO InfoBar -> m InfoBar) -> IO InfoBar -> m InfoBar
forall a b. (a -> b) -> a -> b
$ do
result <- IO (Ptr InfoBar)
gtk_info_bar_new
checkUnexpectedReturnNULL "infoBarNew" result
result' <- (newObject InfoBar) result
return result'
#if defined(ENABLE_OVERLOADING)
#endif
foreign import ccall "gtk_info_bar_add_action_widget" gtk_info_bar_add_action_widget ::
Ptr InfoBar ->
Ptr Gtk.Widget.Widget ->
Int32 ->
IO ()
{-# DEPRECATED infoBarAddActionWidget ["(Since version 4.10)"] #-}
infoBarAddActionWidget ::
(B.CallStack.HasCallStack, MonadIO m, IsInfoBar a, Gtk.Widget.IsWidget b) =>
a
-> b
-> Int32
-> m ()
infoBarAddActionWidget :: forall (m :: * -> *) a b.
(HasCallStack, MonadIO m, IsInfoBar a, IsWidget b) =>
a -> b -> Int32 -> m ()
infoBarAddActionWidget a
infoBar b
child Int32
responseId = 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
infoBar' <- a -> IO (Ptr InfoBar)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
infoBar
child' <- unsafeManagedPtrCastPtr child
gtk_info_bar_add_action_widget infoBar' child' responseId
touchManagedPtr infoBar
touchManagedPtr child
return ()
#if defined(ENABLE_OVERLOADING)
data InfoBarAddActionWidgetMethodInfo
instance (signature ~ (b -> Int32 -> m ()), MonadIO m, IsInfoBar a, Gtk.Widget.IsWidget b) => O.OverloadedMethod InfoBarAddActionWidgetMethodInfo a signature where
overloadedMethod = infoBarAddActionWidget
instance O.OverloadedMethodInfo InfoBarAddActionWidgetMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.InfoBar.infoBarAddActionWidget",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk4-4.0.12/docs/GI-Gtk-Objects-InfoBar.html#v:infoBarAddActionWidget"
})
#endif
foreign import ccall "gtk_info_bar_add_button" gtk_info_bar_add_button ::
Ptr InfoBar ->
CString ->
Int32 ->
IO (Ptr Gtk.Button.Button)
{-# DEPRECATED infoBarAddButton ["(Since version 4.10)"] #-}
infoBarAddButton ::
(B.CallStack.HasCallStack, MonadIO m, IsInfoBar a) =>
a
-> T.Text
-> Int32
-> m Gtk.Button.Button
infoBarAddButton :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsInfoBar a) =>
a -> Text -> Int32 -> m Button
infoBarAddButton a
infoBar Text
buttonText Int32
responseId = IO Button -> m Button
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Button -> m Button) -> IO Button -> m Button
forall a b. (a -> b) -> a -> b
$ do
infoBar' <- a -> IO (Ptr InfoBar)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
infoBar
buttonText' <- textToCString buttonText
result <- gtk_info_bar_add_button infoBar' buttonText' responseId
checkUnexpectedReturnNULL "infoBarAddButton" result
result' <- (newObject Gtk.Button.Button) result
touchManagedPtr infoBar
freeMem buttonText'
return result'
#if defined(ENABLE_OVERLOADING)
data InfoBarAddButtonMethodInfo
instance (signature ~ (T.Text -> Int32 -> m Gtk.Button.Button), MonadIO m, IsInfoBar a) => O.OverloadedMethod InfoBarAddButtonMethodInfo a signature where
overloadedMethod = infoBarAddButton
instance O.OverloadedMethodInfo InfoBarAddButtonMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.InfoBar.infoBarAddButton",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk4-4.0.12/docs/GI-Gtk-Objects-InfoBar.html#v:infoBarAddButton"
})
#endif
foreign import ccall "gtk_info_bar_add_child" gtk_info_bar_add_child ::
Ptr InfoBar ->
Ptr Gtk.Widget.Widget ->
IO ()
{-# DEPRECATED infoBarAddChild ["(Since version 4.10)"] #-}
infoBarAddChild ::
(B.CallStack.HasCallStack, MonadIO m, IsInfoBar a, Gtk.Widget.IsWidget b) =>
a
-> b
-> m ()
infoBarAddChild :: forall (m :: * -> *) a b.
(HasCallStack, MonadIO m, IsInfoBar a, IsWidget b) =>
a -> b -> m ()
infoBarAddChild a
infoBar b
widget = 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
infoBar' <- a -> IO (Ptr InfoBar)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
infoBar
widget' <- unsafeManagedPtrCastPtr widget
gtk_info_bar_add_child infoBar' widget'
touchManagedPtr infoBar
touchManagedPtr widget
return ()
#if defined(ENABLE_OVERLOADING)
data InfoBarAddChildMethodInfo
instance (signature ~ (b -> m ()), MonadIO m, IsInfoBar a, Gtk.Widget.IsWidget b) => O.OverloadedMethod InfoBarAddChildMethodInfo a signature where
overloadedMethod = infoBarAddChild
instance O.OverloadedMethodInfo InfoBarAddChildMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.InfoBar.infoBarAddChild",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk4-4.0.12/docs/GI-Gtk-Objects-InfoBar.html#v:infoBarAddChild"
})
#endif
foreign import ccall "gtk_info_bar_get_message_type" gtk_info_bar_get_message_type ::
Ptr InfoBar ->
IO CUInt
{-# DEPRECATED infoBarGetMessageType ["(Since version 4.10)"] #-}
infoBarGetMessageType ::
(B.CallStack.HasCallStack, MonadIO m, IsInfoBar a) =>
a
-> m Gtk.Enums.MessageType
infoBarGetMessageType :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsInfoBar a) =>
a -> m MessageType
infoBarGetMessageType a
infoBar = IO MessageType -> m MessageType
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO MessageType -> m MessageType)
-> IO MessageType -> m MessageType
forall a b. (a -> b) -> a -> b
$ do
infoBar' <- a -> IO (Ptr InfoBar)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
infoBar
result <- gtk_info_bar_get_message_type infoBar'
let result' = (Int -> MessageType
forall a. Enum a => Int -> a
toEnum (Int -> MessageType) -> (CUInt -> Int) -> CUInt -> MessageType
forall b c a. (b -> c) -> (a -> b) -> a -> c
. CUInt -> Int
forall a b. (Integral a, Num b) => a -> b
fromIntegral) CUInt
result
touchManagedPtr infoBar
return result'
#if defined(ENABLE_OVERLOADING)
data InfoBarGetMessageTypeMethodInfo
instance (signature ~ (m Gtk.Enums.MessageType), MonadIO m, IsInfoBar a) => O.OverloadedMethod InfoBarGetMessageTypeMethodInfo a signature where
overloadedMethod = infoBarGetMessageType
instance O.OverloadedMethodInfo InfoBarGetMessageTypeMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.InfoBar.infoBarGetMessageType",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk4-4.0.12/docs/GI-Gtk-Objects-InfoBar.html#v:infoBarGetMessageType"
})
#endif
foreign import ccall "gtk_info_bar_get_revealed" gtk_info_bar_get_revealed ::
Ptr InfoBar ->
IO CInt
{-# DEPRECATED infoBarGetRevealed ["(Since version 4.10)"] #-}
infoBarGetRevealed ::
(B.CallStack.HasCallStack, MonadIO m, IsInfoBar a) =>
a
-> m Bool
infoBarGetRevealed :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsInfoBar a) =>
a -> m Bool
infoBarGetRevealed a
infoBar = IO Bool -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
infoBar' <- a -> IO (Ptr InfoBar)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
infoBar
result <- gtk_info_bar_get_revealed infoBar'
let result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
touchManagedPtr infoBar
return result'
#if defined(ENABLE_OVERLOADING)
data InfoBarGetRevealedMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsInfoBar a) => O.OverloadedMethod InfoBarGetRevealedMethodInfo a signature where
overloadedMethod = infoBarGetRevealed
instance O.OverloadedMethodInfo InfoBarGetRevealedMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.InfoBar.infoBarGetRevealed",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk4-4.0.12/docs/GI-Gtk-Objects-InfoBar.html#v:infoBarGetRevealed"
})
#endif
foreign import ccall "gtk_info_bar_get_show_close_button" gtk_info_bar_get_show_close_button ::
Ptr InfoBar ->
IO CInt
{-# DEPRECATED infoBarGetShowCloseButton ["(Since version 4.10)"] #-}
infoBarGetShowCloseButton ::
(B.CallStack.HasCallStack, MonadIO m, IsInfoBar a) =>
a
-> m Bool
infoBarGetShowCloseButton :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsInfoBar a) =>
a -> m Bool
infoBarGetShowCloseButton a
infoBar = IO Bool -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
infoBar' <- a -> IO (Ptr InfoBar)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
infoBar
result <- gtk_info_bar_get_show_close_button infoBar'
let result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
touchManagedPtr infoBar
return result'
#if defined(ENABLE_OVERLOADING)
data InfoBarGetShowCloseButtonMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsInfoBar a) => O.OverloadedMethod InfoBarGetShowCloseButtonMethodInfo a signature where
overloadedMethod = infoBarGetShowCloseButton
instance O.OverloadedMethodInfo InfoBarGetShowCloseButtonMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.InfoBar.infoBarGetShowCloseButton",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk4-4.0.12/docs/GI-Gtk-Objects-InfoBar.html#v:infoBarGetShowCloseButton"
})
#endif
foreign import ccall "gtk_info_bar_remove_action_widget" gtk_info_bar_remove_action_widget ::
Ptr InfoBar ->
Ptr Gtk.Widget.Widget ->
IO ()
{-# DEPRECATED infoBarRemoveActionWidget ["(Since version 4.10)"] #-}
infoBarRemoveActionWidget ::
(B.CallStack.HasCallStack, MonadIO m, IsInfoBar a, Gtk.Widget.IsWidget b) =>
a
-> b
-> m ()
infoBarRemoveActionWidget :: forall (m :: * -> *) a b.
(HasCallStack, MonadIO m, IsInfoBar a, IsWidget b) =>
a -> b -> m ()
infoBarRemoveActionWidget a
infoBar b
widget = 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
infoBar' <- a -> IO (Ptr InfoBar)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
infoBar
widget' <- unsafeManagedPtrCastPtr widget
gtk_info_bar_remove_action_widget infoBar' widget'
touchManagedPtr infoBar
touchManagedPtr widget
return ()
#if defined(ENABLE_OVERLOADING)
data InfoBarRemoveActionWidgetMethodInfo
instance (signature ~ (b -> m ()), MonadIO m, IsInfoBar a, Gtk.Widget.IsWidget b) => O.OverloadedMethod InfoBarRemoveActionWidgetMethodInfo a signature where
overloadedMethod = infoBarRemoveActionWidget
instance O.OverloadedMethodInfo InfoBarRemoveActionWidgetMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.InfoBar.infoBarRemoveActionWidget",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk4-4.0.12/docs/GI-Gtk-Objects-InfoBar.html#v:infoBarRemoveActionWidget"
})
#endif
foreign import ccall "gtk_info_bar_remove_child" gtk_info_bar_remove_child ::
Ptr InfoBar ->
Ptr Gtk.Widget.Widget ->
IO ()
{-# DEPRECATED infoBarRemoveChild ["(Since version 4.10)"] #-}
infoBarRemoveChild ::
(B.CallStack.HasCallStack, MonadIO m, IsInfoBar a, Gtk.Widget.IsWidget b) =>
a
-> b
-> m ()
infoBarRemoveChild :: forall (m :: * -> *) a b.
(HasCallStack, MonadIO m, IsInfoBar a, IsWidget b) =>
a -> b -> m ()
infoBarRemoveChild a
infoBar b
widget = 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
infoBar' <- a -> IO (Ptr InfoBar)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
infoBar
widget' <- unsafeManagedPtrCastPtr widget
gtk_info_bar_remove_child infoBar' widget'
touchManagedPtr infoBar
touchManagedPtr widget
return ()
#if defined(ENABLE_OVERLOADING)
data InfoBarRemoveChildMethodInfo
instance (signature ~ (b -> m ()), MonadIO m, IsInfoBar a, Gtk.Widget.IsWidget b) => O.OverloadedMethod InfoBarRemoveChildMethodInfo a signature where
overloadedMethod = infoBarRemoveChild
instance O.OverloadedMethodInfo InfoBarRemoveChildMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.InfoBar.infoBarRemoveChild",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk4-4.0.12/docs/GI-Gtk-Objects-InfoBar.html#v:infoBarRemoveChild"
})
#endif
foreign import ccall "gtk_info_bar_response" gtk_info_bar_response ::
Ptr InfoBar ->
Int32 ->
IO ()
{-# DEPRECATED infoBarResponse ["(Since version 4.10)"] #-}
infoBarResponse ::
(B.CallStack.HasCallStack, MonadIO m, IsInfoBar a) =>
a
-> Int32
-> m ()
infoBarResponse :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsInfoBar a) =>
a -> Int32 -> m ()
infoBarResponse a
infoBar Int32
responseId = 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
infoBar' <- a -> IO (Ptr InfoBar)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
infoBar
gtk_info_bar_response infoBar' responseId
touchManagedPtr infoBar
return ()
#if defined(ENABLE_OVERLOADING)
data InfoBarResponseMethodInfo
instance (signature ~ (Int32 -> m ()), MonadIO m, IsInfoBar a) => O.OverloadedMethod InfoBarResponseMethodInfo a signature where
overloadedMethod = infoBarResponse
instance O.OverloadedMethodInfo InfoBarResponseMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.InfoBar.infoBarResponse",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk4-4.0.12/docs/GI-Gtk-Objects-InfoBar.html#v:infoBarResponse"
})
#endif
foreign import ccall "gtk_info_bar_set_default_response" gtk_info_bar_set_default_response ::
Ptr InfoBar ->
Int32 ->
IO ()
{-# DEPRECATED infoBarSetDefaultResponse ["(Since version 4.10)"] #-}
infoBarSetDefaultResponse ::
(B.CallStack.HasCallStack, MonadIO m, IsInfoBar a) =>
a
-> Int32
-> m ()
infoBarSetDefaultResponse :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsInfoBar a) =>
a -> Int32 -> m ()
infoBarSetDefaultResponse a
infoBar Int32
responseId = 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
infoBar' <- a -> IO (Ptr InfoBar)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
infoBar
gtk_info_bar_set_default_response infoBar' responseId
touchManagedPtr infoBar
return ()
#if defined(ENABLE_OVERLOADING)
data InfoBarSetDefaultResponseMethodInfo
instance (signature ~ (Int32 -> m ()), MonadIO m, IsInfoBar a) => O.OverloadedMethod InfoBarSetDefaultResponseMethodInfo a signature where
overloadedMethod = infoBarSetDefaultResponse
instance O.OverloadedMethodInfo InfoBarSetDefaultResponseMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.InfoBar.infoBarSetDefaultResponse",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk4-4.0.12/docs/GI-Gtk-Objects-InfoBar.html#v:infoBarSetDefaultResponse"
})
#endif
foreign import ccall "gtk_info_bar_set_message_type" gtk_info_bar_set_message_type ::
Ptr InfoBar ->
CUInt ->
IO ()
{-# DEPRECATED infoBarSetMessageType ["(Since version 4.10)"] #-}
infoBarSetMessageType ::
(B.CallStack.HasCallStack, MonadIO m, IsInfoBar a) =>
a
-> Gtk.Enums.MessageType
-> m ()
infoBarSetMessageType :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsInfoBar a) =>
a -> MessageType -> m ()
infoBarSetMessageType a
infoBar MessageType
messageType = 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
infoBar' <- a -> IO (Ptr InfoBar)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
infoBar
let messageType' = (Int -> CUInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CUInt) -> (MessageType -> Int) -> MessageType -> CUInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. MessageType -> Int
forall a. Enum a => a -> Int
fromEnum) MessageType
messageType
gtk_info_bar_set_message_type infoBar' messageType'
touchManagedPtr infoBar
return ()
#if defined(ENABLE_OVERLOADING)
data InfoBarSetMessageTypeMethodInfo
instance (signature ~ (Gtk.Enums.MessageType -> m ()), MonadIO m, IsInfoBar a) => O.OverloadedMethod InfoBarSetMessageTypeMethodInfo a signature where
overloadedMethod = infoBarSetMessageType
instance O.OverloadedMethodInfo InfoBarSetMessageTypeMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.InfoBar.infoBarSetMessageType",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk4-4.0.12/docs/GI-Gtk-Objects-InfoBar.html#v:infoBarSetMessageType"
})
#endif
foreign import ccall "gtk_info_bar_set_response_sensitive" gtk_info_bar_set_response_sensitive ::
Ptr InfoBar ->
Int32 ->
CInt ->
IO ()
{-# DEPRECATED infoBarSetResponseSensitive ["(Since version 4.10)"] #-}
infoBarSetResponseSensitive ::
(B.CallStack.HasCallStack, MonadIO m, IsInfoBar a) =>
a
-> Int32
-> Bool
-> m ()
infoBarSetResponseSensitive :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsInfoBar a) =>
a -> Int32 -> Bool -> m ()
infoBarSetResponseSensitive a
infoBar Int32
responseId Bool
setting = 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
infoBar' <- a -> IO (Ptr InfoBar)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
infoBar
let setting' = (Int -> CInt
forall a b. (Integral a, Num b) => a -> b
P.fromIntegral (Int -> CInt) -> (Bool -> Int) -> Bool -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Bool -> Int
forall a. Enum a => a -> Int
P.fromEnum) Bool
setting
gtk_info_bar_set_response_sensitive infoBar' responseId setting'
touchManagedPtr infoBar
return ()
#if defined(ENABLE_OVERLOADING)
data InfoBarSetResponseSensitiveMethodInfo
instance (signature ~ (Int32 -> Bool -> m ()), MonadIO m, IsInfoBar a) => O.OverloadedMethod InfoBarSetResponseSensitiveMethodInfo a signature where
overloadedMethod = infoBarSetResponseSensitive
instance O.OverloadedMethodInfo InfoBarSetResponseSensitiveMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.InfoBar.infoBarSetResponseSensitive",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk4-4.0.12/docs/GI-Gtk-Objects-InfoBar.html#v:infoBarSetResponseSensitive"
})
#endif
foreign import ccall "gtk_info_bar_set_revealed" gtk_info_bar_set_revealed ::
Ptr InfoBar ->
CInt ->
IO ()
{-# DEPRECATED infoBarSetRevealed ["(Since version 4.10)"] #-}
infoBarSetRevealed ::
(B.CallStack.HasCallStack, MonadIO m, IsInfoBar a) =>
a
-> Bool
-> m ()
infoBarSetRevealed :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsInfoBar a) =>
a -> Bool -> m ()
infoBarSetRevealed a
infoBar Bool
revealed = 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
infoBar' <- a -> IO (Ptr InfoBar)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
infoBar
let revealed' = (Int -> CInt
forall a b. (Integral a, Num b) => a -> b
P.fromIntegral (Int -> CInt) -> (Bool -> Int) -> Bool -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Bool -> Int
forall a. Enum a => a -> Int
P.fromEnum) Bool
revealed
gtk_info_bar_set_revealed infoBar' revealed'
touchManagedPtr infoBar
return ()
#if defined(ENABLE_OVERLOADING)
data InfoBarSetRevealedMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsInfoBar a) => O.OverloadedMethod InfoBarSetRevealedMethodInfo a signature where
overloadedMethod = infoBarSetRevealed
instance O.OverloadedMethodInfo InfoBarSetRevealedMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.InfoBar.infoBarSetRevealed",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk4-4.0.12/docs/GI-Gtk-Objects-InfoBar.html#v:infoBarSetRevealed"
})
#endif
foreign import ccall "gtk_info_bar_set_show_close_button" gtk_info_bar_set_show_close_button ::
Ptr InfoBar ->
CInt ->
IO ()
{-# DEPRECATED infoBarSetShowCloseButton ["(Since version 4.10)"] #-}
infoBarSetShowCloseButton ::
(B.CallStack.HasCallStack, MonadIO m, IsInfoBar a) =>
a
-> Bool
-> m ()
infoBarSetShowCloseButton :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsInfoBar a) =>
a -> Bool -> m ()
infoBarSetShowCloseButton a
infoBar Bool
setting = 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
infoBar' <- a -> IO (Ptr InfoBar)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
infoBar
let setting' = (Int -> CInt
forall a b. (Integral a, Num b) => a -> b
P.fromIntegral (Int -> CInt) -> (Bool -> Int) -> Bool -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Bool -> Int
forall a. Enum a => a -> Int
P.fromEnum) Bool
setting
gtk_info_bar_set_show_close_button infoBar' setting'
touchManagedPtr infoBar
return ()
#if defined(ENABLE_OVERLOADING)
data InfoBarSetShowCloseButtonMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsInfoBar a) => O.OverloadedMethod InfoBarSetShowCloseButtonMethodInfo a signature where
overloadedMethod = infoBarSetShowCloseButton
instance O.OverloadedMethodInfo InfoBarSetShowCloseButtonMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.InfoBar.infoBarSetShowCloseButton",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk4-4.0.12/docs/GI-Gtk-Objects-InfoBar.html#v:infoBarSetShowCloseButton"
})
#endif