{-# 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)
PopoverGetChildMethodInfo ,
#endif
popoverGetChild ,
#if defined(ENABLE_OVERLOADING)
PopoverGetHasArrowMethodInfo ,
#endif
popoverGetHasArrow ,
#if defined(ENABLE_OVERLOADING)
PopoverGetMnemonicsVisibleMethodInfo ,
#endif
popoverGetMnemonicsVisible ,
#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)
PopoverSetAutohideMethodInfo ,
#endif
popoverSetAutohide ,
#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)
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)
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 GI.Atk.Interfaces.ImplementorIface as Atk.ImplementorIface
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.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
instance B.GValue.IsGValue Popover where
toGValue :: Popover -> IO GValue
toGValue Popover
o = do
GType
gtype <- IO GType
c_gtk_popover_get_type
Popover -> (Ptr Popover -> IO GValue) -> IO GValue
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
B.ManagedPtr.withManagedPtr Popover
o (GType
-> (GValue -> Ptr Popover -> IO ()) -> Ptr Popover -> IO GValue
forall a. GType -> (GValue -> a -> IO ()) -> a -> IO GValue
B.GValue.buildGValue GType
gtype GValue -> Ptr Popover -> IO ()
forall a. GObject a => GValue -> Ptr a -> IO ()
B.GValue.set_object)
fromGValue :: GValue -> IO Popover
fromGValue GValue
gv = do
Ptr Popover
ptr <- GValue -> IO (Ptr Popover)
forall b. GObject b => GValue -> IO (Ptr b)
B.GValue.get_object GValue
gv :: IO (Ptr Popover)
(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
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, Atk.ImplementorIface.ImplementorIface, Gtk.Buildable.Buildable, Gtk.ConstraintTarget.ConstraintTarget, Gtk.Native.Native, Gtk.ShortcutManager.ShortcutManager]
toPopover :: (MonadIO m, IsPopover o) => o -> m Popover
toPopover :: o -> m Popover
toPopover = IO Popover -> m Popover
forall (m :: * -> *) a. MonadIO m => IO a -> m a
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'
unsafeCastTo ManagedPtr Popover -> Popover
Popover
#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 "addChild" o = Gtk.Buildable.BuildableAddChildMethodInfo
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 "checkResize" o = Gtk.Native.NativeCheckResizeMethodInfo
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 "constructChild" o = Gtk.Buildable.BuildableConstructChildMethodInfo
ResolvePopoverMethod "contains" o = Gtk.Widget.WidgetContainsMethodInfo
ResolvePopoverMethod "createPangoContext" o = Gtk.Widget.WidgetCreatePangoContextMethodInfo
ResolvePopoverMethod "createPangoLayout" o = Gtk.Widget.WidgetCreatePangoLayoutMethodInfo
ResolvePopoverMethod "customFinished" o = Gtk.Buildable.BuildableCustomFinishedMethodInfo
ResolvePopoverMethod "customTagEnd" o = Gtk.Buildable.BuildableCustomTagEndMethodInfo
ResolvePopoverMethod "customTagStart" o = Gtk.Buildable.BuildableCustomTagStartMethodInfo
ResolvePopoverMethod "deviceIsShadowed" o = Gtk.Widget.WidgetDeviceIsShadowedMethodInfo
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 "parserFinished" o = Gtk.Buildable.BuildableParserFinishedMethodInfo
ResolvePopoverMethod "pick" o = Gtk.Widget.WidgetPickMethodInfo
ResolvePopoverMethod "popdown" o = PopoverPopdownMethodInfo
ResolvePopoverMethod "popup" o = PopoverPopupMethodInfo
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 "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 "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolvePopoverMethod "getAccessible" o = Gtk.Widget.WidgetGetAccessibleMethodInfo
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 "getCanFocus" o = Gtk.Widget.WidgetGetCanFocusMethodInfo
ResolvePopoverMethod "getCanTarget" o = Gtk.Widget.WidgetGetCanTargetMethodInfo
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 "getInternalChild" o = Gtk.Buildable.BuildableGetInternalChildMethodInfo
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 "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 "getSizeRequest" o = Gtk.Widget.WidgetGetSizeRequestMethodInfo
ResolvePopoverMethod "getStateFlags" o = Gtk.Widget.WidgetGetStateFlagsMethodInfo
ResolvePopoverMethod "getStyleContext" o = Gtk.Widget.WidgetGetStyleContextMethodInfo
ResolvePopoverMethod "getSupportMultidevice" o = Gtk.Widget.WidgetGetSupportMultideviceMethodInfo
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 "setBuildableProperty" o = Gtk.Buildable.BuildableSetBuildablePropertyMethodInfo
ResolvePopoverMethod "setCanFocus" o = Gtk.Widget.WidgetSetCanFocusMethodInfo
ResolvePopoverMethod "setCanTarget" o = Gtk.Widget.WidgetSetCanTargetMethodInfo
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 "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 "setSupportMultidevice" o = Gtk.Widget.WidgetSetSupportMultideviceMethodInfo
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.MethodInfo 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
#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 :: 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 :: 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 :: 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 :: 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 :: 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 :: 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 :: o -> m Bool
getPopoverAutohide o
obj = 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
$ 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 :: o -> Bool -> m ()
setPopoverAutohide o
obj Bool
val = 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 -> 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 :: 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
$ 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
getPopoverChild :: (MonadIO m, IsPopover o) => o -> m (Maybe Gtk.Widget.Widget)
getPopoverChild :: o -> m (Maybe Widget)
getPopoverChild o
obj = 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
$ 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 :: o -> a -> m ()
setPopoverChild o
obj a
val = 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 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 :: 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
$ 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 :: 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 :: o -> m (Maybe Widget)
getPopoverDefaultWidget o
obj = 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
$ 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 :: o -> a -> m ()
setPopoverDefaultWidget o
obj a
val = 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 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 :: 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
$ 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 :: 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 :: o -> m Bool
getPopoverHasArrow o
obj = 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
$ 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 :: o -> Bool -> m ()
setPopoverHasArrow o
obj Bool
val = 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 -> 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 :: 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
$ 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 :: o -> m Bool
getPopoverMnemonicsVisible o
obj = 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
$ 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 :: o -> Bool -> m ()
setPopoverMnemonicsVisible o
obj Bool
val = 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 -> 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 :: 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
$ 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 :: o -> m (Maybe Rectangle)
getPopoverPointingTo o
obj = IO (Maybe Rectangle) -> m (Maybe Rectangle)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
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 :: o -> Rectangle -> m ()
setPopoverPointingTo o
obj Rectangle
val = 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 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 :: 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
$ 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 :: o -> m PositionType
getPopoverPosition o
obj = 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
$ 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 :: o -> PositionType -> m ()
setPopoverPosition o
obj PositionType
val = 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 -> 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 :: 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
$ 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 = ('[ '("autohide", PopoverAutohidePropertyInfo), '("canFocus", Gtk.Widget.WidgetCanFocusPropertyInfo), '("canTarget", Gtk.Widget.WidgetCanTargetPropertyInfo), '("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
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), '("grabNotify", Gtk.Widget.WidgetGrabNotifySignalInfo), '("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 :: 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 :: 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.MethodInfo PopoverGetAutohideMethodInfo a signature where
overloadedMethod = popoverGetAutohide
#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 :: 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.MethodInfo PopoverGetChildMethodInfo a signature where
overloadedMethod = 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 :: 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.MethodInfo PopoverGetHasArrowMethodInfo a signature where
overloadedMethod = 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 :: 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.MethodInfo PopoverGetMnemonicsVisibleMethodInfo a signature where
overloadedMethod = popoverGetMnemonicsVisible
#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 :: 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.MethodInfo PopoverGetPointingToMethodInfo a signature where
overloadedMethod = 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 :: 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.MethodInfo PopoverGetPositionMethodInfo a signature where
overloadedMethod = 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 :: 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.MethodInfo PopoverPopdownMethodInfo a signature where
overloadedMethod = 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.MethodInfo PopoverPopupMethodInfo a signature where
overloadedMethod = popoverPopup
#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 :: 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.MethodInfo PopoverSetAutohideMethodInfo a signature where
overloadedMethod = popoverSetAutohide
#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 :: 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.MethodInfo PopoverSetChildMethodInfo a signature where
overloadedMethod = 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 :: 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.MethodInfo PopoverSetDefaultWidgetMethodInfo a signature where
overloadedMethod = 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 :: 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.MethodInfo PopoverSetHasArrowMethodInfo a signature where
overloadedMethod = 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 :: 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.MethodInfo PopoverSetMnemonicsVisibleMethodInfo a signature where
overloadedMethod = popoverSetMnemonicsVisible
#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 :: 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.MethodInfo PopoverSetPointingToMethodInfo a signature where
overloadedMethod = 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 :: 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.MethodInfo PopoverSetPositionMethodInfo a signature where
overloadedMethod = popoverSetPosition
#endif