{-# LANGUAGE TypeApplications #-}
#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.Gtk.Objects.Popover
(
Popover(..) ,
IsPopover ,
toPopover ,
#if defined(ENABLE_OVERLOADING)
ResolvePopoverMethod ,
#endif
#if defined(ENABLE_OVERLOADING)
PopoverGetAutohideMethodInfo ,
#endif
popoverGetAutohide ,
#if defined(ENABLE_OVERLOADING)
PopoverGetCascadePopdownMethodInfo ,
#endif
popoverGetCascadePopdown ,
#if defined(ENABLE_OVERLOADING)
PopoverGetChildMethodInfo ,
#endif
popoverGetChild ,
#if defined(ENABLE_OVERLOADING)
PopoverGetHasArrowMethodInfo ,
#endif
popoverGetHasArrow ,
#if defined(ENABLE_OVERLOADING)
PopoverGetMnemonicsVisibleMethodInfo ,
#endif
popoverGetMnemonicsVisible ,
#if defined(ENABLE_OVERLOADING)
PopoverGetOffsetMethodInfo ,
#endif
popoverGetOffset ,
#if defined(ENABLE_OVERLOADING)
PopoverGetPointingToMethodInfo ,
#endif
popoverGetPointingTo ,
#if defined(ENABLE_OVERLOADING)
PopoverGetPositionMethodInfo ,
#endif
popoverGetPosition ,
popoverNew ,
#if defined(ENABLE_OVERLOADING)
PopoverPopdownMethodInfo ,
#endif
popoverPopdown ,
#if defined(ENABLE_OVERLOADING)
PopoverPopupMethodInfo ,
#endif
popoverPopup ,
#if defined(ENABLE_OVERLOADING)
PopoverPresentMethodInfo ,
#endif
popoverPresent ,
#if defined(ENABLE_OVERLOADING)
PopoverSetAutohideMethodInfo ,
#endif
popoverSetAutohide ,
#if defined(ENABLE_OVERLOADING)
PopoverSetCascadePopdownMethodInfo ,
#endif
popoverSetCascadePopdown ,
#if defined(ENABLE_OVERLOADING)
PopoverSetChildMethodInfo ,
#endif
popoverSetChild ,
#if defined(ENABLE_OVERLOADING)
PopoverSetDefaultWidgetMethodInfo ,
#endif
popoverSetDefaultWidget ,
#if defined(ENABLE_OVERLOADING)
PopoverSetHasArrowMethodInfo ,
#endif
popoverSetHasArrow ,
#if defined(ENABLE_OVERLOADING)
PopoverSetMnemonicsVisibleMethodInfo ,
#endif
popoverSetMnemonicsVisible ,
#if defined(ENABLE_OVERLOADING)
PopoverSetOffsetMethodInfo ,
#endif
popoverSetOffset ,
#if defined(ENABLE_OVERLOADING)
PopoverSetPointingToMethodInfo ,
#endif
popoverSetPointingTo ,
#if defined(ENABLE_OVERLOADING)
PopoverSetPositionMethodInfo ,
#endif
popoverSetPosition ,
#if defined(ENABLE_OVERLOADING)
PopoverAutohidePropertyInfo ,
#endif
constructPopoverAutohide ,
getPopoverAutohide ,
#if defined(ENABLE_OVERLOADING)
popoverAutohide ,
#endif
setPopoverAutohide ,
#if defined(ENABLE_OVERLOADING)
PopoverCascadePopdownPropertyInfo ,
#endif
constructPopoverCascadePopdown ,
getPopoverCascadePopdown ,
#if defined(ENABLE_OVERLOADING)
popoverCascadePopdown ,
#endif
setPopoverCascadePopdown ,
#if defined(ENABLE_OVERLOADING)
PopoverChildPropertyInfo ,
#endif
clearPopoverChild ,
constructPopoverChild ,
getPopoverChild ,
#if defined(ENABLE_OVERLOADING)
popoverChild ,
#endif
setPopoverChild ,
#if defined(ENABLE_OVERLOADING)
PopoverDefaultWidgetPropertyInfo ,
#endif
clearPopoverDefaultWidget ,
constructPopoverDefaultWidget ,
getPopoverDefaultWidget ,
#if defined(ENABLE_OVERLOADING)
popoverDefaultWidget ,
#endif
setPopoverDefaultWidget ,
#if defined(ENABLE_OVERLOADING)
PopoverHasArrowPropertyInfo ,
#endif
constructPopoverHasArrow ,
getPopoverHasArrow ,
#if defined(ENABLE_OVERLOADING)
popoverHasArrow ,
#endif
setPopoverHasArrow ,
#if defined(ENABLE_OVERLOADING)
PopoverMnemonicsVisiblePropertyInfo ,
#endif
constructPopoverMnemonicsVisible ,
getPopoverMnemonicsVisible ,
#if defined(ENABLE_OVERLOADING)
popoverMnemonicsVisible ,
#endif
setPopoverMnemonicsVisible ,
#if defined(ENABLE_OVERLOADING)
PopoverPointingToPropertyInfo ,
#endif
constructPopoverPointingTo ,
getPopoverPointingTo ,
#if defined(ENABLE_OVERLOADING)
popoverPointingTo ,
#endif
setPopoverPointingTo ,
#if defined(ENABLE_OVERLOADING)
PopoverPositionPropertyInfo ,
#endif
constructPopoverPosition ,
getPopoverPosition ,
#if defined(ENABLE_OVERLOADING)
popoverPosition ,
#endif
setPopoverPosition ,
C_PopoverActivateDefaultCallback ,
PopoverActivateDefaultCallback ,
#if defined(ENABLE_OVERLOADING)
PopoverActivateDefaultSignalInfo ,
#endif
afterPopoverActivateDefault ,
genClosure_PopoverActivateDefault ,
mk_PopoverActivateDefaultCallback ,
noPopoverActivateDefaultCallback ,
onPopoverActivateDefault ,
wrap_PopoverActivateDefaultCallback ,
C_PopoverClosedCallback ,
PopoverClosedCallback ,
#if defined(ENABLE_OVERLOADING)
PopoverClosedSignalInfo ,
#endif
afterPopoverClosed ,
genClosure_PopoverClosed ,
mk_PopoverClosedCallback ,
noPopoverClosedCallback ,
onPopoverClosed ,
wrap_PopoverClosedCallback ,
) where
import Data.GI.Base.ShortPrelude
import qualified Data.GI.Base.ShortPrelude as SP
import qualified Data.GI.Base.Overloading as O
import qualified Prelude as P
import qualified Data.GI.Base.Attributes as GI.Attributes
import qualified Data.GI.Base.BasicTypes as B.Types
import qualified Data.GI.Base.ManagedPtr as B.ManagedPtr
import qualified Data.GI.Base.GArray as B.GArray
import qualified Data.GI.Base.GClosure as B.GClosure
import qualified Data.GI.Base.GError as B.GError
import qualified Data.GI.Base.GVariant as B.GVariant
import qualified Data.GI.Base.GValue as B.GValue
import qualified Data.GI.Base.GParamSpec as B.GParamSpec
import qualified Data.GI.Base.CallStack as B.CallStack
import qualified Data.GI.Base.Properties as B.Properties
import qualified Data.GI.Base.Signals as B.Signals
import qualified Control.Monad.IO.Class as MIO
import qualified Data.Text as T
import qualified Data.ByteString.Char8 as B
import qualified Data.Map as Map
import qualified Foreign.Ptr as FP
import qualified GHC.OverloadedLabels as OL
import qualified GHC.Records as R
import qualified GI.GObject.Objects.Object as GObject.Object
import qualified GI.Gdk.Structs.Rectangle as Gdk.Rectangle
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.Interfaces.Native as Gtk.Native
import {-# SOURCE #-} qualified GI.Gtk.Interfaces.ShortcutManager as Gtk.ShortcutManager
import {-# SOURCE #-} qualified GI.Gtk.Objects.Widget as Gtk.Widget
newtype Popover = Popover (SP.ManagedPtr Popover)
deriving (Popover -> Popover -> Bool
(Popover -> Popover -> Bool)
-> (Popover -> Popover -> Bool) -> Eq Popover
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Popover -> Popover -> Bool
$c/= :: Popover -> Popover -> Bool
== :: Popover -> Popover -> Bool
$c== :: Popover -> Popover -> Bool
Eq)
instance SP.ManagedPtrNewtype Popover where
toManagedPtr :: Popover -> ManagedPtr Popover
toManagedPtr (Popover ManagedPtr Popover
p) = ManagedPtr Popover
p
foreign import ccall "gtk_popover_get_type"
c_gtk_popover_get_type :: IO B.Types.GType
instance B.Types.TypedObject Popover where
glibType :: IO GType
glibType = IO GType
c_gtk_popover_get_type
instance B.Types.GObject Popover
class (SP.GObject o, O.IsDescendantOf Popover o) => IsPopover o
instance (SP.GObject o, O.IsDescendantOf Popover o) => IsPopover o
instance O.HasParentTypes Popover
type instance O.ParentTypes Popover = '[Gtk.Widget.Widget, GObject.Object.Object, Gtk.Accessible.Accessible, Gtk.Buildable.Buildable, Gtk.ConstraintTarget.ConstraintTarget, Gtk.Native.Native, Gtk.ShortcutManager.ShortcutManager]
toPopover :: (MIO.MonadIO m, IsPopover o) => o -> m Popover
toPopover :: forall (m :: * -> *) o. (MonadIO m, IsPopover o) => o -> m Popover
toPopover = IO Popover -> m Popover
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Popover -> m Popover) -> (o -> IO Popover) -> o -> m Popover
forall b c a. (b -> c) -> (a -> b) -> a -> c
. (ManagedPtr Popover -> Popover) -> o -> IO Popover
forall o o'.
(HasCallStack, ManagedPtrNewtype o, TypedObject o,
ManagedPtrNewtype o', TypedObject o') =>
(ManagedPtr o' -> o') -> o -> IO o'
B.ManagedPtr.unsafeCastTo ManagedPtr Popover -> Popover
Popover
instance B.GValue.IsGValue (Maybe Popover) where
gvalueGType_ :: IO GType
gvalueGType_ = IO GType
c_gtk_popover_get_type
gvalueSet_ :: Ptr GValue -> Maybe Popover -> IO ()
gvalueSet_ Ptr GValue
gv Maybe Popover
P.Nothing = Ptr GValue -> Ptr Popover -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv (Ptr Popover
forall a. Ptr a
FP.nullPtr :: FP.Ptr Popover)
gvalueSet_ Ptr GValue
gv (P.Just Popover
obj) = Popover -> (Ptr Popover -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
B.ManagedPtr.withManagedPtr Popover
obj (Ptr GValue -> Ptr Popover -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv)
gvalueGet_ :: Ptr GValue -> IO (Maybe Popover)
gvalueGet_ Ptr GValue
gv = do
Ptr Popover
ptr <- Ptr GValue -> IO (Ptr Popover)
forall a. GObject a => Ptr GValue -> IO (Ptr a)
B.GValue.get_object Ptr GValue
gv :: IO (FP.Ptr Popover)
if Ptr Popover
ptr Ptr Popover -> Ptr Popover -> Bool
forall a. Eq a => a -> a -> Bool
/= Ptr Popover
forall a. Ptr a
FP.nullPtr
then Popover -> Maybe Popover
forall a. a -> Maybe a
P.Just (Popover -> Maybe Popover) -> IO Popover -> IO (Maybe Popover)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> (ManagedPtr Popover -> Popover) -> Ptr Popover -> IO Popover
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
B.ManagedPtr.newObject ManagedPtr Popover -> Popover
Popover Ptr Popover
ptr
else Maybe Popover -> IO (Maybe Popover)
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe Popover
forall a. Maybe a
P.Nothing
#if defined(ENABLE_OVERLOADING)
type family ResolvePopoverMethod (t :: Symbol) (o :: *) :: * where
ResolvePopoverMethod "actionSetEnabled" o = Gtk.Widget.WidgetActionSetEnabledMethodInfo
ResolvePopoverMethod "activate" o = Gtk.Widget.WidgetActivateMethodInfo
ResolvePopoverMethod "activateAction" o = Gtk.Widget.WidgetActivateActionMethodInfo
ResolvePopoverMethod "activateDefault" o = Gtk.Widget.WidgetActivateDefaultMethodInfo
ResolvePopoverMethod "addController" o = Gtk.Widget.WidgetAddControllerMethodInfo
ResolvePopoverMethod "addCssClass" o = Gtk.Widget.WidgetAddCssClassMethodInfo
ResolvePopoverMethod "addMnemonicLabel" o = Gtk.Widget.WidgetAddMnemonicLabelMethodInfo
ResolvePopoverMethod "addTickCallback" o = Gtk.Widget.WidgetAddTickCallbackMethodInfo
ResolvePopoverMethod "allocate" o = Gtk.Widget.WidgetAllocateMethodInfo
ResolvePopoverMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolvePopoverMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolvePopoverMethod "childFocus" o = Gtk.Widget.WidgetChildFocusMethodInfo
ResolvePopoverMethod "computeBounds" o = Gtk.Widget.WidgetComputeBoundsMethodInfo
ResolvePopoverMethod "computeExpand" o = Gtk.Widget.WidgetComputeExpandMethodInfo
ResolvePopoverMethod "computePoint" o = Gtk.Widget.WidgetComputePointMethodInfo
ResolvePopoverMethod "computeTransform" o = Gtk.Widget.WidgetComputeTransformMethodInfo
ResolvePopoverMethod "contains" o = Gtk.Widget.WidgetContainsMethodInfo
ResolvePopoverMethod "createPangoContext" o = Gtk.Widget.WidgetCreatePangoContextMethodInfo
ResolvePopoverMethod "createPangoLayout" o = Gtk.Widget.WidgetCreatePangoLayoutMethodInfo
ResolvePopoverMethod "dragCheckThreshold" o = Gtk.Widget.WidgetDragCheckThresholdMethodInfo
ResolvePopoverMethod "errorBell" o = Gtk.Widget.WidgetErrorBellMethodInfo
ResolvePopoverMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolvePopoverMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolvePopoverMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
ResolvePopoverMethod "grabFocus" o = Gtk.Widget.WidgetGrabFocusMethodInfo
ResolvePopoverMethod "hasCssClass" o = Gtk.Widget.WidgetHasCssClassMethodInfo
ResolvePopoverMethod "hasDefault" o = Gtk.Widget.WidgetHasDefaultMethodInfo
ResolvePopoverMethod "hasFocus" o = Gtk.Widget.WidgetHasFocusMethodInfo
ResolvePopoverMethod "hasVisibleFocus" o = Gtk.Widget.WidgetHasVisibleFocusMethodInfo
ResolvePopoverMethod "hide" o = Gtk.Widget.WidgetHideMethodInfo
ResolvePopoverMethod "inDestruction" o = Gtk.Widget.WidgetInDestructionMethodInfo
ResolvePopoverMethod "initTemplate" o = Gtk.Widget.WidgetInitTemplateMethodInfo
ResolvePopoverMethod "insertActionGroup" o = Gtk.Widget.WidgetInsertActionGroupMethodInfo
ResolvePopoverMethod "insertAfter" o = Gtk.Widget.WidgetInsertAfterMethodInfo
ResolvePopoverMethod "insertBefore" o = Gtk.Widget.WidgetInsertBeforeMethodInfo
ResolvePopoverMethod "isAncestor" o = Gtk.Widget.WidgetIsAncestorMethodInfo
ResolvePopoverMethod "isDrawable" o = Gtk.Widget.WidgetIsDrawableMethodInfo
ResolvePopoverMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolvePopoverMethod "isFocus" o = Gtk.Widget.WidgetIsFocusMethodInfo
ResolvePopoverMethod "isSensitive" o = Gtk.Widget.WidgetIsSensitiveMethodInfo
ResolvePopoverMethod "isVisible" o = Gtk.Widget.WidgetIsVisibleMethodInfo
ResolvePopoverMethod "keynavFailed" o = Gtk.Widget.WidgetKeynavFailedMethodInfo
ResolvePopoverMethod "listMnemonicLabels" o = Gtk.Widget.WidgetListMnemonicLabelsMethodInfo
ResolvePopoverMethod "map" o = Gtk.Widget.WidgetMapMethodInfo
ResolvePopoverMethod "measure" o = Gtk.Widget.WidgetMeasureMethodInfo
ResolvePopoverMethod "mnemonicActivate" o = Gtk.Widget.WidgetMnemonicActivateMethodInfo
ResolvePopoverMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolvePopoverMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolvePopoverMethod "observeChildren" o = Gtk.Widget.WidgetObserveChildrenMethodInfo
ResolvePopoverMethod "observeControllers" o = Gtk.Widget.WidgetObserveControllersMethodInfo
ResolvePopoverMethod "pick" o = Gtk.Widget.WidgetPickMethodInfo
ResolvePopoverMethod "popdown" o = PopoverPopdownMethodInfo
ResolvePopoverMethod "popup" o = PopoverPopupMethodInfo
ResolvePopoverMethod "present" o = PopoverPresentMethodInfo
ResolvePopoverMethod "queueAllocate" o = Gtk.Widget.WidgetQueueAllocateMethodInfo
ResolvePopoverMethod "queueDraw" o = Gtk.Widget.WidgetQueueDrawMethodInfo
ResolvePopoverMethod "queueResize" o = Gtk.Widget.WidgetQueueResizeMethodInfo
ResolvePopoverMethod "realize" o = Gtk.Widget.WidgetRealizeMethodInfo
ResolvePopoverMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolvePopoverMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolvePopoverMethod "removeController" o = Gtk.Widget.WidgetRemoveControllerMethodInfo
ResolvePopoverMethod "removeCssClass" o = Gtk.Widget.WidgetRemoveCssClassMethodInfo
ResolvePopoverMethod "removeMnemonicLabel" o = Gtk.Widget.WidgetRemoveMnemonicLabelMethodInfo
ResolvePopoverMethod "removeTickCallback" o = Gtk.Widget.WidgetRemoveTickCallbackMethodInfo
ResolvePopoverMethod "resetProperty" o = Gtk.Accessible.AccessibleResetPropertyMethodInfo
ResolvePopoverMethod "resetRelation" o = Gtk.Accessible.AccessibleResetRelationMethodInfo
ResolvePopoverMethod "resetState" o = Gtk.Accessible.AccessibleResetStateMethodInfo
ResolvePopoverMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolvePopoverMethod "shouldLayout" o = Gtk.Widget.WidgetShouldLayoutMethodInfo
ResolvePopoverMethod "show" o = Gtk.Widget.WidgetShowMethodInfo
ResolvePopoverMethod "sizeAllocate" o = Gtk.Widget.WidgetSizeAllocateMethodInfo
ResolvePopoverMethod "snapshotChild" o = Gtk.Widget.WidgetSnapshotChildMethodInfo
ResolvePopoverMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolvePopoverMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolvePopoverMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolvePopoverMethod "translateCoordinates" o = Gtk.Widget.WidgetTranslateCoordinatesMethodInfo
ResolvePopoverMethod "triggerTooltipQuery" o = Gtk.Widget.WidgetTriggerTooltipQueryMethodInfo
ResolvePopoverMethod "unmap" o = Gtk.Widget.WidgetUnmapMethodInfo
ResolvePopoverMethod "unparent" o = Gtk.Widget.WidgetUnparentMethodInfo
ResolvePopoverMethod "unrealize" o = Gtk.Widget.WidgetUnrealizeMethodInfo
ResolvePopoverMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolvePopoverMethod "unsetStateFlags" o = Gtk.Widget.WidgetUnsetStateFlagsMethodInfo
ResolvePopoverMethod "updateProperty" o = Gtk.Accessible.AccessibleUpdatePropertyMethodInfo
ResolvePopoverMethod "updateRelation" o = Gtk.Accessible.AccessibleUpdateRelationMethodInfo
ResolvePopoverMethod "updateState" o = Gtk.Accessible.AccessibleUpdateStateMethodInfo
ResolvePopoverMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolvePopoverMethod "getAccessibleRole" o = Gtk.Accessible.AccessibleGetAccessibleRoleMethodInfo
ResolvePopoverMethod "getAllocatedBaseline" o = Gtk.Widget.WidgetGetAllocatedBaselineMethodInfo
ResolvePopoverMethod "getAllocatedHeight" o = Gtk.Widget.WidgetGetAllocatedHeightMethodInfo
ResolvePopoverMethod "getAllocatedWidth" o = Gtk.Widget.WidgetGetAllocatedWidthMethodInfo
ResolvePopoverMethod "getAllocation" o = Gtk.Widget.WidgetGetAllocationMethodInfo
ResolvePopoverMethod "getAncestor" o = Gtk.Widget.WidgetGetAncestorMethodInfo
ResolvePopoverMethod "getAutohide" o = PopoverGetAutohideMethodInfo
ResolvePopoverMethod "getBuildableId" o = Gtk.Buildable.BuildableGetBuildableIdMethodInfo
ResolvePopoverMethod "getCanFocus" o = Gtk.Widget.WidgetGetCanFocusMethodInfo
ResolvePopoverMethod "getCanTarget" o = Gtk.Widget.WidgetGetCanTargetMethodInfo
ResolvePopoverMethod "getCascadePopdown" o = PopoverGetCascadePopdownMethodInfo
ResolvePopoverMethod "getChild" o = PopoverGetChildMethodInfo
ResolvePopoverMethod "getChildVisible" o = Gtk.Widget.WidgetGetChildVisibleMethodInfo
ResolvePopoverMethod "getClipboard" o = Gtk.Widget.WidgetGetClipboardMethodInfo
ResolvePopoverMethod "getCssClasses" o = Gtk.Widget.WidgetGetCssClassesMethodInfo
ResolvePopoverMethod "getCssName" o = Gtk.Widget.WidgetGetCssNameMethodInfo
ResolvePopoverMethod "getCursor" o = Gtk.Widget.WidgetGetCursorMethodInfo
ResolvePopoverMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolvePopoverMethod "getDirection" o = Gtk.Widget.WidgetGetDirectionMethodInfo
ResolvePopoverMethod "getDisplay" o = Gtk.Widget.WidgetGetDisplayMethodInfo
ResolvePopoverMethod "getFirstChild" o = Gtk.Widget.WidgetGetFirstChildMethodInfo
ResolvePopoverMethod "getFocusChild" o = Gtk.Widget.WidgetGetFocusChildMethodInfo
ResolvePopoverMethod "getFocusOnClick" o = Gtk.Widget.WidgetGetFocusOnClickMethodInfo
ResolvePopoverMethod "getFocusable" o = Gtk.Widget.WidgetGetFocusableMethodInfo
ResolvePopoverMethod "getFontMap" o = Gtk.Widget.WidgetGetFontMapMethodInfo
ResolvePopoverMethod "getFontOptions" o = Gtk.Widget.WidgetGetFontOptionsMethodInfo
ResolvePopoverMethod "getFrameClock" o = Gtk.Widget.WidgetGetFrameClockMethodInfo
ResolvePopoverMethod "getHalign" o = Gtk.Widget.WidgetGetHalignMethodInfo
ResolvePopoverMethod "getHasArrow" o = PopoverGetHasArrowMethodInfo
ResolvePopoverMethod "getHasTooltip" o = Gtk.Widget.WidgetGetHasTooltipMethodInfo
ResolvePopoverMethod "getHeight" o = Gtk.Widget.WidgetGetHeightMethodInfo
ResolvePopoverMethod "getHexpand" o = Gtk.Widget.WidgetGetHexpandMethodInfo
ResolvePopoverMethod "getHexpandSet" o = Gtk.Widget.WidgetGetHexpandSetMethodInfo
ResolvePopoverMethod "getLastChild" o = Gtk.Widget.WidgetGetLastChildMethodInfo
ResolvePopoverMethod "getLayoutManager" o = Gtk.Widget.WidgetGetLayoutManagerMethodInfo
ResolvePopoverMethod "getMapped" o = Gtk.Widget.WidgetGetMappedMethodInfo
ResolvePopoverMethod "getMarginBottom" o = Gtk.Widget.WidgetGetMarginBottomMethodInfo
ResolvePopoverMethod "getMarginEnd" o = Gtk.Widget.WidgetGetMarginEndMethodInfo
ResolvePopoverMethod "getMarginStart" o = Gtk.Widget.WidgetGetMarginStartMethodInfo
ResolvePopoverMethod "getMarginTop" o = Gtk.Widget.WidgetGetMarginTopMethodInfo
ResolvePopoverMethod "getMnemonicsVisible" o = PopoverGetMnemonicsVisibleMethodInfo
ResolvePopoverMethod "getName" o = Gtk.Widget.WidgetGetNameMethodInfo
ResolvePopoverMethod "getNative" o = Gtk.Widget.WidgetGetNativeMethodInfo
ResolvePopoverMethod "getNextSibling" o = Gtk.Widget.WidgetGetNextSiblingMethodInfo
ResolvePopoverMethod "getOffset" o = PopoverGetOffsetMethodInfo
ResolvePopoverMethod "getOpacity" o = Gtk.Widget.WidgetGetOpacityMethodInfo
ResolvePopoverMethod "getOverflow" o = Gtk.Widget.WidgetGetOverflowMethodInfo
ResolvePopoverMethod "getPangoContext" o = Gtk.Widget.WidgetGetPangoContextMethodInfo
ResolvePopoverMethod "getParent" o = Gtk.Widget.WidgetGetParentMethodInfo
ResolvePopoverMethod "getPointingTo" o = PopoverGetPointingToMethodInfo
ResolvePopoverMethod "getPosition" o = PopoverGetPositionMethodInfo
ResolvePopoverMethod "getPreferredSize" o = Gtk.Widget.WidgetGetPreferredSizeMethodInfo
ResolvePopoverMethod "getPrevSibling" o = Gtk.Widget.WidgetGetPrevSiblingMethodInfo
ResolvePopoverMethod "getPrimaryClipboard" o = Gtk.Widget.WidgetGetPrimaryClipboardMethodInfo
ResolvePopoverMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolvePopoverMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolvePopoverMethod "getRealized" o = Gtk.Widget.WidgetGetRealizedMethodInfo
ResolvePopoverMethod "getReceivesDefault" o = Gtk.Widget.WidgetGetReceivesDefaultMethodInfo
ResolvePopoverMethod "getRenderer" o = Gtk.Native.NativeGetRendererMethodInfo
ResolvePopoverMethod "getRequestMode" o = Gtk.Widget.WidgetGetRequestModeMethodInfo
ResolvePopoverMethod "getRoot" o = Gtk.Widget.WidgetGetRootMethodInfo
ResolvePopoverMethod "getScaleFactor" o = Gtk.Widget.WidgetGetScaleFactorMethodInfo
ResolvePopoverMethod "getSensitive" o = Gtk.Widget.WidgetGetSensitiveMethodInfo
ResolvePopoverMethod "getSettings" o = Gtk.Widget.WidgetGetSettingsMethodInfo
ResolvePopoverMethod "getSize" o = Gtk.Widget.WidgetGetSizeMethodInfo
ResolvePopoverMethod "getSizeRequest" o = Gtk.Widget.WidgetGetSizeRequestMethodInfo
ResolvePopoverMethod "getStateFlags" o = Gtk.Widget.WidgetGetStateFlagsMethodInfo
ResolvePopoverMethod "getStyleContext" o = Gtk.Widget.WidgetGetStyleContextMethodInfo
ResolvePopoverMethod "getSurface" o = Gtk.Native.NativeGetSurfaceMethodInfo
ResolvePopoverMethod "getSurfaceTransform" o = Gtk.Native.NativeGetSurfaceTransformMethodInfo
ResolvePopoverMethod "getTemplateChild" o = Gtk.Widget.WidgetGetTemplateChildMethodInfo
ResolvePopoverMethod "getTooltipMarkup" o = Gtk.Widget.WidgetGetTooltipMarkupMethodInfo
ResolvePopoverMethod "getTooltipText" o = Gtk.Widget.WidgetGetTooltipTextMethodInfo
ResolvePopoverMethod "getValign" o = Gtk.Widget.WidgetGetValignMethodInfo
ResolvePopoverMethod "getVexpand" o = Gtk.Widget.WidgetGetVexpandMethodInfo
ResolvePopoverMethod "getVexpandSet" o = Gtk.Widget.WidgetGetVexpandSetMethodInfo
ResolvePopoverMethod "getVisible" o = Gtk.Widget.WidgetGetVisibleMethodInfo
ResolvePopoverMethod "getWidth" o = Gtk.Widget.WidgetGetWidthMethodInfo
ResolvePopoverMethod "setAutohide" o = PopoverSetAutohideMethodInfo
ResolvePopoverMethod "setCanFocus" o = Gtk.Widget.WidgetSetCanFocusMethodInfo
ResolvePopoverMethod "setCanTarget" o = Gtk.Widget.WidgetSetCanTargetMethodInfo
ResolvePopoverMethod "setCascadePopdown" o = PopoverSetCascadePopdownMethodInfo
ResolvePopoverMethod "setChild" o = PopoverSetChildMethodInfo
ResolvePopoverMethod "setChildVisible" o = Gtk.Widget.WidgetSetChildVisibleMethodInfo
ResolvePopoverMethod "setCssClasses" o = Gtk.Widget.WidgetSetCssClassesMethodInfo
ResolvePopoverMethod "setCursor" o = Gtk.Widget.WidgetSetCursorMethodInfo
ResolvePopoverMethod "setCursorFromName" o = Gtk.Widget.WidgetSetCursorFromNameMethodInfo
ResolvePopoverMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolvePopoverMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
ResolvePopoverMethod "setDefaultWidget" o = PopoverSetDefaultWidgetMethodInfo
ResolvePopoverMethod "setDirection" o = Gtk.Widget.WidgetSetDirectionMethodInfo
ResolvePopoverMethod "setFocusChild" o = Gtk.Widget.WidgetSetFocusChildMethodInfo
ResolvePopoverMethod "setFocusOnClick" o = Gtk.Widget.WidgetSetFocusOnClickMethodInfo
ResolvePopoverMethod "setFocusable" o = Gtk.Widget.WidgetSetFocusableMethodInfo
ResolvePopoverMethod "setFontMap" o = Gtk.Widget.WidgetSetFontMapMethodInfo
ResolvePopoverMethod "setFontOptions" o = Gtk.Widget.WidgetSetFontOptionsMethodInfo
ResolvePopoverMethod "setHalign" o = Gtk.Widget.WidgetSetHalignMethodInfo
ResolvePopoverMethod "setHasArrow" o = PopoverSetHasArrowMethodInfo
ResolvePopoverMethod "setHasTooltip" o = Gtk.Widget.WidgetSetHasTooltipMethodInfo
ResolvePopoverMethod "setHexpand" o = Gtk.Widget.WidgetSetHexpandMethodInfo
ResolvePopoverMethod "setHexpandSet" o = Gtk.Widget.WidgetSetHexpandSetMethodInfo
ResolvePopoverMethod "setLayoutManager" o = Gtk.Widget.WidgetSetLayoutManagerMethodInfo
ResolvePopoverMethod "setMarginBottom" o = Gtk.Widget.WidgetSetMarginBottomMethodInfo
ResolvePopoverMethod "setMarginEnd" o = Gtk.Widget.WidgetSetMarginEndMethodInfo
ResolvePopoverMethod "setMarginStart" o = Gtk.Widget.WidgetSetMarginStartMethodInfo
ResolvePopoverMethod "setMarginTop" o = Gtk.Widget.WidgetSetMarginTopMethodInfo
ResolvePopoverMethod "setMnemonicsVisible" o = PopoverSetMnemonicsVisibleMethodInfo
ResolvePopoverMethod "setName" o = Gtk.Widget.WidgetSetNameMethodInfo
ResolvePopoverMethod "setOffset" o = PopoverSetOffsetMethodInfo
ResolvePopoverMethod "setOpacity" o = Gtk.Widget.WidgetSetOpacityMethodInfo
ResolvePopoverMethod "setOverflow" o = Gtk.Widget.WidgetSetOverflowMethodInfo
ResolvePopoverMethod "setParent" o = Gtk.Widget.WidgetSetParentMethodInfo
ResolvePopoverMethod "setPointingTo" o = PopoverSetPointingToMethodInfo
ResolvePopoverMethod "setPosition" o = PopoverSetPositionMethodInfo
ResolvePopoverMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolvePopoverMethod "setReceivesDefault" o = Gtk.Widget.WidgetSetReceivesDefaultMethodInfo
ResolvePopoverMethod "setSensitive" o = Gtk.Widget.WidgetSetSensitiveMethodInfo
ResolvePopoverMethod "setSizeRequest" o = Gtk.Widget.WidgetSetSizeRequestMethodInfo
ResolvePopoverMethod "setStateFlags" o = Gtk.Widget.WidgetSetStateFlagsMethodInfo
ResolvePopoverMethod "setTooltipMarkup" o = Gtk.Widget.WidgetSetTooltipMarkupMethodInfo
ResolvePopoverMethod "setTooltipText" o = Gtk.Widget.WidgetSetTooltipTextMethodInfo
ResolvePopoverMethod "setValign" o = Gtk.Widget.WidgetSetValignMethodInfo
ResolvePopoverMethod "setVexpand" o = Gtk.Widget.WidgetSetVexpandMethodInfo
ResolvePopoverMethod "setVexpandSet" o = Gtk.Widget.WidgetSetVexpandSetMethodInfo
ResolvePopoverMethod "setVisible" o = Gtk.Widget.WidgetSetVisibleMethodInfo
ResolvePopoverMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolvePopoverMethod t Popover, O.OverloadedMethod info Popover p) => OL.IsLabel t (Popover -> 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 ~ ResolvePopoverMethod t Popover, O.OverloadedMethod info Popover p, R.HasField t Popover p) => R.HasField t Popover p where
getField = O.overloadedMethod @info
#endif
instance (info ~ ResolvePopoverMethod t Popover, O.OverloadedMethodInfo info Popover) => OL.IsLabel t (O.MethodProxy info Popover) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.MethodProxy
#else
fromLabel _ = O.MethodProxy
#endif
#endif
type PopoverActivateDefaultCallback =
IO ()
noPopoverActivateDefaultCallback :: Maybe PopoverActivateDefaultCallback
noPopoverActivateDefaultCallback :: Maybe (IO ())
noPopoverActivateDefaultCallback = Maybe (IO ())
forall a. Maybe a
Nothing
type C_PopoverActivateDefaultCallback =
Ptr () ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_PopoverActivateDefaultCallback :: C_PopoverActivateDefaultCallback -> IO (FunPtr C_PopoverActivateDefaultCallback)
genClosure_PopoverActivateDefault :: MonadIO m => PopoverActivateDefaultCallback -> m (GClosure C_PopoverActivateDefaultCallback)
genClosure_PopoverActivateDefault :: forall (m :: * -> *).
MonadIO m =>
IO () -> m (GClosure C_PopoverActivateDefaultCallback)
genClosure_PopoverActivateDefault IO ()
cb = IO (GClosure C_PopoverActivateDefaultCallback)
-> m (GClosure C_PopoverActivateDefaultCallback)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (GClosure C_PopoverActivateDefaultCallback)
-> m (GClosure C_PopoverActivateDefaultCallback))
-> IO (GClosure C_PopoverActivateDefaultCallback)
-> m (GClosure C_PopoverActivateDefaultCallback)
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_PopoverActivateDefaultCallback
cb' = IO () -> C_PopoverActivateDefaultCallback
wrap_PopoverActivateDefaultCallback IO ()
cb
C_PopoverActivateDefaultCallback
-> IO (FunPtr C_PopoverActivateDefaultCallback)
mk_PopoverActivateDefaultCallback C_PopoverActivateDefaultCallback
cb' IO (FunPtr C_PopoverActivateDefaultCallback)
-> (FunPtr C_PopoverActivateDefaultCallback
-> IO (GClosure C_PopoverActivateDefaultCallback))
-> IO (GClosure C_PopoverActivateDefaultCallback)
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= FunPtr C_PopoverActivateDefaultCallback
-> IO (GClosure C_PopoverActivateDefaultCallback)
forall (m :: * -> *) a. MonadIO m => FunPtr a -> m (GClosure a)
B.GClosure.newGClosure
wrap_PopoverActivateDefaultCallback ::
PopoverActivateDefaultCallback ->
C_PopoverActivateDefaultCallback
wrap_PopoverActivateDefaultCallback :: IO () -> C_PopoverActivateDefaultCallback
wrap_PopoverActivateDefaultCallback IO ()
_cb Ptr ()
_ Ptr ()
_ = do
IO ()
_cb
onPopoverActivateDefault :: (IsPopover a, MonadIO m) => a -> PopoverActivateDefaultCallback -> m SignalHandlerId
onPopoverActivateDefault :: forall a (m :: * -> *).
(IsPopover a, MonadIO m) =>
a -> IO () -> m SignalHandlerId
onPopoverActivateDefault a
obj IO ()
cb = IO SignalHandlerId -> m SignalHandlerId
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_PopoverActivateDefaultCallback
cb' = IO () -> C_PopoverActivateDefaultCallback
wrap_PopoverActivateDefaultCallback IO ()
cb
FunPtr C_PopoverActivateDefaultCallback
cb'' <- C_PopoverActivateDefaultCallback
-> IO (FunPtr C_PopoverActivateDefaultCallback)
mk_PopoverActivateDefaultCallback C_PopoverActivateDefaultCallback
cb'
a
-> Text
-> FunPtr C_PopoverActivateDefaultCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"activate-default" FunPtr C_PopoverActivateDefaultCallback
cb'' SignalConnectMode
SignalConnectBefore Maybe Text
forall a. Maybe a
Nothing
afterPopoverActivateDefault :: (IsPopover a, MonadIO m) => a -> PopoverActivateDefaultCallback -> m SignalHandlerId
afterPopoverActivateDefault :: forall a (m :: * -> *).
(IsPopover a, MonadIO m) =>
a -> IO () -> m SignalHandlerId
afterPopoverActivateDefault a
obj IO ()
cb = IO SignalHandlerId -> m SignalHandlerId
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_PopoverActivateDefaultCallback
cb' = IO () -> C_PopoverActivateDefaultCallback
wrap_PopoverActivateDefaultCallback IO ()
cb
FunPtr C_PopoverActivateDefaultCallback
cb'' <- C_PopoverActivateDefaultCallback
-> IO (FunPtr C_PopoverActivateDefaultCallback)
mk_PopoverActivateDefaultCallback C_PopoverActivateDefaultCallback
cb'
a
-> Text
-> FunPtr C_PopoverActivateDefaultCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"activate-default" FunPtr C_PopoverActivateDefaultCallback
cb'' SignalConnectMode
SignalConnectAfter Maybe Text
forall a. Maybe a
Nothing
#if defined(ENABLE_OVERLOADING)
data PopoverActivateDefaultSignalInfo
instance SignalInfo PopoverActivateDefaultSignalInfo where
type HaskellCallbackType PopoverActivateDefaultSignalInfo = PopoverActivateDefaultCallback
connectSignal obj cb connectMode detail = do
let cb' = wrap_PopoverActivateDefaultCallback cb
cb'' <- mk_PopoverActivateDefaultCallback cb'
connectSignalFunPtr obj "activate-default" cb'' connectMode detail
#endif
type PopoverClosedCallback =
IO ()
noPopoverClosedCallback :: Maybe PopoverClosedCallback
noPopoverClosedCallback :: Maybe (IO ())
noPopoverClosedCallback = Maybe (IO ())
forall a. Maybe a
Nothing
type C_PopoverClosedCallback =
Ptr () ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_PopoverClosedCallback :: C_PopoverClosedCallback -> IO (FunPtr C_PopoverClosedCallback)
genClosure_PopoverClosed :: MonadIO m => PopoverClosedCallback -> m (GClosure C_PopoverClosedCallback)
genClosure_PopoverClosed :: forall (m :: * -> *).
MonadIO m =>
IO () -> m (GClosure C_PopoverActivateDefaultCallback)
genClosure_PopoverClosed IO ()
cb = IO (GClosure C_PopoverActivateDefaultCallback)
-> m (GClosure C_PopoverActivateDefaultCallback)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (GClosure C_PopoverActivateDefaultCallback)
-> m (GClosure C_PopoverActivateDefaultCallback))
-> IO (GClosure C_PopoverActivateDefaultCallback)
-> m (GClosure C_PopoverActivateDefaultCallback)
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_PopoverActivateDefaultCallback
cb' = IO () -> C_PopoverActivateDefaultCallback
wrap_PopoverClosedCallback IO ()
cb
C_PopoverActivateDefaultCallback
-> IO (FunPtr C_PopoverActivateDefaultCallback)
mk_PopoverClosedCallback C_PopoverActivateDefaultCallback
cb' IO (FunPtr C_PopoverActivateDefaultCallback)
-> (FunPtr C_PopoverActivateDefaultCallback
-> IO (GClosure C_PopoverActivateDefaultCallback))
-> IO (GClosure C_PopoverActivateDefaultCallback)
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= FunPtr C_PopoverActivateDefaultCallback
-> IO (GClosure C_PopoverActivateDefaultCallback)
forall (m :: * -> *) a. MonadIO m => FunPtr a -> m (GClosure a)
B.GClosure.newGClosure
wrap_PopoverClosedCallback ::
PopoverClosedCallback ->
C_PopoverClosedCallback
wrap_PopoverClosedCallback :: IO () -> C_PopoverActivateDefaultCallback
wrap_PopoverClosedCallback IO ()
_cb Ptr ()
_ Ptr ()
_ = do
IO ()
_cb
onPopoverClosed :: (IsPopover a, MonadIO m) => a -> PopoverClosedCallback -> m SignalHandlerId
onPopoverClosed :: forall a (m :: * -> *).
(IsPopover a, MonadIO m) =>
a -> IO () -> m SignalHandlerId
onPopoverClosed a
obj IO ()
cb = IO SignalHandlerId -> m SignalHandlerId
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_PopoverActivateDefaultCallback
cb' = IO () -> C_PopoverActivateDefaultCallback
wrap_PopoverClosedCallback IO ()
cb
FunPtr C_PopoverActivateDefaultCallback
cb'' <- C_PopoverActivateDefaultCallback
-> IO (FunPtr C_PopoverActivateDefaultCallback)
mk_PopoverClosedCallback C_PopoverActivateDefaultCallback
cb'
a
-> Text
-> FunPtr C_PopoverActivateDefaultCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"closed" FunPtr C_PopoverActivateDefaultCallback
cb'' SignalConnectMode
SignalConnectBefore Maybe Text
forall a. Maybe a
Nothing
afterPopoverClosed :: (IsPopover a, MonadIO m) => a -> PopoverClosedCallback -> m SignalHandlerId
afterPopoverClosed :: forall a (m :: * -> *).
(IsPopover a, MonadIO m) =>
a -> IO () -> m SignalHandlerId
afterPopoverClosed a
obj IO ()
cb = IO SignalHandlerId -> m SignalHandlerId
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_PopoverActivateDefaultCallback
cb' = IO () -> C_PopoverActivateDefaultCallback
wrap_PopoverClosedCallback IO ()
cb
FunPtr C_PopoverActivateDefaultCallback
cb'' <- C_PopoverActivateDefaultCallback
-> IO (FunPtr C_PopoverActivateDefaultCallback)
mk_PopoverClosedCallback C_PopoverActivateDefaultCallback
cb'
a
-> Text
-> FunPtr C_PopoverActivateDefaultCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"closed" FunPtr C_PopoverActivateDefaultCallback
cb'' SignalConnectMode
SignalConnectAfter Maybe Text
forall a. Maybe a
Nothing
#if defined(ENABLE_OVERLOADING)
data PopoverClosedSignalInfo
instance SignalInfo PopoverClosedSignalInfo where
type HaskellCallbackType PopoverClosedSignalInfo = PopoverClosedCallback
connectSignal obj cb connectMode detail = do
let cb' = wrap_PopoverClosedCallback cb
cb'' <- mk_PopoverClosedCallback cb'
connectSignalFunPtr obj "closed" cb'' connectMode detail
#endif
getPopoverAutohide :: (MonadIO m, IsPopover o) => o -> m Bool
getPopoverAutohide :: forall (m :: * -> *) o. (MonadIO m, IsPopover o) => o -> m Bool
getPopoverAutohide o
obj = IO Bool -> m Bool
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
"autohide"
setPopoverAutohide :: (MonadIO m, IsPopover o) => o -> Bool -> m ()
setPopoverAutohide :: forall (m :: * -> *) o.
(MonadIO m, IsPopover o) =>
o -> Bool -> m ()
setPopoverAutohide o
obj Bool
val = IO () -> m ()
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
"autohide" Bool
val
constructPopoverAutohide :: (IsPopover o, MIO.MonadIO m) => Bool -> m (GValueConstruct o)
constructPopoverAutohide :: forall o (m :: * -> *).
(IsPopover o, MonadIO m) =>
Bool -> m (GValueConstruct o)
constructPopoverAutohide Bool
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
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
"autohide" Bool
val
#if defined(ENABLE_OVERLOADING)
data PopoverAutohidePropertyInfo
instance AttrInfo PopoverAutohidePropertyInfo where
type AttrAllowedOps PopoverAutohidePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint PopoverAutohidePropertyInfo = IsPopover
type AttrSetTypeConstraint PopoverAutohidePropertyInfo = (~) Bool
type AttrTransferTypeConstraint PopoverAutohidePropertyInfo = (~) Bool
type AttrTransferType PopoverAutohidePropertyInfo = Bool
type AttrGetType PopoverAutohidePropertyInfo = Bool
type AttrLabel PopoverAutohidePropertyInfo = "autohide"
type AttrOrigin PopoverAutohidePropertyInfo = Popover
attrGet = getPopoverAutohide
attrSet = setPopoverAutohide
attrTransfer _ v = do
return v
attrConstruct = constructPopoverAutohide
attrClear = undefined
#endif
getPopoverCascadePopdown :: (MonadIO m, IsPopover o) => o -> m Bool
getPopoverCascadePopdown :: forall (m :: * -> *) o. (MonadIO m, IsPopover o) => o -> m Bool
getPopoverCascadePopdown o
obj = IO Bool -> m Bool
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
"cascade-popdown"
setPopoverCascadePopdown :: (MonadIO m, IsPopover o) => o -> Bool -> m ()
setPopoverCascadePopdown :: forall (m :: * -> *) o.
(MonadIO m, IsPopover o) =>
o -> Bool -> m ()
setPopoverCascadePopdown o
obj Bool
val = IO () -> m ()
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
"cascade-popdown" Bool
val
constructPopoverCascadePopdown :: (IsPopover o, MIO.MonadIO m) => Bool -> m (GValueConstruct o)
constructPopoverCascadePopdown :: forall o (m :: * -> *).
(IsPopover o, MonadIO m) =>
Bool -> m (GValueConstruct o)
constructPopoverCascadePopdown Bool
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
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
"cascade-popdown" Bool
val
#if defined(ENABLE_OVERLOADING)
data PopoverCascadePopdownPropertyInfo
instance AttrInfo PopoverCascadePopdownPropertyInfo where
type AttrAllowedOps PopoverCascadePopdownPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint PopoverCascadePopdownPropertyInfo = IsPopover
type AttrSetTypeConstraint PopoverCascadePopdownPropertyInfo = (~) Bool
type AttrTransferTypeConstraint PopoverCascadePopdownPropertyInfo = (~) Bool
type AttrTransferType PopoverCascadePopdownPropertyInfo = Bool
type AttrGetType PopoverCascadePopdownPropertyInfo = Bool
type AttrLabel PopoverCascadePopdownPropertyInfo = "cascade-popdown"
type AttrOrigin PopoverCascadePopdownPropertyInfo = Popover
attrGet = getPopoverCascadePopdown
attrSet = setPopoverCascadePopdown
attrTransfer _ v = do
return v
attrConstruct = constructPopoverCascadePopdown
attrClear = undefined
#endif
getPopoverChild :: (MonadIO m, IsPopover o) => o -> m (Maybe Gtk.Widget.Widget)
getPopoverChild :: forall (m :: * -> *) o.
(MonadIO m, IsPopover o) =>
o -> m (Maybe Widget)
getPopoverChild o
obj = IO (Maybe Widget) -> m (Maybe Widget)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (Maybe Widget) -> m (Maybe Widget))
-> IO (Maybe Widget) -> m (Maybe Widget)
forall a b. (a -> b) -> a -> b
$ o -> String -> (ManagedPtr Widget -> Widget) -> IO (Maybe Widget)
forall a b.
(GObject a, GObject b) =>
a -> String -> (ManagedPtr b -> b) -> IO (Maybe b)
B.Properties.getObjectPropertyObject o
obj String
"child" ManagedPtr Widget -> Widget
Gtk.Widget.Widget
setPopoverChild :: (MonadIO m, IsPopover o, Gtk.Widget.IsWidget a) => o -> a -> m ()
setPopoverChild :: forall (m :: * -> *) o a.
(MonadIO m, IsPopover o, IsWidget a) =>
o -> a -> m ()
setPopoverChild o
obj a
val = IO () -> m ()
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 -> Maybe a -> IO ()
forall a b.
(GObject a, GObject b) =>
a -> String -> Maybe b -> IO ()
B.Properties.setObjectPropertyObject o
obj String
"child" (a -> Maybe a
forall a. a -> Maybe a
Just a
val)
constructPopoverChild :: (IsPopover o, MIO.MonadIO m, Gtk.Widget.IsWidget a) => a -> m (GValueConstruct o)
constructPopoverChild :: forall o (m :: * -> *) a.
(IsPopover o, MonadIO m, IsWidget a) =>
a -> m (GValueConstruct o)
constructPopoverChild a
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
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 -> Maybe a -> IO (GValueConstruct o)
forall a o.
GObject a =>
String -> Maybe a -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyObject String
"child" (a -> Maybe a
forall a. a -> Maybe a
P.Just a
val)
clearPopoverChild :: (MonadIO m, IsPopover o) => o -> m ()
clearPopoverChild :: forall (m :: * -> *) o. (MonadIO m, IsPopover o) => o -> m ()
clearPopoverChild o
obj = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe Widget -> IO ()
forall a b.
(GObject a, GObject b) =>
a -> String -> Maybe b -> IO ()
B.Properties.setObjectPropertyObject o
obj String
"child" (Maybe Widget
forall a. Maybe a
Nothing :: Maybe Gtk.Widget.Widget)
#if defined(ENABLE_OVERLOADING)
data PopoverChildPropertyInfo
instance AttrInfo PopoverChildPropertyInfo where
type AttrAllowedOps PopoverChildPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint PopoverChildPropertyInfo = IsPopover
type AttrSetTypeConstraint PopoverChildPropertyInfo = Gtk.Widget.IsWidget
type AttrTransferTypeConstraint PopoverChildPropertyInfo = Gtk.Widget.IsWidget
type AttrTransferType PopoverChildPropertyInfo = Gtk.Widget.Widget
type AttrGetType PopoverChildPropertyInfo = (Maybe Gtk.Widget.Widget)
type AttrLabel PopoverChildPropertyInfo = "child"
type AttrOrigin PopoverChildPropertyInfo = Popover
attrGet = getPopoverChild
attrSet = setPopoverChild
attrTransfer _ v = do
unsafeCastTo Gtk.Widget.Widget v
attrConstruct = constructPopoverChild
attrClear = clearPopoverChild
#endif
getPopoverDefaultWidget :: (MonadIO m, IsPopover o) => o -> m (Maybe Gtk.Widget.Widget)
getPopoverDefaultWidget :: forall (m :: * -> *) o.
(MonadIO m, IsPopover o) =>
o -> m (Maybe Widget)
getPopoverDefaultWidget o
obj = IO (Maybe Widget) -> m (Maybe Widget)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (Maybe Widget) -> m (Maybe Widget))
-> IO (Maybe Widget) -> m (Maybe Widget)
forall a b. (a -> b) -> a -> b
$ o -> String -> (ManagedPtr Widget -> Widget) -> IO (Maybe Widget)
forall a b.
(GObject a, GObject b) =>
a -> String -> (ManagedPtr b -> b) -> IO (Maybe b)
B.Properties.getObjectPropertyObject o
obj String
"default-widget" ManagedPtr Widget -> Widget
Gtk.Widget.Widget
setPopoverDefaultWidget :: (MonadIO m, IsPopover o, Gtk.Widget.IsWidget a) => o -> a -> m ()
setPopoverDefaultWidget :: forall (m :: * -> *) o a.
(MonadIO m, IsPopover o, IsWidget a) =>
o -> a -> m ()
setPopoverDefaultWidget o
obj a
val = IO () -> m ()
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 -> Maybe a -> IO ()
forall a b.
(GObject a, GObject b) =>
a -> String -> Maybe b -> IO ()
B.Properties.setObjectPropertyObject o
obj String
"default-widget" (a -> Maybe a
forall a. a -> Maybe a
Just a
val)
constructPopoverDefaultWidget :: (IsPopover o, MIO.MonadIO m, Gtk.Widget.IsWidget a) => a -> m (GValueConstruct o)
constructPopoverDefaultWidget :: forall o (m :: * -> *) a.
(IsPopover o, MonadIO m, IsWidget a) =>
a -> m (GValueConstruct o)
constructPopoverDefaultWidget a
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
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 -> Maybe a -> IO (GValueConstruct o)
forall a o.
GObject a =>
String -> Maybe a -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyObject String
"default-widget" (a -> Maybe a
forall a. a -> Maybe a
P.Just a
val)
clearPopoverDefaultWidget :: (MonadIO m, IsPopover o) => o -> m ()
clearPopoverDefaultWidget :: forall (m :: * -> *) o. (MonadIO m, IsPopover o) => o -> m ()
clearPopoverDefaultWidget o
obj = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe Widget -> IO ()
forall a b.
(GObject a, GObject b) =>
a -> String -> Maybe b -> IO ()
B.Properties.setObjectPropertyObject o
obj String
"default-widget" (Maybe Widget
forall a. Maybe a
Nothing :: Maybe Gtk.Widget.Widget)
#if defined(ENABLE_OVERLOADING)
data PopoverDefaultWidgetPropertyInfo
instance AttrInfo PopoverDefaultWidgetPropertyInfo where
type AttrAllowedOps PopoverDefaultWidgetPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint PopoverDefaultWidgetPropertyInfo = IsPopover
type AttrSetTypeConstraint PopoverDefaultWidgetPropertyInfo = Gtk.Widget.IsWidget
type AttrTransferTypeConstraint PopoverDefaultWidgetPropertyInfo = Gtk.Widget.IsWidget
type AttrTransferType PopoverDefaultWidgetPropertyInfo = Gtk.Widget.Widget
type AttrGetType PopoverDefaultWidgetPropertyInfo = (Maybe Gtk.Widget.Widget)
type AttrLabel PopoverDefaultWidgetPropertyInfo = "default-widget"
type AttrOrigin PopoverDefaultWidgetPropertyInfo = Popover
attrGet = getPopoverDefaultWidget
attrSet = setPopoverDefaultWidget
attrTransfer _ v = do
unsafeCastTo Gtk.Widget.Widget v
attrConstruct = constructPopoverDefaultWidget
attrClear = clearPopoverDefaultWidget
#endif
getPopoverHasArrow :: (MonadIO m, IsPopover o) => o -> m Bool
getPopoverHasArrow :: forall (m :: * -> *) o. (MonadIO m, IsPopover o) => o -> m Bool
getPopoverHasArrow o
obj = IO Bool -> m Bool
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
"has-arrow"
setPopoverHasArrow :: (MonadIO m, IsPopover o) => o -> Bool -> m ()
setPopoverHasArrow :: forall (m :: * -> *) o.
(MonadIO m, IsPopover o) =>
o -> Bool -> m ()
setPopoverHasArrow o
obj Bool
val = IO () -> m ()
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
"has-arrow" Bool
val
constructPopoverHasArrow :: (IsPopover o, MIO.MonadIO m) => Bool -> m (GValueConstruct o)
constructPopoverHasArrow :: forall o (m :: * -> *).
(IsPopover o, MonadIO m) =>
Bool -> m (GValueConstruct o)
constructPopoverHasArrow Bool
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
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
"has-arrow" Bool
val
#if defined(ENABLE_OVERLOADING)
data PopoverHasArrowPropertyInfo
instance AttrInfo PopoverHasArrowPropertyInfo where
type AttrAllowedOps PopoverHasArrowPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint PopoverHasArrowPropertyInfo = IsPopover
type AttrSetTypeConstraint PopoverHasArrowPropertyInfo = (~) Bool
type AttrTransferTypeConstraint PopoverHasArrowPropertyInfo = (~) Bool
type AttrTransferType PopoverHasArrowPropertyInfo = Bool
type AttrGetType PopoverHasArrowPropertyInfo = Bool
type AttrLabel PopoverHasArrowPropertyInfo = "has-arrow"
type AttrOrigin PopoverHasArrowPropertyInfo = Popover
attrGet = getPopoverHasArrow
attrSet = setPopoverHasArrow
attrTransfer _ v = do
return v
attrConstruct = constructPopoverHasArrow
attrClear = undefined
#endif
getPopoverMnemonicsVisible :: (MonadIO m, IsPopover o) => o -> m Bool
getPopoverMnemonicsVisible :: forall (m :: * -> *) o. (MonadIO m, IsPopover o) => o -> m Bool
getPopoverMnemonicsVisible o
obj = IO Bool -> m Bool
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
"mnemonics-visible"
setPopoverMnemonicsVisible :: (MonadIO m, IsPopover o) => o -> Bool -> m ()
setPopoverMnemonicsVisible :: forall (m :: * -> *) o.
(MonadIO m, IsPopover o) =>
o -> Bool -> m ()
setPopoverMnemonicsVisible o
obj Bool
val = IO () -> m ()
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
"mnemonics-visible" Bool
val
constructPopoverMnemonicsVisible :: (IsPopover o, MIO.MonadIO m) => Bool -> m (GValueConstruct o)
constructPopoverMnemonicsVisible :: forall o (m :: * -> *).
(IsPopover o, MonadIO m) =>
Bool -> m (GValueConstruct o)
constructPopoverMnemonicsVisible Bool
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
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
"mnemonics-visible" Bool
val
#if defined(ENABLE_OVERLOADING)
data PopoverMnemonicsVisiblePropertyInfo
instance AttrInfo PopoverMnemonicsVisiblePropertyInfo where
type AttrAllowedOps PopoverMnemonicsVisiblePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint PopoverMnemonicsVisiblePropertyInfo = IsPopover
type AttrSetTypeConstraint PopoverMnemonicsVisiblePropertyInfo = (~) Bool
type AttrTransferTypeConstraint PopoverMnemonicsVisiblePropertyInfo = (~) Bool
type AttrTransferType PopoverMnemonicsVisiblePropertyInfo = Bool
type AttrGetType PopoverMnemonicsVisiblePropertyInfo = Bool
type AttrLabel PopoverMnemonicsVisiblePropertyInfo = "mnemonics-visible"
type AttrOrigin PopoverMnemonicsVisiblePropertyInfo = Popover
attrGet = getPopoverMnemonicsVisible
attrSet = setPopoverMnemonicsVisible
attrTransfer _ v = do
return v
attrConstruct = constructPopoverMnemonicsVisible
attrClear = undefined
#endif
getPopoverPointingTo :: (MonadIO m, IsPopover o) => o -> m (Maybe Gdk.Rectangle.Rectangle)
getPopoverPointingTo :: forall (m :: * -> *) o.
(MonadIO m, IsPopover o) =>
o -> m (Maybe Rectangle)
getPopoverPointingTo o
obj = IO (Maybe Rectangle) -> m (Maybe Rectangle)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (Maybe Rectangle) -> m (Maybe Rectangle))
-> IO (Maybe Rectangle) -> m (Maybe Rectangle)
forall a b. (a -> b) -> a -> b
$ o
-> String
-> (ManagedPtr Rectangle -> Rectangle)
-> IO (Maybe Rectangle)
forall a b.
(GObject a, GBoxed b) =>
a -> String -> (ManagedPtr b -> b) -> IO (Maybe b)
B.Properties.getObjectPropertyBoxed o
obj String
"pointing-to" ManagedPtr Rectangle -> Rectangle
Gdk.Rectangle.Rectangle
setPopoverPointingTo :: (MonadIO m, IsPopover o) => o -> Gdk.Rectangle.Rectangle -> m ()
setPopoverPointingTo :: forall (m :: * -> *) o.
(MonadIO m, IsPopover o) =>
o -> Rectangle -> m ()
setPopoverPointingTo o
obj Rectangle
val = IO () -> m ()
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 -> Maybe Rectangle -> IO ()
forall a b.
(GObject a, GBoxed b) =>
a -> String -> Maybe b -> IO ()
B.Properties.setObjectPropertyBoxed o
obj String
"pointing-to" (Rectangle -> Maybe Rectangle
forall a. a -> Maybe a
Just Rectangle
val)
constructPopoverPointingTo :: (IsPopover o, MIO.MonadIO m) => Gdk.Rectangle.Rectangle -> m (GValueConstruct o)
constructPopoverPointingTo :: forall o (m :: * -> *).
(IsPopover o, MonadIO m) =>
Rectangle -> m (GValueConstruct o)
constructPopoverPointingTo Rectangle
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
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 -> Maybe Rectangle -> IO (GValueConstruct o)
forall a o. GBoxed a => String -> Maybe a -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyBoxed String
"pointing-to" (Rectangle -> Maybe Rectangle
forall a. a -> Maybe a
P.Just Rectangle
val)
#if defined(ENABLE_OVERLOADING)
data PopoverPointingToPropertyInfo
instance AttrInfo PopoverPointingToPropertyInfo where
type AttrAllowedOps PopoverPointingToPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint PopoverPointingToPropertyInfo = IsPopover
type AttrSetTypeConstraint PopoverPointingToPropertyInfo = (~) Gdk.Rectangle.Rectangle
type AttrTransferTypeConstraint PopoverPointingToPropertyInfo = (~) Gdk.Rectangle.Rectangle
type AttrTransferType PopoverPointingToPropertyInfo = Gdk.Rectangle.Rectangle
type AttrGetType PopoverPointingToPropertyInfo = (Maybe Gdk.Rectangle.Rectangle)
type AttrLabel PopoverPointingToPropertyInfo = "pointing-to"
type AttrOrigin PopoverPointingToPropertyInfo = Popover
attrGet = getPopoverPointingTo
attrSet = setPopoverPointingTo
attrTransfer _ v = do
return v
attrConstruct = constructPopoverPointingTo
attrClear = undefined
#endif
getPopoverPosition :: (MonadIO m, IsPopover o) => o -> m Gtk.Enums.PositionType
getPopoverPosition :: forall (m :: * -> *) o.
(MonadIO m, IsPopover o) =>
o -> m PositionType
getPopoverPosition o
obj = IO PositionType -> m PositionType
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO PositionType -> m PositionType)
-> IO PositionType -> m PositionType
forall a b. (a -> b) -> a -> b
$ o -> String -> IO PositionType
forall a b. (GObject a, Enum b, BoxedEnum b) => a -> String -> IO b
B.Properties.getObjectPropertyEnum o
obj String
"position"
setPopoverPosition :: (MonadIO m, IsPopover o) => o -> Gtk.Enums.PositionType -> m ()
setPopoverPosition :: forall (m :: * -> *) o.
(MonadIO m, IsPopover o) =>
o -> PositionType -> m ()
setPopoverPosition o
obj PositionType
val = IO () -> m ()
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 -> PositionType -> IO ()
forall a b.
(GObject a, Enum b, BoxedEnum b) =>
a -> String -> b -> IO ()
B.Properties.setObjectPropertyEnum o
obj String
"position" PositionType
val
constructPopoverPosition :: (IsPopover o, MIO.MonadIO m) => Gtk.Enums.PositionType -> m (GValueConstruct o)
constructPopoverPosition :: forall o (m :: * -> *).
(IsPopover o, MonadIO m) =>
PositionType -> m (GValueConstruct o)
constructPopoverPosition PositionType
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
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 -> PositionType -> IO (GValueConstruct o)
forall a o.
(Enum a, BoxedEnum a) =>
String -> a -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyEnum String
"position" PositionType
val
#if defined(ENABLE_OVERLOADING)
data PopoverPositionPropertyInfo
instance AttrInfo PopoverPositionPropertyInfo where
type AttrAllowedOps PopoverPositionPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint PopoverPositionPropertyInfo = IsPopover
type AttrSetTypeConstraint PopoverPositionPropertyInfo = (~) Gtk.Enums.PositionType
type AttrTransferTypeConstraint PopoverPositionPropertyInfo = (~) Gtk.Enums.PositionType
type AttrTransferType PopoverPositionPropertyInfo = Gtk.Enums.PositionType
type AttrGetType PopoverPositionPropertyInfo = Gtk.Enums.PositionType
type AttrLabel PopoverPositionPropertyInfo = "position"
type AttrOrigin PopoverPositionPropertyInfo = Popover
attrGet = getPopoverPosition
attrSet = setPopoverPosition
attrTransfer _ v = do
return v
attrConstruct = constructPopoverPosition
attrClear = undefined
#endif
#if defined(ENABLE_OVERLOADING)
instance O.HasAttributeList Popover
type instance O.AttributeList Popover = PopoverAttributeList
type PopoverAttributeList = ('[ '("accessibleRole", Gtk.Accessible.AccessibleAccessibleRolePropertyInfo), '("autohide", PopoverAutohidePropertyInfo), '("canFocus", Gtk.Widget.WidgetCanFocusPropertyInfo), '("canTarget", Gtk.Widget.WidgetCanTargetPropertyInfo), '("cascadePopdown", PopoverCascadePopdownPropertyInfo), '("child", PopoverChildPropertyInfo), '("cssClasses", Gtk.Widget.WidgetCssClassesPropertyInfo), '("cssName", Gtk.Widget.WidgetCssNamePropertyInfo), '("cursor", Gtk.Widget.WidgetCursorPropertyInfo), '("defaultWidget", PopoverDefaultWidgetPropertyInfo), '("focusOnClick", Gtk.Widget.WidgetFocusOnClickPropertyInfo), '("focusable", Gtk.Widget.WidgetFocusablePropertyInfo), '("halign", Gtk.Widget.WidgetHalignPropertyInfo), '("hasArrow", PopoverHasArrowPropertyInfo), '("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), '("marginBottom", Gtk.Widget.WidgetMarginBottomPropertyInfo), '("marginEnd", Gtk.Widget.WidgetMarginEndPropertyInfo), '("marginStart", Gtk.Widget.WidgetMarginStartPropertyInfo), '("marginTop", Gtk.Widget.WidgetMarginTopPropertyInfo), '("mnemonicsVisible", PopoverMnemonicsVisiblePropertyInfo), '("name", Gtk.Widget.WidgetNamePropertyInfo), '("opacity", Gtk.Widget.WidgetOpacityPropertyInfo), '("overflow", Gtk.Widget.WidgetOverflowPropertyInfo), '("parent", Gtk.Widget.WidgetParentPropertyInfo), '("pointingTo", PopoverPointingToPropertyInfo), '("position", PopoverPositionPropertyInfo), '("receivesDefault", Gtk.Widget.WidgetReceivesDefaultPropertyInfo), '("root", Gtk.Widget.WidgetRootPropertyInfo), '("scaleFactor", Gtk.Widget.WidgetScaleFactorPropertyInfo), '("sensitive", Gtk.Widget.WidgetSensitivePropertyInfo), '("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, *)])
#endif
#if defined(ENABLE_OVERLOADING)
popoverAutohide :: AttrLabelProxy "autohide"
popoverAutohide = AttrLabelProxy
popoverCascadePopdown :: AttrLabelProxy "cascadePopdown"
popoverCascadePopdown = AttrLabelProxy
popoverChild :: AttrLabelProxy "child"
popoverChild = AttrLabelProxy
popoverDefaultWidget :: AttrLabelProxy "defaultWidget"
popoverDefaultWidget = AttrLabelProxy
popoverHasArrow :: AttrLabelProxy "hasArrow"
popoverHasArrow = AttrLabelProxy
popoverMnemonicsVisible :: AttrLabelProxy "mnemonicsVisible"
popoverMnemonicsVisible = AttrLabelProxy
popoverPointingTo :: AttrLabelProxy "pointingTo"
popoverPointingTo = AttrLabelProxy
popoverPosition :: AttrLabelProxy "position"
popoverPosition = AttrLabelProxy
#endif
#if defined(ENABLE_OVERLOADING)
type instance O.SignalList Popover = PopoverSignalList
type PopoverSignalList = ('[ '("activateDefault", PopoverActivateDefaultSignalInfo), '("closed", PopoverClosedSignalInfo), '("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), '("show", Gtk.Widget.WidgetShowSignalInfo), '("stateFlagsChanged", Gtk.Widget.WidgetStateFlagsChangedSignalInfo), '("unmap", Gtk.Widget.WidgetUnmapSignalInfo), '("unrealize", Gtk.Widget.WidgetUnrealizeSignalInfo)] :: [(Symbol, *)])
#endif
foreign import ccall "gtk_popover_new" gtk_popover_new ::
IO (Ptr Popover)
popoverNew ::
(B.CallStack.HasCallStack, MonadIO m) =>
m Popover
popoverNew :: forall (m :: * -> *). (HasCallStack, MonadIO m) => m Popover
popoverNew = IO Popover -> m Popover
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Popover -> m Popover) -> IO Popover -> m Popover
forall a b. (a -> b) -> a -> b
$ do
Ptr Popover
result <- IO (Ptr Popover)
gtk_popover_new
Text -> Ptr Popover -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"popoverNew" Ptr Popover
result
Popover
result' <- ((ManagedPtr Popover -> Popover) -> Ptr Popover -> IO Popover
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr Popover -> Popover
Popover) Ptr Popover
result
Popover -> IO Popover
forall (m :: * -> *) a. Monad m => a -> m a
return Popover
result'
#if defined(ENABLE_OVERLOADING)
#endif
foreign import ccall "gtk_popover_get_autohide" gtk_popover_get_autohide ::
Ptr Popover ->
IO CInt
popoverGetAutohide ::
(B.CallStack.HasCallStack, MonadIO m, IsPopover a) =>
a
-> m Bool
popoverGetAutohide :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsPopover a) =>
a -> m Bool
popoverGetAutohide a
popover = IO Bool -> m Bool
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr Popover
popover' <- a -> IO (Ptr Popover)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
popover
CInt
result <- Ptr Popover -> IO CInt
gtk_popover_get_autohide Ptr Popover
popover'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
popover
Bool -> IO Bool
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data PopoverGetAutohideMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsPopover a) => O.OverloadedMethod PopoverGetAutohideMethodInfo a signature where
overloadedMethod = popoverGetAutohide
instance O.OverloadedMethodInfo PopoverGetAutohideMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Objects.Popover.popoverGetAutohide",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-4.0.4/docs/GI-Gtk-Objects-Popover.html#v:popoverGetAutohide"
}
#endif
foreign import ccall "gtk_popover_get_cascade_popdown" gtk_popover_get_cascade_popdown ::
Ptr Popover ->
IO CInt
popoverGetCascadePopdown ::
(B.CallStack.HasCallStack, MonadIO m, IsPopover a) =>
a
-> m Bool
popoverGetCascadePopdown :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsPopover a) =>
a -> m Bool
popoverGetCascadePopdown a
popover = IO Bool -> m Bool
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr Popover
popover' <- a -> IO (Ptr Popover)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
popover
CInt
result <- Ptr Popover -> IO CInt
gtk_popover_get_cascade_popdown Ptr Popover
popover'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
popover
Bool -> IO Bool
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data PopoverGetCascadePopdownMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsPopover a) => O.OverloadedMethod PopoverGetCascadePopdownMethodInfo a signature where
overloadedMethod = popoverGetCascadePopdown
instance O.OverloadedMethodInfo PopoverGetCascadePopdownMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Objects.Popover.popoverGetCascadePopdown",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-4.0.4/docs/GI-Gtk-Objects-Popover.html#v:popoverGetCascadePopdown"
}
#endif
foreign import ccall "gtk_popover_get_child" gtk_popover_get_child ::
Ptr Popover ->
IO (Ptr Gtk.Widget.Widget)
popoverGetChild ::
(B.CallStack.HasCallStack, MonadIO m, IsPopover a) =>
a
-> m (Maybe Gtk.Widget.Widget)
popoverGetChild :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsPopover a) =>
a -> m (Maybe Widget)
popoverGetChild a
popover = IO (Maybe Widget) -> m (Maybe Widget)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (Maybe Widget) -> m (Maybe Widget))
-> IO (Maybe Widget) -> m (Maybe Widget)
forall a b. (a -> b) -> a -> b
$ do
Ptr Popover
popover' <- a -> IO (Ptr Popover)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
popover
Ptr Widget
result <- Ptr Popover -> IO (Ptr Widget)
gtk_popover_get_child Ptr Popover
popover'
Maybe Widget
maybeResult <- Ptr Widget -> (Ptr Widget -> IO Widget) -> IO (Maybe Widget)
forall a b. Ptr a -> (Ptr a -> IO b) -> IO (Maybe b)
convertIfNonNull Ptr Widget
result ((Ptr Widget -> IO Widget) -> IO (Maybe Widget))
-> (Ptr Widget -> IO Widget) -> IO (Maybe Widget)
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
result' -> do
Widget
result'' <- ((ManagedPtr Widget -> Widget) -> Ptr Widget -> IO Widget
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr Widget -> Widget
Gtk.Widget.Widget) Ptr Widget
result'
Widget -> IO Widget
forall (m :: * -> *) a. Monad m => a -> m a
return Widget
result''
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
popover
Maybe Widget -> IO (Maybe Widget)
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe Widget
maybeResult
#if defined(ENABLE_OVERLOADING)
data PopoverGetChildMethodInfo
instance (signature ~ (m (Maybe Gtk.Widget.Widget)), MonadIO m, IsPopover a) => O.OverloadedMethod PopoverGetChildMethodInfo a signature where
overloadedMethod = popoverGetChild
instance O.OverloadedMethodInfo PopoverGetChildMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Objects.Popover.popoverGetChild",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-4.0.4/docs/GI-Gtk-Objects-Popover.html#v:popoverGetChild"
}
#endif
foreign import ccall "gtk_popover_get_has_arrow" gtk_popover_get_has_arrow ::
Ptr Popover ->
IO CInt
popoverGetHasArrow ::
(B.CallStack.HasCallStack, MonadIO m, IsPopover a) =>
a
-> m Bool
popoverGetHasArrow :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsPopover a) =>
a -> m Bool
popoverGetHasArrow a
popover = IO Bool -> m Bool
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr Popover
popover' <- a -> IO (Ptr Popover)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
popover
CInt
result <- Ptr Popover -> IO CInt
gtk_popover_get_has_arrow Ptr Popover
popover'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
popover
Bool -> IO Bool
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data PopoverGetHasArrowMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsPopover a) => O.OverloadedMethod PopoverGetHasArrowMethodInfo a signature where
overloadedMethod = popoverGetHasArrow
instance O.OverloadedMethodInfo PopoverGetHasArrowMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Objects.Popover.popoverGetHasArrow",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-4.0.4/docs/GI-Gtk-Objects-Popover.html#v:popoverGetHasArrow"
}
#endif
foreign import ccall "gtk_popover_get_mnemonics_visible" gtk_popover_get_mnemonics_visible ::
Ptr Popover ->
IO CInt
popoverGetMnemonicsVisible ::
(B.CallStack.HasCallStack, MonadIO m, IsPopover a) =>
a
-> m Bool
popoverGetMnemonicsVisible :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsPopover a) =>
a -> m Bool
popoverGetMnemonicsVisible a
popover = IO Bool -> m Bool
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr Popover
popover' <- a -> IO (Ptr Popover)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
popover
CInt
result <- Ptr Popover -> IO CInt
gtk_popover_get_mnemonics_visible Ptr Popover
popover'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
popover
Bool -> IO Bool
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data PopoverGetMnemonicsVisibleMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsPopover a) => O.OverloadedMethod PopoverGetMnemonicsVisibleMethodInfo a signature where
overloadedMethod = popoverGetMnemonicsVisible
instance O.OverloadedMethodInfo PopoverGetMnemonicsVisibleMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Objects.Popover.popoverGetMnemonicsVisible",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-4.0.4/docs/GI-Gtk-Objects-Popover.html#v:popoverGetMnemonicsVisible"
}
#endif
foreign import ccall "gtk_popover_get_offset" gtk_popover_get_offset ::
Ptr Popover ->
Ptr Int32 ->
Ptr Int32 ->
IO ()
popoverGetOffset ::
(B.CallStack.HasCallStack, MonadIO m, IsPopover a) =>
a
-> m ((Int32, Int32))
popoverGetOffset :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsPopover a) =>
a -> m (Int32, Int32)
popoverGetOffset a
popover = IO (Int32, Int32) -> m (Int32, Int32)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (Int32, Int32) -> m (Int32, Int32))
-> IO (Int32, Int32) -> m (Int32, Int32)
forall a b. (a -> b) -> a -> b
$ do
Ptr Popover
popover' <- a -> IO (Ptr Popover)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
popover
Ptr Int32
xOffset <- IO (Ptr Int32)
forall a. Storable a => IO (Ptr a)
allocMem :: IO (Ptr Int32)
Ptr Int32
yOffset <- IO (Ptr Int32)
forall a. Storable a => IO (Ptr a)
allocMem :: IO (Ptr Int32)
Ptr Popover -> Ptr Int32 -> Ptr Int32 -> IO ()
gtk_popover_get_offset Ptr Popover
popover' Ptr Int32
xOffset Ptr Int32
yOffset
Int32
xOffset' <- Ptr Int32 -> IO Int32
forall a. Storable a => Ptr a -> IO a
peek Ptr Int32
xOffset
Int32
yOffset' <- Ptr Int32 -> IO Int32
forall a. Storable a => Ptr a -> IO a
peek Ptr Int32
yOffset
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
popover
Ptr Int32 -> IO ()
forall a. Ptr a -> IO ()
freeMem Ptr Int32
xOffset
Ptr Int32 -> IO ()
forall a. Ptr a -> IO ()
freeMem Ptr Int32
yOffset
(Int32, Int32) -> IO (Int32, Int32)
forall (m :: * -> *) a. Monad m => a -> m a
return (Int32
xOffset', Int32
yOffset')
#if defined(ENABLE_OVERLOADING)
data PopoverGetOffsetMethodInfo
instance (signature ~ (m ((Int32, Int32))), MonadIO m, IsPopover a) => O.OverloadedMethod PopoverGetOffsetMethodInfo a signature where
overloadedMethod = popoverGetOffset
instance O.OverloadedMethodInfo PopoverGetOffsetMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Objects.Popover.popoverGetOffset",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-4.0.4/docs/GI-Gtk-Objects-Popover.html#v:popoverGetOffset"
}
#endif
foreign import ccall "gtk_popover_get_pointing_to" gtk_popover_get_pointing_to ::
Ptr Popover ->
Ptr Gdk.Rectangle.Rectangle ->
IO CInt
popoverGetPointingTo ::
(B.CallStack.HasCallStack, MonadIO m, IsPopover a) =>
a
-> m ((Bool, Gdk.Rectangle.Rectangle))
popoverGetPointingTo :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsPopover a) =>
a -> m (Bool, Rectangle)
popoverGetPointingTo a
popover = IO (Bool, Rectangle) -> m (Bool, Rectangle)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (Bool, Rectangle) -> m (Bool, Rectangle))
-> IO (Bool, Rectangle) -> m (Bool, Rectangle)
forall a b. (a -> b) -> a -> b
$ do
Ptr Popover
popover' <- a -> IO (Ptr Popover)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
popover
Ptr Rectangle
rect <- Int -> IO (Ptr Rectangle)
forall a. GBoxed a => Int -> IO (Ptr a)
SP.callocBoxedBytes Int
16 :: IO (Ptr Gdk.Rectangle.Rectangle)
CInt
result <- Ptr Popover -> Ptr Rectangle -> IO CInt
gtk_popover_get_pointing_to Ptr Popover
popover' Ptr Rectangle
rect
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
Rectangle
rect' <- ((ManagedPtr Rectangle -> Rectangle)
-> Ptr Rectangle -> IO Rectangle
forall a.
(HasCallStack, GBoxed a) =>
(ManagedPtr a -> a) -> Ptr a -> IO a
wrapBoxed ManagedPtr Rectangle -> Rectangle
Gdk.Rectangle.Rectangle) Ptr Rectangle
rect
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
popover
(Bool, Rectangle) -> IO (Bool, Rectangle)
forall (m :: * -> *) a. Monad m => a -> m a
return (Bool
result', Rectangle
rect')
#if defined(ENABLE_OVERLOADING)
data PopoverGetPointingToMethodInfo
instance (signature ~ (m ((Bool, Gdk.Rectangle.Rectangle))), MonadIO m, IsPopover a) => O.OverloadedMethod PopoverGetPointingToMethodInfo a signature where
overloadedMethod = popoverGetPointingTo
instance O.OverloadedMethodInfo PopoverGetPointingToMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Objects.Popover.popoverGetPointingTo",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-4.0.4/docs/GI-Gtk-Objects-Popover.html#v:popoverGetPointingTo"
}
#endif
foreign import ccall "gtk_popover_get_position" gtk_popover_get_position ::
Ptr Popover ->
IO CUInt
popoverGetPosition ::
(B.CallStack.HasCallStack, MonadIO m, IsPopover a) =>
a
-> m Gtk.Enums.PositionType
popoverGetPosition :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsPopover a) =>
a -> m PositionType
popoverGetPosition a
popover = IO PositionType -> m PositionType
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO PositionType -> m PositionType)
-> IO PositionType -> m PositionType
forall a b. (a -> b) -> a -> b
$ do
Ptr Popover
popover' <- a -> IO (Ptr Popover)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
popover
CUInt
result <- Ptr Popover -> IO CUInt
gtk_popover_get_position Ptr Popover
popover'
let result' :: PositionType
result' = (Int -> PositionType
forall a. Enum a => Int -> a
toEnum (Int -> PositionType) -> (CUInt -> Int) -> CUInt -> PositionType
forall b c a. (b -> c) -> (a -> b) -> a -> c
. CUInt -> Int
forall a b. (Integral a, Num b) => a -> b
fromIntegral) CUInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
popover
PositionType -> IO PositionType
forall (m :: * -> *) a. Monad m => a -> m a
return PositionType
result'
#if defined(ENABLE_OVERLOADING)
data PopoverGetPositionMethodInfo
instance (signature ~ (m Gtk.Enums.PositionType), MonadIO m, IsPopover a) => O.OverloadedMethod PopoverGetPositionMethodInfo a signature where
overloadedMethod = popoverGetPosition
instance O.OverloadedMethodInfo PopoverGetPositionMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Objects.Popover.popoverGetPosition",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-4.0.4/docs/GI-Gtk-Objects-Popover.html#v:popoverGetPosition"
}
#endif
foreign import ccall "gtk_popover_popdown" gtk_popover_popdown ::
Ptr Popover ->
IO ()
popoverPopdown ::
(B.CallStack.HasCallStack, MonadIO m, IsPopover a) =>
a
-> m ()
popoverPopdown :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsPopover a) =>
a -> m ()
popoverPopdown a
popover = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr Popover
popover' <- a -> IO (Ptr Popover)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
popover
Ptr Popover -> IO ()
gtk_popover_popdown Ptr Popover
popover'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
popover
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data PopoverPopdownMethodInfo
instance (signature ~ (m ()), MonadIO m, IsPopover a) => O.OverloadedMethod PopoverPopdownMethodInfo a signature where
overloadedMethod = popoverPopdown
instance O.OverloadedMethodInfo PopoverPopdownMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Objects.Popover.popoverPopdown",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-4.0.4/docs/GI-Gtk-Objects-Popover.html#v:popoverPopdown"
}
#endif
foreign import ccall "gtk_popover_popup" ::
Ptr Popover ->
IO ()
popoverPopup ::
(B.CallStack.HasCallStack, MonadIO m, IsPopover a) =>
a
-> m ()
a
popover = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr Popover
popover' <- a -> IO (Ptr Popover)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
popover
Ptr Popover -> IO ()
gtk_popover_popup Ptr Popover
popover'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
popover
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data PopoverPopupMethodInfo
instance (signature ~ (m ()), MonadIO m, IsPopover a) => O.OverloadedMethod PopoverPopupMethodInfo a signature where
overloadedMethod = popoverPopup
instance O.OverloadedMethodInfo PopoverPopupMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Objects.Popover.popoverPopup",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-4.0.4/docs/GI-Gtk-Objects-Popover.html#v:popoverPopup"
}
#endif
foreign import ccall "gtk_popover_present" gtk_popover_present ::
Ptr Popover ->
IO ()
popoverPresent ::
(B.CallStack.HasCallStack, MonadIO m, IsPopover a) =>
a
-> m ()
popoverPresent :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsPopover a) =>
a -> m ()
popoverPresent a
popover = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr Popover
popover' <- a -> IO (Ptr Popover)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
popover
Ptr Popover -> IO ()
gtk_popover_present Ptr Popover
popover'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
popover
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data PopoverPresentMethodInfo
instance (signature ~ (m ()), MonadIO m, IsPopover a) => O.OverloadedMethod PopoverPresentMethodInfo a signature where
overloadedMethod = popoverPresent
instance O.OverloadedMethodInfo PopoverPresentMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Objects.Popover.popoverPresent",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-4.0.4/docs/GI-Gtk-Objects-Popover.html#v:popoverPresent"
}
#endif
foreign import ccall "gtk_popover_set_autohide" gtk_popover_set_autohide ::
Ptr Popover ->
CInt ->
IO ()
popoverSetAutohide ::
(B.CallStack.HasCallStack, MonadIO m, IsPopover a) =>
a
-> Bool
-> m ()
popoverSetAutohide :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsPopover a) =>
a -> Bool -> m ()
popoverSetAutohide a
popover Bool
autohide = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr Popover
popover' <- a -> IO (Ptr Popover)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
popover
let autohide' :: CInt
autohide' = (Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CInt) -> (Bool -> Int) -> Bool -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Bool -> Int
forall a. Enum a => a -> Int
fromEnum) Bool
autohide
Ptr Popover -> CInt -> IO ()
gtk_popover_set_autohide Ptr Popover
popover' CInt
autohide'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
popover
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data PopoverSetAutohideMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsPopover a) => O.OverloadedMethod PopoverSetAutohideMethodInfo a signature where
overloadedMethod = popoverSetAutohide
instance O.OverloadedMethodInfo PopoverSetAutohideMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Objects.Popover.popoverSetAutohide",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-4.0.4/docs/GI-Gtk-Objects-Popover.html#v:popoverSetAutohide"
}
#endif
foreign import ccall "gtk_popover_set_cascade_popdown" gtk_popover_set_cascade_popdown ::
Ptr Popover ->
CInt ->
IO ()
popoverSetCascadePopdown ::
(B.CallStack.HasCallStack, MonadIO m, IsPopover a) =>
a
-> Bool
-> m ()
popoverSetCascadePopdown :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsPopover a) =>
a -> Bool -> m ()
popoverSetCascadePopdown a
popover Bool
cascadePopdown = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr Popover
popover' <- a -> IO (Ptr Popover)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
popover
let cascadePopdown' :: CInt
cascadePopdown' = (Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CInt) -> (Bool -> Int) -> Bool -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Bool -> Int
forall a. Enum a => a -> Int
fromEnum) Bool
cascadePopdown
Ptr Popover -> CInt -> IO ()
gtk_popover_set_cascade_popdown Ptr Popover
popover' CInt
cascadePopdown'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
popover
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data PopoverSetCascadePopdownMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsPopover a) => O.OverloadedMethod PopoverSetCascadePopdownMethodInfo a signature where
overloadedMethod = popoverSetCascadePopdown
instance O.OverloadedMethodInfo PopoverSetCascadePopdownMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Objects.Popover.popoverSetCascadePopdown",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-4.0.4/docs/GI-Gtk-Objects-Popover.html#v:popoverSetCascadePopdown"
}
#endif
foreign import ccall "gtk_popover_set_child" gtk_popover_set_child ::
Ptr Popover ->
Ptr Gtk.Widget.Widget ->
IO ()
popoverSetChild ::
(B.CallStack.HasCallStack, MonadIO m, IsPopover a, Gtk.Widget.IsWidget b) =>
a
-> Maybe (b)
-> m ()
popoverSetChild :: forall (m :: * -> *) a b.
(HasCallStack, MonadIO m, IsPopover a, IsWidget b) =>
a -> Maybe b -> m ()
popoverSetChild a
popover Maybe b
child = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr Popover
popover' <- a -> IO (Ptr Popover)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
popover
Ptr Widget
maybeChild <- case Maybe b
child of
Maybe b
Nothing -> Ptr Widget -> IO (Ptr Widget)
forall (m :: * -> *) a. Monad m => a -> m a
return Ptr Widget
forall a. Ptr a
nullPtr
Just b
jChild -> do
Ptr Widget
jChild' <- b -> IO (Ptr Widget)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr b
jChild
Ptr Widget -> IO (Ptr Widget)
forall (m :: * -> *) a. Monad m => a -> m a
return Ptr Widget
jChild'
Ptr Popover -> Ptr Widget -> IO ()
gtk_popover_set_child Ptr Popover
popover' Ptr Widget
maybeChild
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
popover
Maybe b -> (b -> IO ()) -> IO ()
forall (m :: * -> *) a. Monad m => Maybe a -> (a -> m ()) -> m ()
whenJust Maybe b
child b -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data PopoverSetChildMethodInfo
instance (signature ~ (Maybe (b) -> m ()), MonadIO m, IsPopover a, Gtk.Widget.IsWidget b) => O.OverloadedMethod PopoverSetChildMethodInfo a signature where
overloadedMethod = popoverSetChild
instance O.OverloadedMethodInfo PopoverSetChildMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Objects.Popover.popoverSetChild",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-4.0.4/docs/GI-Gtk-Objects-Popover.html#v:popoverSetChild"
}
#endif
foreign import ccall "gtk_popover_set_default_widget" gtk_popover_set_default_widget ::
Ptr Popover ->
Ptr Gtk.Widget.Widget ->
IO ()
popoverSetDefaultWidget ::
(B.CallStack.HasCallStack, MonadIO m, IsPopover a, Gtk.Widget.IsWidget b) =>
a
-> Maybe (b)
-> m ()
popoverSetDefaultWidget :: forall (m :: * -> *) a b.
(HasCallStack, MonadIO m, IsPopover a, IsWidget b) =>
a -> Maybe b -> m ()
popoverSetDefaultWidget a
popover Maybe b
widget = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr Popover
popover' <- a -> IO (Ptr Popover)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
popover
Ptr Widget
maybeWidget <- case Maybe b
widget of
Maybe b
Nothing -> Ptr Widget -> IO (Ptr Widget)
forall (m :: * -> *) a. Monad m => a -> m a
return Ptr Widget
forall a. Ptr a
nullPtr
Just b
jWidget -> do
Ptr Widget
jWidget' <- b -> IO (Ptr Widget)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr b
jWidget
Ptr Widget -> IO (Ptr Widget)
forall (m :: * -> *) a. Monad m => a -> m a
return Ptr Widget
jWidget'
Ptr Popover -> Ptr Widget -> IO ()
gtk_popover_set_default_widget Ptr Popover
popover' Ptr Widget
maybeWidget
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
popover
Maybe b -> (b -> IO ()) -> IO ()
forall (m :: * -> *) a. Monad m => Maybe a -> (a -> m ()) -> m ()
whenJust Maybe b
widget b -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data PopoverSetDefaultWidgetMethodInfo
instance (signature ~ (Maybe (b) -> m ()), MonadIO m, IsPopover a, Gtk.Widget.IsWidget b) => O.OverloadedMethod PopoverSetDefaultWidgetMethodInfo a signature where
overloadedMethod = popoverSetDefaultWidget
instance O.OverloadedMethodInfo PopoverSetDefaultWidgetMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Objects.Popover.popoverSetDefaultWidget",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-4.0.4/docs/GI-Gtk-Objects-Popover.html#v:popoverSetDefaultWidget"
}
#endif
foreign import ccall "gtk_popover_set_has_arrow" gtk_popover_set_has_arrow ::
Ptr Popover ->
CInt ->
IO ()
popoverSetHasArrow ::
(B.CallStack.HasCallStack, MonadIO m, IsPopover a) =>
a
-> Bool
-> m ()
popoverSetHasArrow :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsPopover a) =>
a -> Bool -> m ()
popoverSetHasArrow a
popover Bool
hasArrow = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr Popover
popover' <- a -> IO (Ptr Popover)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
popover
let hasArrow' :: CInt
hasArrow' = (Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CInt) -> (Bool -> Int) -> Bool -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Bool -> Int
forall a. Enum a => a -> Int
fromEnum) Bool
hasArrow
Ptr Popover -> CInt -> IO ()
gtk_popover_set_has_arrow Ptr Popover
popover' CInt
hasArrow'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
popover
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data PopoverSetHasArrowMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsPopover a) => O.OverloadedMethod PopoverSetHasArrowMethodInfo a signature where
overloadedMethod = popoverSetHasArrow
instance O.OverloadedMethodInfo PopoverSetHasArrowMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Objects.Popover.popoverSetHasArrow",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-4.0.4/docs/GI-Gtk-Objects-Popover.html#v:popoverSetHasArrow"
}
#endif
foreign import ccall "gtk_popover_set_mnemonics_visible" gtk_popover_set_mnemonics_visible ::
Ptr Popover ->
CInt ->
IO ()
popoverSetMnemonicsVisible ::
(B.CallStack.HasCallStack, MonadIO m, IsPopover a) =>
a
-> Bool
-> m ()
popoverSetMnemonicsVisible :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsPopover a) =>
a -> Bool -> m ()
popoverSetMnemonicsVisible a
popover Bool
mnemonicsVisible = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr Popover
popover' <- a -> IO (Ptr Popover)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
popover
let mnemonicsVisible' :: CInt
mnemonicsVisible' = (Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CInt) -> (Bool -> Int) -> Bool -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Bool -> Int
forall a. Enum a => a -> Int
fromEnum) Bool
mnemonicsVisible
Ptr Popover -> CInt -> IO ()
gtk_popover_set_mnemonics_visible Ptr Popover
popover' CInt
mnemonicsVisible'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
popover
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data PopoverSetMnemonicsVisibleMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsPopover a) => O.OverloadedMethod PopoverSetMnemonicsVisibleMethodInfo a signature where
overloadedMethod = popoverSetMnemonicsVisible
instance O.OverloadedMethodInfo PopoverSetMnemonicsVisibleMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Objects.Popover.popoverSetMnemonicsVisible",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-4.0.4/docs/GI-Gtk-Objects-Popover.html#v:popoverSetMnemonicsVisible"
}
#endif
foreign import ccall "gtk_popover_set_offset" gtk_popover_set_offset ::
Ptr Popover ->
Int32 ->
Int32 ->
IO ()
popoverSetOffset ::
(B.CallStack.HasCallStack, MonadIO m, IsPopover a) =>
a
-> Int32
-> Int32
-> m ()
popoverSetOffset :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsPopover a) =>
a -> Int32 -> Int32 -> m ()
popoverSetOffset a
popover Int32
xOffset Int32
yOffset = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr Popover
popover' <- a -> IO (Ptr Popover)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
popover
Ptr Popover -> Int32 -> Int32 -> IO ()
gtk_popover_set_offset Ptr Popover
popover' Int32
xOffset Int32
yOffset
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
popover
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data PopoverSetOffsetMethodInfo
instance (signature ~ (Int32 -> Int32 -> m ()), MonadIO m, IsPopover a) => O.OverloadedMethod PopoverSetOffsetMethodInfo a signature where
overloadedMethod = popoverSetOffset
instance O.OverloadedMethodInfo PopoverSetOffsetMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Objects.Popover.popoverSetOffset",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-4.0.4/docs/GI-Gtk-Objects-Popover.html#v:popoverSetOffset"
}
#endif
foreign import ccall "gtk_popover_set_pointing_to" gtk_popover_set_pointing_to ::
Ptr Popover ->
Ptr Gdk.Rectangle.Rectangle ->
IO ()
popoverSetPointingTo ::
(B.CallStack.HasCallStack, MonadIO m, IsPopover a) =>
a
-> Gdk.Rectangle.Rectangle
-> m ()
popoverSetPointingTo :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsPopover a) =>
a -> Rectangle -> m ()
popoverSetPointingTo a
popover Rectangle
rect = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr Popover
popover' <- a -> IO (Ptr Popover)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
popover
Ptr Rectangle
rect' <- Rectangle -> IO (Ptr Rectangle)
forall a. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr a)
unsafeManagedPtrGetPtr Rectangle
rect
Ptr Popover -> Ptr Rectangle -> IO ()
gtk_popover_set_pointing_to Ptr Popover
popover' Ptr Rectangle
rect'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
popover
Rectangle -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr Rectangle
rect
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data PopoverSetPointingToMethodInfo
instance (signature ~ (Gdk.Rectangle.Rectangle -> m ()), MonadIO m, IsPopover a) => O.OverloadedMethod PopoverSetPointingToMethodInfo a signature where
overloadedMethod = popoverSetPointingTo
instance O.OverloadedMethodInfo PopoverSetPointingToMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Objects.Popover.popoverSetPointingTo",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-4.0.4/docs/GI-Gtk-Objects-Popover.html#v:popoverSetPointingTo"
}
#endif
foreign import ccall "gtk_popover_set_position" gtk_popover_set_position ::
Ptr Popover ->
CUInt ->
IO ()
popoverSetPosition ::
(B.CallStack.HasCallStack, MonadIO m, IsPopover a) =>
a
-> Gtk.Enums.PositionType
-> m ()
popoverSetPosition :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsPopover a) =>
a -> PositionType -> m ()
popoverSetPosition a
popover PositionType
position = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr Popover
popover' <- a -> IO (Ptr Popover)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
popover
let position' :: CUInt
position' = (Int -> CUInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CUInt) -> (PositionType -> Int) -> PositionType -> CUInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. PositionType -> Int
forall a. Enum a => a -> Int
fromEnum) PositionType
position
Ptr Popover -> CUInt -> IO ()
gtk_popover_set_position Ptr Popover
popover' CUInt
position'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
popover
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data PopoverSetPositionMethodInfo
instance (signature ~ (Gtk.Enums.PositionType -> m ()), MonadIO m, IsPopover a) => O.OverloadedMethod PopoverSetPositionMethodInfo a signature where
overloadedMethod = popoverSetPosition
instance O.OverloadedMethodInfo PopoverSetPositionMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Objects.Popover.popoverSetPosition",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-4.0.4/docs/GI-Gtk-Objects-Popover.html#v:popoverSetPosition"
}
#endif