#define ENABLE_OVERLOADING (MIN_VERSION_haskell_gi_overloading(1,0,0) \
&& !defined(__HADDOCK_VERSION__))
module GI.Gtk.Objects.Menu
(
Menu(..) ,
IsMenu ,
toMenu ,
noMenu ,
#if ENABLE_OVERLOADING
MenuAttachMethodInfo ,
#endif
menuAttach ,
#if ENABLE_OVERLOADING
MenuAttachToWidgetMethodInfo ,
#endif
menuAttachToWidget ,
#if ENABLE_OVERLOADING
MenuDetachMethodInfo ,
#endif
menuDetach ,
#if ENABLE_OVERLOADING
MenuGetAccelGroupMethodInfo ,
#endif
menuGetAccelGroup ,
#if ENABLE_OVERLOADING
MenuGetAccelPathMethodInfo ,
#endif
menuGetAccelPath ,
#if ENABLE_OVERLOADING
MenuGetActiveMethodInfo ,
#endif
menuGetActive ,
#if ENABLE_OVERLOADING
MenuGetAttachWidgetMethodInfo ,
#endif
menuGetAttachWidget ,
menuGetForAttachWidget ,
#if ENABLE_OVERLOADING
MenuGetMonitorMethodInfo ,
#endif
menuGetMonitor ,
#if ENABLE_OVERLOADING
MenuGetReserveToggleSizeMethodInfo ,
#endif
menuGetReserveToggleSize ,
#if ENABLE_OVERLOADING
MenuGetTearoffStateMethodInfo ,
#endif
menuGetTearoffState ,
#if ENABLE_OVERLOADING
MenuGetTitleMethodInfo ,
#endif
menuGetTitle ,
menuNew ,
menuNewFromModel ,
#if ENABLE_OVERLOADING
MenuPlaceOnMonitorMethodInfo ,
#endif
menuPlaceOnMonitor ,
#if ENABLE_OVERLOADING
MenuPopdownMethodInfo ,
#endif
menuPopdown ,
#if ENABLE_OVERLOADING
MenuPopupMethodInfo ,
#endif
menuPopup ,
#if ENABLE_OVERLOADING
MenuPopupAtPointerMethodInfo ,
#endif
menuPopupAtPointer ,
#if ENABLE_OVERLOADING
MenuPopupAtRectMethodInfo ,
#endif
menuPopupAtRect ,
#if ENABLE_OVERLOADING
MenuPopupAtWidgetMethodInfo ,
#endif
menuPopupAtWidget ,
#if ENABLE_OVERLOADING
MenuPopupForDeviceMethodInfo ,
#endif
menuPopupForDevice ,
#if ENABLE_OVERLOADING
MenuReorderChildMethodInfo ,
#endif
menuReorderChild ,
#if ENABLE_OVERLOADING
MenuRepositionMethodInfo ,
#endif
menuReposition ,
#if ENABLE_OVERLOADING
MenuSetAccelGroupMethodInfo ,
#endif
menuSetAccelGroup ,
#if ENABLE_OVERLOADING
MenuSetAccelPathMethodInfo ,
#endif
menuSetAccelPath ,
#if ENABLE_OVERLOADING
MenuSetActiveMethodInfo ,
#endif
menuSetActive ,
#if ENABLE_OVERLOADING
MenuSetMonitorMethodInfo ,
#endif
menuSetMonitor ,
#if ENABLE_OVERLOADING
MenuSetReserveToggleSizeMethodInfo ,
#endif
menuSetReserveToggleSize ,
#if ENABLE_OVERLOADING
MenuSetScreenMethodInfo ,
#endif
menuSetScreen ,
#if ENABLE_OVERLOADING
MenuSetTearoffStateMethodInfo ,
#endif
menuSetTearoffState ,
#if ENABLE_OVERLOADING
MenuSetTitleMethodInfo ,
#endif
menuSetTitle ,
#if ENABLE_OVERLOADING
MenuAccelGroupPropertyInfo ,
#endif
clearMenuAccelGroup ,
constructMenuAccelGroup ,
getMenuAccelGroup ,
#if ENABLE_OVERLOADING
menuAccelGroup ,
#endif
setMenuAccelGroup ,
#if ENABLE_OVERLOADING
MenuAccelPathPropertyInfo ,
#endif
clearMenuAccelPath ,
constructMenuAccelPath ,
getMenuAccelPath ,
#if ENABLE_OVERLOADING
menuAccelPath ,
#endif
setMenuAccelPath ,
#if ENABLE_OVERLOADING
MenuActivePropertyInfo ,
#endif
constructMenuActive ,
getMenuActive ,
#if ENABLE_OVERLOADING
menuActive ,
#endif
setMenuActive ,
#if ENABLE_OVERLOADING
MenuAnchorHintsPropertyInfo ,
#endif
constructMenuAnchorHints ,
getMenuAnchorHints ,
#if ENABLE_OVERLOADING
menuAnchorHints ,
#endif
setMenuAnchorHints ,
#if ENABLE_OVERLOADING
MenuAttachWidgetPropertyInfo ,
#endif
clearMenuAttachWidget ,
constructMenuAttachWidget ,
getMenuAttachWidget ,
#if ENABLE_OVERLOADING
menuAttachWidget ,
#endif
setMenuAttachWidget ,
#if ENABLE_OVERLOADING
MenuMenuTypeHintPropertyInfo ,
#endif
constructMenuMenuTypeHint ,
getMenuMenuTypeHint ,
#if ENABLE_OVERLOADING
menuMenuTypeHint ,
#endif
setMenuMenuTypeHint ,
#if ENABLE_OVERLOADING
MenuMonitorPropertyInfo ,
#endif
constructMenuMonitor ,
getMenuMonitor ,
#if ENABLE_OVERLOADING
menuMonitor ,
#endif
setMenuMonitor ,
#if ENABLE_OVERLOADING
MenuRectAnchorDxPropertyInfo ,
#endif
constructMenuRectAnchorDx ,
getMenuRectAnchorDx ,
#if ENABLE_OVERLOADING
menuRectAnchorDx ,
#endif
setMenuRectAnchorDx ,
#if ENABLE_OVERLOADING
MenuRectAnchorDyPropertyInfo ,
#endif
constructMenuRectAnchorDy ,
getMenuRectAnchorDy ,
#if ENABLE_OVERLOADING
menuRectAnchorDy ,
#endif
setMenuRectAnchorDy ,
#if ENABLE_OVERLOADING
MenuReserveToggleSizePropertyInfo ,
#endif
constructMenuReserveToggleSize ,
getMenuReserveToggleSize ,
#if ENABLE_OVERLOADING
menuReserveToggleSize ,
#endif
setMenuReserveToggleSize ,
#if ENABLE_OVERLOADING
MenuTearoffStatePropertyInfo ,
#endif
constructMenuTearoffState ,
getMenuTearoffState ,
#if ENABLE_OVERLOADING
menuTearoffState ,
#endif
setMenuTearoffState ,
#if ENABLE_OVERLOADING
MenuTearoffTitlePropertyInfo ,
#endif
clearMenuTearoffTitle ,
constructMenuTearoffTitle ,
getMenuTearoffTitle ,
#if ENABLE_OVERLOADING
menuTearoffTitle ,
#endif
setMenuTearoffTitle ,
C_MenuMoveScrollCallback ,
MenuMoveScrollCallback ,
#if ENABLE_OVERLOADING
MenuMoveScrollSignalInfo ,
#endif
afterMenuMoveScroll ,
genClosure_MenuMoveScroll ,
mk_MenuMoveScrollCallback ,
noMenuMoveScrollCallback ,
onMenuMoveScroll ,
wrap_MenuMoveScrollCallback ,
C_MenuPoppedUpCallback ,
MenuPoppedUpCallback ,
#if ENABLE_OVERLOADING
MenuPoppedUpSignalInfo ,
#endif
afterMenuPoppedUp ,
genClosure_MenuPoppedUp ,
mk_MenuPoppedUpCallback ,
noMenuPoppedUpCallback ,
onMenuPoppedUp ,
wrap_MenuPoppedUpCallback ,
) 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.ManagedPtr as B.ManagedPtr
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.Text as T
import qualified Data.ByteString.Char8 as B
import qualified Data.Map as Map
import qualified Foreign.Ptr as FP
import qualified GI.Atk.Interfaces.ImplementorIface as Atk.ImplementorIface
import qualified GI.GLib.Callbacks as GLib.Callbacks
import qualified GI.GObject.Objects.Object as GObject.Object
import qualified GI.Gdk.Enums as Gdk.Enums
import qualified GI.Gdk.Flags as Gdk.Flags
import qualified GI.Gdk.Objects.Device as Gdk.Device
import qualified GI.Gdk.Objects.Monitor as Gdk.Monitor
import qualified GI.Gdk.Objects.Screen as Gdk.Screen
import qualified GI.Gdk.Objects.Window as Gdk.Window
import qualified GI.Gdk.Structs.Rectangle as Gdk.Rectangle
import qualified GI.Gdk.Unions.Event as Gdk.Event
import qualified GI.Gio.Objects.MenuModel as Gio.MenuModel
import qualified GI.Gtk.Callbacks as Gtk.Callbacks
import {-# SOURCE #-} qualified GI.Gtk.Enums as Gtk.Enums
import {-# SOURCE #-} qualified GI.Gtk.Interfaces.Buildable as Gtk.Buildable
import {-# SOURCE #-} qualified GI.Gtk.Objects.AccelGroup as Gtk.AccelGroup
import {-# SOURCE #-} qualified GI.Gtk.Objects.Container as Gtk.Container
import {-# SOURCE #-} qualified GI.Gtk.Objects.MenuShell as Gtk.MenuShell
import {-# SOURCE #-} qualified GI.Gtk.Objects.Widget as Gtk.Widget
newtype Menu = Menu (ManagedPtr Menu)
foreign import ccall "gtk_menu_get_type"
c_gtk_menu_get_type :: IO GType
instance GObject Menu where
gobjectType _ = c_gtk_menu_get_type
class GObject o => IsMenu o
#if MIN_VERSION_base(4,9,0)
instance {-# OVERLAPPABLE #-} (GObject a, O.UnknownAncestorError Menu a) =>
IsMenu a
#endif
instance IsMenu Menu
instance Gtk.MenuShell.IsMenuShell Menu
instance Gtk.Container.IsContainer Menu
instance Gtk.Widget.IsWidget Menu
instance GObject.Object.IsObject Menu
instance Atk.ImplementorIface.IsImplementorIface Menu
instance Gtk.Buildable.IsBuildable Menu
toMenu :: (MonadIO m, IsMenu o) => o -> m Menu
toMenu = liftIO . unsafeCastTo Menu
noMenu :: Maybe Menu
noMenu = Nothing
#if ENABLE_OVERLOADING
type family ResolveMenuMethod (t :: Symbol) (o :: *) :: * where
ResolveMenuMethod "activate" o = Gtk.Widget.WidgetActivateMethodInfo
ResolveMenuMethod "activateItem" o = Gtk.MenuShell.MenuShellActivateItemMethodInfo
ResolveMenuMethod "add" o = Gtk.Container.ContainerAddMethodInfo
ResolveMenuMethod "addAccelerator" o = Gtk.Widget.WidgetAddAcceleratorMethodInfo
ResolveMenuMethod "addChild" o = Gtk.Buildable.BuildableAddChildMethodInfo
ResolveMenuMethod "addDeviceEvents" o = Gtk.Widget.WidgetAddDeviceEventsMethodInfo
ResolveMenuMethod "addEvents" o = Gtk.Widget.WidgetAddEventsMethodInfo
ResolveMenuMethod "addMnemonicLabel" o = Gtk.Widget.WidgetAddMnemonicLabelMethodInfo
ResolveMenuMethod "addTickCallback" o = Gtk.Widget.WidgetAddTickCallbackMethodInfo
ResolveMenuMethod "append" o = Gtk.MenuShell.MenuShellAppendMethodInfo
ResolveMenuMethod "attach" o = MenuAttachMethodInfo
ResolveMenuMethod "attachToWidget" o = MenuAttachToWidgetMethodInfo
ResolveMenuMethod "bindModel" o = Gtk.MenuShell.MenuShellBindModelMethodInfo
ResolveMenuMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolveMenuMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolveMenuMethod "canActivateAccel" o = Gtk.Widget.WidgetCanActivateAccelMethodInfo
ResolveMenuMethod "cancel" o = Gtk.MenuShell.MenuShellCancelMethodInfo
ResolveMenuMethod "checkResize" o = Gtk.Container.ContainerCheckResizeMethodInfo
ResolveMenuMethod "childFocus" o = Gtk.Widget.WidgetChildFocusMethodInfo
ResolveMenuMethod "childGetProperty" o = Gtk.Container.ContainerChildGetPropertyMethodInfo
ResolveMenuMethod "childNotify" o = Gtk.Container.ContainerChildNotifyMethodInfo
ResolveMenuMethod "childNotifyByPspec" o = Gtk.Container.ContainerChildNotifyByPspecMethodInfo
ResolveMenuMethod "childSetProperty" o = Gtk.Container.ContainerChildSetPropertyMethodInfo
ResolveMenuMethod "childType" o = Gtk.Container.ContainerChildTypeMethodInfo
ResolveMenuMethod "classPath" o = Gtk.Widget.WidgetClassPathMethodInfo
ResolveMenuMethod "computeExpand" o = Gtk.Widget.WidgetComputeExpandMethodInfo
ResolveMenuMethod "constructChild" o = Gtk.Buildable.BuildableConstructChildMethodInfo
ResolveMenuMethod "createPangoContext" o = Gtk.Widget.WidgetCreatePangoContextMethodInfo
ResolveMenuMethod "createPangoLayout" o = Gtk.Widget.WidgetCreatePangoLayoutMethodInfo
ResolveMenuMethod "customFinished" o = Gtk.Buildable.BuildableCustomFinishedMethodInfo
ResolveMenuMethod "customTagEnd" o = Gtk.Buildable.BuildableCustomTagEndMethodInfo
ResolveMenuMethod "customTagStart" o = Gtk.Buildable.BuildableCustomTagStartMethodInfo
ResolveMenuMethod "deactivate" o = Gtk.MenuShell.MenuShellDeactivateMethodInfo
ResolveMenuMethod "deselect" o = Gtk.MenuShell.MenuShellDeselectMethodInfo
ResolveMenuMethod "destroy" o = Gtk.Widget.WidgetDestroyMethodInfo
ResolveMenuMethod "destroyed" o = Gtk.Widget.WidgetDestroyedMethodInfo
ResolveMenuMethod "detach" o = MenuDetachMethodInfo
ResolveMenuMethod "deviceIsShadowed" o = Gtk.Widget.WidgetDeviceIsShadowedMethodInfo
ResolveMenuMethod "dragBegin" o = Gtk.Widget.WidgetDragBeginMethodInfo
ResolveMenuMethod "dragBeginWithCoordinates" o = Gtk.Widget.WidgetDragBeginWithCoordinatesMethodInfo
ResolveMenuMethod "dragCheckThreshold" o = Gtk.Widget.WidgetDragCheckThresholdMethodInfo
ResolveMenuMethod "dragDestAddImageTargets" o = Gtk.Widget.WidgetDragDestAddImageTargetsMethodInfo
ResolveMenuMethod "dragDestAddTextTargets" o = Gtk.Widget.WidgetDragDestAddTextTargetsMethodInfo
ResolveMenuMethod "dragDestAddUriTargets" o = Gtk.Widget.WidgetDragDestAddUriTargetsMethodInfo
ResolveMenuMethod "dragDestFindTarget" o = Gtk.Widget.WidgetDragDestFindTargetMethodInfo
ResolveMenuMethod "dragDestGetTargetList" o = Gtk.Widget.WidgetDragDestGetTargetListMethodInfo
ResolveMenuMethod "dragDestGetTrackMotion" o = Gtk.Widget.WidgetDragDestGetTrackMotionMethodInfo
ResolveMenuMethod "dragDestSet" o = Gtk.Widget.WidgetDragDestSetMethodInfo
ResolveMenuMethod "dragDestSetProxy" o = Gtk.Widget.WidgetDragDestSetProxyMethodInfo
ResolveMenuMethod "dragDestSetTargetList" o = Gtk.Widget.WidgetDragDestSetTargetListMethodInfo
ResolveMenuMethod "dragDestSetTrackMotion" o = Gtk.Widget.WidgetDragDestSetTrackMotionMethodInfo
ResolveMenuMethod "dragDestUnset" o = Gtk.Widget.WidgetDragDestUnsetMethodInfo
ResolveMenuMethod "dragGetData" o = Gtk.Widget.WidgetDragGetDataMethodInfo
ResolveMenuMethod "dragHighlight" o = Gtk.Widget.WidgetDragHighlightMethodInfo
ResolveMenuMethod "dragSourceAddImageTargets" o = Gtk.Widget.WidgetDragSourceAddImageTargetsMethodInfo
ResolveMenuMethod "dragSourceAddTextTargets" o = Gtk.Widget.WidgetDragSourceAddTextTargetsMethodInfo
ResolveMenuMethod "dragSourceAddUriTargets" o = Gtk.Widget.WidgetDragSourceAddUriTargetsMethodInfo
ResolveMenuMethod "dragSourceGetTargetList" o = Gtk.Widget.WidgetDragSourceGetTargetListMethodInfo
ResolveMenuMethod "dragSourceSet" o = Gtk.Widget.WidgetDragSourceSetMethodInfo
ResolveMenuMethod "dragSourceSetIconGicon" o = Gtk.Widget.WidgetDragSourceSetIconGiconMethodInfo
ResolveMenuMethod "dragSourceSetIconName" o = Gtk.Widget.WidgetDragSourceSetIconNameMethodInfo
ResolveMenuMethod "dragSourceSetIconPixbuf" o = Gtk.Widget.WidgetDragSourceSetIconPixbufMethodInfo
ResolveMenuMethod "dragSourceSetIconStock" o = Gtk.Widget.WidgetDragSourceSetIconStockMethodInfo
ResolveMenuMethod "dragSourceSetTargetList" o = Gtk.Widget.WidgetDragSourceSetTargetListMethodInfo
ResolveMenuMethod "dragSourceUnset" o = Gtk.Widget.WidgetDragSourceUnsetMethodInfo
ResolveMenuMethod "dragUnhighlight" o = Gtk.Widget.WidgetDragUnhighlightMethodInfo
ResolveMenuMethod "draw" o = Gtk.Widget.WidgetDrawMethodInfo
ResolveMenuMethod "ensureStyle" o = Gtk.Widget.WidgetEnsureStyleMethodInfo
ResolveMenuMethod "errorBell" o = Gtk.Widget.WidgetErrorBellMethodInfo
ResolveMenuMethod "event" o = Gtk.Widget.WidgetEventMethodInfo
ResolveMenuMethod "forall" o = Gtk.Container.ContainerForallMethodInfo
ResolveMenuMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolveMenuMethod "foreach" o = Gtk.Container.ContainerForeachMethodInfo
ResolveMenuMethod "freezeChildNotify" o = Gtk.Widget.WidgetFreezeChildNotifyMethodInfo
ResolveMenuMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolveMenuMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
ResolveMenuMethod "grabAdd" o = Gtk.Widget.WidgetGrabAddMethodInfo
ResolveMenuMethod "grabDefault" o = Gtk.Widget.WidgetGrabDefaultMethodInfo
ResolveMenuMethod "grabFocus" o = Gtk.Widget.WidgetGrabFocusMethodInfo
ResolveMenuMethod "grabRemove" o = Gtk.Widget.WidgetGrabRemoveMethodInfo
ResolveMenuMethod "hasDefault" o = Gtk.Widget.WidgetHasDefaultMethodInfo
ResolveMenuMethod "hasFocus" o = Gtk.Widget.WidgetHasFocusMethodInfo
ResolveMenuMethod "hasGrab" o = Gtk.Widget.WidgetHasGrabMethodInfo
ResolveMenuMethod "hasRcStyle" o = Gtk.Widget.WidgetHasRcStyleMethodInfo
ResolveMenuMethod "hasScreen" o = Gtk.Widget.WidgetHasScreenMethodInfo
ResolveMenuMethod "hasVisibleFocus" o = Gtk.Widget.WidgetHasVisibleFocusMethodInfo
ResolveMenuMethod "hide" o = Gtk.Widget.WidgetHideMethodInfo
ResolveMenuMethod "hideOnDelete" o = Gtk.Widget.WidgetHideOnDeleteMethodInfo
ResolveMenuMethod "inDestruction" o = Gtk.Widget.WidgetInDestructionMethodInfo
ResolveMenuMethod "initTemplate" o = Gtk.Widget.WidgetInitTemplateMethodInfo
ResolveMenuMethod "inputShapeCombineRegion" o = Gtk.Widget.WidgetInputShapeCombineRegionMethodInfo
ResolveMenuMethod "insert" o = Gtk.MenuShell.MenuShellInsertMethodInfo
ResolveMenuMethod "insertActionGroup" o = Gtk.Widget.WidgetInsertActionGroupMethodInfo
ResolveMenuMethod "intersect" o = Gtk.Widget.WidgetIntersectMethodInfo
ResolveMenuMethod "isAncestor" o = Gtk.Widget.WidgetIsAncestorMethodInfo
ResolveMenuMethod "isComposited" o = Gtk.Widget.WidgetIsCompositedMethodInfo
ResolveMenuMethod "isDrawable" o = Gtk.Widget.WidgetIsDrawableMethodInfo
ResolveMenuMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolveMenuMethod "isFocus" o = Gtk.Widget.WidgetIsFocusMethodInfo
ResolveMenuMethod "isSensitive" o = Gtk.Widget.WidgetIsSensitiveMethodInfo
ResolveMenuMethod "isToplevel" o = Gtk.Widget.WidgetIsToplevelMethodInfo
ResolveMenuMethod "isVisible" o = Gtk.Widget.WidgetIsVisibleMethodInfo
ResolveMenuMethod "keynavFailed" o = Gtk.Widget.WidgetKeynavFailedMethodInfo
ResolveMenuMethod "listAccelClosures" o = Gtk.Widget.WidgetListAccelClosuresMethodInfo
ResolveMenuMethod "listActionPrefixes" o = Gtk.Widget.WidgetListActionPrefixesMethodInfo
ResolveMenuMethod "listMnemonicLabels" o = Gtk.Widget.WidgetListMnemonicLabelsMethodInfo
ResolveMenuMethod "map" o = Gtk.Widget.WidgetMapMethodInfo
ResolveMenuMethod "mnemonicActivate" o = Gtk.Widget.WidgetMnemonicActivateMethodInfo
ResolveMenuMethod "modifyBase" o = Gtk.Widget.WidgetModifyBaseMethodInfo
ResolveMenuMethod "modifyBg" o = Gtk.Widget.WidgetModifyBgMethodInfo
ResolveMenuMethod "modifyCursor" o = Gtk.Widget.WidgetModifyCursorMethodInfo
ResolveMenuMethod "modifyFg" o = Gtk.Widget.WidgetModifyFgMethodInfo
ResolveMenuMethod "modifyFont" o = Gtk.Widget.WidgetModifyFontMethodInfo
ResolveMenuMethod "modifyStyle" o = Gtk.Widget.WidgetModifyStyleMethodInfo
ResolveMenuMethod "modifyText" o = Gtk.Widget.WidgetModifyTextMethodInfo
ResolveMenuMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolveMenuMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolveMenuMethod "overrideBackgroundColor" o = Gtk.Widget.WidgetOverrideBackgroundColorMethodInfo
ResolveMenuMethod "overrideColor" o = Gtk.Widget.WidgetOverrideColorMethodInfo
ResolveMenuMethod "overrideCursor" o = Gtk.Widget.WidgetOverrideCursorMethodInfo
ResolveMenuMethod "overrideFont" o = Gtk.Widget.WidgetOverrideFontMethodInfo
ResolveMenuMethod "overrideSymbolicColor" o = Gtk.Widget.WidgetOverrideSymbolicColorMethodInfo
ResolveMenuMethod "parserFinished" o = Gtk.Buildable.BuildableParserFinishedMethodInfo
ResolveMenuMethod "path" o = Gtk.Widget.WidgetPathMethodInfo
ResolveMenuMethod "placeOnMonitor" o = MenuPlaceOnMonitorMethodInfo
ResolveMenuMethod "popdown" o = MenuPopdownMethodInfo
ResolveMenuMethod "popup" o = MenuPopupMethodInfo
ResolveMenuMethod "popupAtPointer" o = MenuPopupAtPointerMethodInfo
ResolveMenuMethod "popupAtRect" o = MenuPopupAtRectMethodInfo
ResolveMenuMethod "popupAtWidget" o = MenuPopupAtWidgetMethodInfo
ResolveMenuMethod "popupForDevice" o = MenuPopupForDeviceMethodInfo
ResolveMenuMethod "prepend" o = Gtk.MenuShell.MenuShellPrependMethodInfo
ResolveMenuMethod "propagateDraw" o = Gtk.Container.ContainerPropagateDrawMethodInfo
ResolveMenuMethod "queueAllocate" o = Gtk.Widget.WidgetQueueAllocateMethodInfo
ResolveMenuMethod "queueComputeExpand" o = Gtk.Widget.WidgetQueueComputeExpandMethodInfo
ResolveMenuMethod "queueDraw" o = Gtk.Widget.WidgetQueueDrawMethodInfo
ResolveMenuMethod "queueDrawArea" o = Gtk.Widget.WidgetQueueDrawAreaMethodInfo
ResolveMenuMethod "queueDrawRegion" o = Gtk.Widget.WidgetQueueDrawRegionMethodInfo
ResolveMenuMethod "queueResize" o = Gtk.Widget.WidgetQueueResizeMethodInfo
ResolveMenuMethod "queueResizeNoRedraw" o = Gtk.Widget.WidgetQueueResizeNoRedrawMethodInfo
ResolveMenuMethod "realize" o = Gtk.Widget.WidgetRealizeMethodInfo
ResolveMenuMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolveMenuMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolveMenuMethod "regionIntersect" o = Gtk.Widget.WidgetRegionIntersectMethodInfo
ResolveMenuMethod "registerWindow" o = Gtk.Widget.WidgetRegisterWindowMethodInfo
ResolveMenuMethod "remove" o = Gtk.Container.ContainerRemoveMethodInfo
ResolveMenuMethod "removeAccelerator" o = Gtk.Widget.WidgetRemoveAcceleratorMethodInfo
ResolveMenuMethod "removeMnemonicLabel" o = Gtk.Widget.WidgetRemoveMnemonicLabelMethodInfo
ResolveMenuMethod "removeTickCallback" o = Gtk.Widget.WidgetRemoveTickCallbackMethodInfo
ResolveMenuMethod "renderIcon" o = Gtk.Widget.WidgetRenderIconMethodInfo
ResolveMenuMethod "renderIconPixbuf" o = Gtk.Widget.WidgetRenderIconPixbufMethodInfo
ResolveMenuMethod "reorderChild" o = MenuReorderChildMethodInfo
ResolveMenuMethod "reparent" o = Gtk.Widget.WidgetReparentMethodInfo
ResolveMenuMethod "reposition" o = MenuRepositionMethodInfo
ResolveMenuMethod "resetRcStyles" o = Gtk.Widget.WidgetResetRcStylesMethodInfo
ResolveMenuMethod "resetStyle" o = Gtk.Widget.WidgetResetStyleMethodInfo
ResolveMenuMethod "resizeChildren" o = Gtk.Container.ContainerResizeChildrenMethodInfo
ResolveMenuMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolveMenuMethod "selectFirst" o = Gtk.MenuShell.MenuShellSelectFirstMethodInfo
ResolveMenuMethod "selectItem" o = Gtk.MenuShell.MenuShellSelectItemMethodInfo
ResolveMenuMethod "sendExpose" o = Gtk.Widget.WidgetSendExposeMethodInfo
ResolveMenuMethod "sendFocusChange" o = Gtk.Widget.WidgetSendFocusChangeMethodInfo
ResolveMenuMethod "shapeCombineRegion" o = Gtk.Widget.WidgetShapeCombineRegionMethodInfo
ResolveMenuMethod "show" o = Gtk.Widget.WidgetShowMethodInfo
ResolveMenuMethod "showAll" o = Gtk.Widget.WidgetShowAllMethodInfo
ResolveMenuMethod "showNow" o = Gtk.Widget.WidgetShowNowMethodInfo
ResolveMenuMethod "sizeAllocate" o = Gtk.Widget.WidgetSizeAllocateMethodInfo
ResolveMenuMethod "sizeAllocateWithBaseline" o = Gtk.Widget.WidgetSizeAllocateWithBaselineMethodInfo
ResolveMenuMethod "sizeRequest" o = Gtk.Widget.WidgetSizeRequestMethodInfo
ResolveMenuMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolveMenuMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolveMenuMethod "styleAttach" o = Gtk.Widget.WidgetStyleAttachMethodInfo
ResolveMenuMethod "styleGetProperty" o = Gtk.Widget.WidgetStyleGetPropertyMethodInfo
ResolveMenuMethod "thawChildNotify" o = Gtk.Widget.WidgetThawChildNotifyMethodInfo
ResolveMenuMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolveMenuMethod "translateCoordinates" o = Gtk.Widget.WidgetTranslateCoordinatesMethodInfo
ResolveMenuMethod "triggerTooltipQuery" o = Gtk.Widget.WidgetTriggerTooltipQueryMethodInfo
ResolveMenuMethod "unmap" o = Gtk.Widget.WidgetUnmapMethodInfo
ResolveMenuMethod "unparent" o = Gtk.Widget.WidgetUnparentMethodInfo
ResolveMenuMethod "unrealize" o = Gtk.Widget.WidgetUnrealizeMethodInfo
ResolveMenuMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolveMenuMethod "unregisterWindow" o = Gtk.Widget.WidgetUnregisterWindowMethodInfo
ResolveMenuMethod "unsetFocusChain" o = Gtk.Container.ContainerUnsetFocusChainMethodInfo
ResolveMenuMethod "unsetStateFlags" o = Gtk.Widget.WidgetUnsetStateFlagsMethodInfo
ResolveMenuMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolveMenuMethod "getAccelGroup" o = MenuGetAccelGroupMethodInfo
ResolveMenuMethod "getAccelPath" o = MenuGetAccelPathMethodInfo
ResolveMenuMethod "getAccessible" o = Gtk.Widget.WidgetGetAccessibleMethodInfo
ResolveMenuMethod "getActionGroup" o = Gtk.Widget.WidgetGetActionGroupMethodInfo
ResolveMenuMethod "getActive" o = MenuGetActiveMethodInfo
ResolveMenuMethod "getAllocatedBaseline" o = Gtk.Widget.WidgetGetAllocatedBaselineMethodInfo
ResolveMenuMethod "getAllocatedHeight" o = Gtk.Widget.WidgetGetAllocatedHeightMethodInfo
ResolveMenuMethod "getAllocatedSize" o = Gtk.Widget.WidgetGetAllocatedSizeMethodInfo
ResolveMenuMethod "getAllocatedWidth" o = Gtk.Widget.WidgetGetAllocatedWidthMethodInfo
ResolveMenuMethod "getAllocation" o = Gtk.Widget.WidgetGetAllocationMethodInfo
ResolveMenuMethod "getAncestor" o = Gtk.Widget.WidgetGetAncestorMethodInfo
ResolveMenuMethod "getAppPaintable" o = Gtk.Widget.WidgetGetAppPaintableMethodInfo
ResolveMenuMethod "getAttachWidget" o = MenuGetAttachWidgetMethodInfo
ResolveMenuMethod "getBorderWidth" o = Gtk.Container.ContainerGetBorderWidthMethodInfo
ResolveMenuMethod "getCanDefault" o = Gtk.Widget.WidgetGetCanDefaultMethodInfo
ResolveMenuMethod "getCanFocus" o = Gtk.Widget.WidgetGetCanFocusMethodInfo
ResolveMenuMethod "getChildRequisition" o = Gtk.Widget.WidgetGetChildRequisitionMethodInfo
ResolveMenuMethod "getChildVisible" o = Gtk.Widget.WidgetGetChildVisibleMethodInfo
ResolveMenuMethod "getChildren" o = Gtk.Container.ContainerGetChildrenMethodInfo
ResolveMenuMethod "getClip" o = Gtk.Widget.WidgetGetClipMethodInfo
ResolveMenuMethod "getClipboard" o = Gtk.Widget.WidgetGetClipboardMethodInfo
ResolveMenuMethod "getCompositeName" o = Gtk.Widget.WidgetGetCompositeNameMethodInfo
ResolveMenuMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolveMenuMethod "getDeviceEnabled" o = Gtk.Widget.WidgetGetDeviceEnabledMethodInfo
ResolveMenuMethod "getDeviceEvents" o = Gtk.Widget.WidgetGetDeviceEventsMethodInfo
ResolveMenuMethod "getDirection" o = Gtk.Widget.WidgetGetDirectionMethodInfo
ResolveMenuMethod "getDisplay" o = Gtk.Widget.WidgetGetDisplayMethodInfo
ResolveMenuMethod "getDoubleBuffered" o = Gtk.Widget.WidgetGetDoubleBufferedMethodInfo
ResolveMenuMethod "getEvents" o = Gtk.Widget.WidgetGetEventsMethodInfo
ResolveMenuMethod "getFocusChain" o = Gtk.Container.ContainerGetFocusChainMethodInfo
ResolveMenuMethod "getFocusChild" o = Gtk.Container.ContainerGetFocusChildMethodInfo
ResolveMenuMethod "getFocusHadjustment" o = Gtk.Container.ContainerGetFocusHadjustmentMethodInfo
ResolveMenuMethod "getFocusOnClick" o = Gtk.Widget.WidgetGetFocusOnClickMethodInfo
ResolveMenuMethod "getFocusVadjustment" o = Gtk.Container.ContainerGetFocusVadjustmentMethodInfo
ResolveMenuMethod "getFontMap" o = Gtk.Widget.WidgetGetFontMapMethodInfo
ResolveMenuMethod "getFontOptions" o = Gtk.Widget.WidgetGetFontOptionsMethodInfo
ResolveMenuMethod "getFrameClock" o = Gtk.Widget.WidgetGetFrameClockMethodInfo
ResolveMenuMethod "getHalign" o = Gtk.Widget.WidgetGetHalignMethodInfo
ResolveMenuMethod "getHasTooltip" o = Gtk.Widget.WidgetGetHasTooltipMethodInfo
ResolveMenuMethod "getHasWindow" o = Gtk.Widget.WidgetGetHasWindowMethodInfo
ResolveMenuMethod "getHexpand" o = Gtk.Widget.WidgetGetHexpandMethodInfo
ResolveMenuMethod "getHexpandSet" o = Gtk.Widget.WidgetGetHexpandSetMethodInfo
ResolveMenuMethod "getInternalChild" o = Gtk.Buildable.BuildableGetInternalChildMethodInfo
ResolveMenuMethod "getMapped" o = Gtk.Widget.WidgetGetMappedMethodInfo
ResolveMenuMethod "getMarginBottom" o = Gtk.Widget.WidgetGetMarginBottomMethodInfo
ResolveMenuMethod "getMarginEnd" o = Gtk.Widget.WidgetGetMarginEndMethodInfo
ResolveMenuMethod "getMarginLeft" o = Gtk.Widget.WidgetGetMarginLeftMethodInfo
ResolveMenuMethod "getMarginRight" o = Gtk.Widget.WidgetGetMarginRightMethodInfo
ResolveMenuMethod "getMarginStart" o = Gtk.Widget.WidgetGetMarginStartMethodInfo
ResolveMenuMethod "getMarginTop" o = Gtk.Widget.WidgetGetMarginTopMethodInfo
ResolveMenuMethod "getModifierMask" o = Gtk.Widget.WidgetGetModifierMaskMethodInfo
ResolveMenuMethod "getModifierStyle" o = Gtk.Widget.WidgetGetModifierStyleMethodInfo
ResolveMenuMethod "getMonitor" o = MenuGetMonitorMethodInfo
ResolveMenuMethod "getName" o = Gtk.Widget.WidgetGetNameMethodInfo
ResolveMenuMethod "getNoShowAll" o = Gtk.Widget.WidgetGetNoShowAllMethodInfo
ResolveMenuMethod "getOpacity" o = Gtk.Widget.WidgetGetOpacityMethodInfo
ResolveMenuMethod "getPangoContext" o = Gtk.Widget.WidgetGetPangoContextMethodInfo
ResolveMenuMethod "getParent" o = Gtk.Widget.WidgetGetParentMethodInfo
ResolveMenuMethod "getParentShell" o = Gtk.MenuShell.MenuShellGetParentShellMethodInfo
ResolveMenuMethod "getParentWindow" o = Gtk.Widget.WidgetGetParentWindowMethodInfo
ResolveMenuMethod "getPath" o = Gtk.Widget.WidgetGetPathMethodInfo
ResolveMenuMethod "getPathForChild" o = Gtk.Container.ContainerGetPathForChildMethodInfo
ResolveMenuMethod "getPointer" o = Gtk.Widget.WidgetGetPointerMethodInfo
ResolveMenuMethod "getPreferredHeight" o = Gtk.Widget.WidgetGetPreferredHeightMethodInfo
ResolveMenuMethod "getPreferredHeightAndBaselineForWidth" o = Gtk.Widget.WidgetGetPreferredHeightAndBaselineForWidthMethodInfo
ResolveMenuMethod "getPreferredHeightForWidth" o = Gtk.Widget.WidgetGetPreferredHeightForWidthMethodInfo
ResolveMenuMethod "getPreferredSize" o = Gtk.Widget.WidgetGetPreferredSizeMethodInfo
ResolveMenuMethod "getPreferredWidth" o = Gtk.Widget.WidgetGetPreferredWidthMethodInfo
ResolveMenuMethod "getPreferredWidthForHeight" o = Gtk.Widget.WidgetGetPreferredWidthForHeightMethodInfo
ResolveMenuMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolveMenuMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolveMenuMethod "getRealized" o = Gtk.Widget.WidgetGetRealizedMethodInfo
ResolveMenuMethod "getReceivesDefault" o = Gtk.Widget.WidgetGetReceivesDefaultMethodInfo
ResolveMenuMethod "getRequestMode" o = Gtk.Widget.WidgetGetRequestModeMethodInfo
ResolveMenuMethod "getRequisition" o = Gtk.Widget.WidgetGetRequisitionMethodInfo
ResolveMenuMethod "getReserveToggleSize" o = MenuGetReserveToggleSizeMethodInfo
ResolveMenuMethod "getResizeMode" o = Gtk.Container.ContainerGetResizeModeMethodInfo
ResolveMenuMethod "getRootWindow" o = Gtk.Widget.WidgetGetRootWindowMethodInfo
ResolveMenuMethod "getScaleFactor" o = Gtk.Widget.WidgetGetScaleFactorMethodInfo
ResolveMenuMethod "getScreen" o = Gtk.Widget.WidgetGetScreenMethodInfo
ResolveMenuMethod "getSelectedItem" o = Gtk.MenuShell.MenuShellGetSelectedItemMethodInfo
ResolveMenuMethod "getSensitive" o = Gtk.Widget.WidgetGetSensitiveMethodInfo
ResolveMenuMethod "getSettings" o = Gtk.Widget.WidgetGetSettingsMethodInfo
ResolveMenuMethod "getSizeRequest" o = Gtk.Widget.WidgetGetSizeRequestMethodInfo
ResolveMenuMethod "getState" o = Gtk.Widget.WidgetGetStateMethodInfo
ResolveMenuMethod "getStateFlags" o = Gtk.Widget.WidgetGetStateFlagsMethodInfo
ResolveMenuMethod "getStyle" o = Gtk.Widget.WidgetGetStyleMethodInfo
ResolveMenuMethod "getStyleContext" o = Gtk.Widget.WidgetGetStyleContextMethodInfo
ResolveMenuMethod "getSupportMultidevice" o = Gtk.Widget.WidgetGetSupportMultideviceMethodInfo
ResolveMenuMethod "getTakeFocus" o = Gtk.MenuShell.MenuShellGetTakeFocusMethodInfo
ResolveMenuMethod "getTearoffState" o = MenuGetTearoffStateMethodInfo
ResolveMenuMethod "getTemplateChild" o = Gtk.Widget.WidgetGetTemplateChildMethodInfo
ResolveMenuMethod "getTitle" o = MenuGetTitleMethodInfo
ResolveMenuMethod "getTooltipMarkup" o = Gtk.Widget.WidgetGetTooltipMarkupMethodInfo
ResolveMenuMethod "getTooltipText" o = Gtk.Widget.WidgetGetTooltipTextMethodInfo
ResolveMenuMethod "getTooltipWindow" o = Gtk.Widget.WidgetGetTooltipWindowMethodInfo
ResolveMenuMethod "getToplevel" o = Gtk.Widget.WidgetGetToplevelMethodInfo
ResolveMenuMethod "getValign" o = Gtk.Widget.WidgetGetValignMethodInfo
ResolveMenuMethod "getValignWithBaseline" o = Gtk.Widget.WidgetGetValignWithBaselineMethodInfo
ResolveMenuMethod "getVexpand" o = Gtk.Widget.WidgetGetVexpandMethodInfo
ResolveMenuMethod "getVexpandSet" o = Gtk.Widget.WidgetGetVexpandSetMethodInfo
ResolveMenuMethod "getVisible" o = Gtk.Widget.WidgetGetVisibleMethodInfo
ResolveMenuMethod "getVisual" o = Gtk.Widget.WidgetGetVisualMethodInfo
ResolveMenuMethod "getWindow" o = Gtk.Widget.WidgetGetWindowMethodInfo
ResolveMenuMethod "setAccelGroup" o = MenuSetAccelGroupMethodInfo
ResolveMenuMethod "setAccelPath" o = MenuSetAccelPathMethodInfo
ResolveMenuMethod "setActive" o = MenuSetActiveMethodInfo
ResolveMenuMethod "setAllocation" o = Gtk.Widget.WidgetSetAllocationMethodInfo
ResolveMenuMethod "setAppPaintable" o = Gtk.Widget.WidgetSetAppPaintableMethodInfo
ResolveMenuMethod "setBorderWidth" o = Gtk.Container.ContainerSetBorderWidthMethodInfo
ResolveMenuMethod "setBuildableProperty" o = Gtk.Buildable.BuildableSetBuildablePropertyMethodInfo
ResolveMenuMethod "setCanDefault" o = Gtk.Widget.WidgetSetCanDefaultMethodInfo
ResolveMenuMethod "setCanFocus" o = Gtk.Widget.WidgetSetCanFocusMethodInfo
ResolveMenuMethod "setChildVisible" o = Gtk.Widget.WidgetSetChildVisibleMethodInfo
ResolveMenuMethod "setClip" o = Gtk.Widget.WidgetSetClipMethodInfo
ResolveMenuMethod "setCompositeName" o = Gtk.Widget.WidgetSetCompositeNameMethodInfo
ResolveMenuMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolveMenuMethod "setDeviceEnabled" o = Gtk.Widget.WidgetSetDeviceEnabledMethodInfo
ResolveMenuMethod "setDeviceEvents" o = Gtk.Widget.WidgetSetDeviceEventsMethodInfo
ResolveMenuMethod "setDirection" o = Gtk.Widget.WidgetSetDirectionMethodInfo
ResolveMenuMethod "setDoubleBuffered" o = Gtk.Widget.WidgetSetDoubleBufferedMethodInfo
ResolveMenuMethod "setEvents" o = Gtk.Widget.WidgetSetEventsMethodInfo
ResolveMenuMethod "setFocusChain" o = Gtk.Container.ContainerSetFocusChainMethodInfo
ResolveMenuMethod "setFocusChild" o = Gtk.Container.ContainerSetFocusChildMethodInfo
ResolveMenuMethod "setFocusHadjustment" o = Gtk.Container.ContainerSetFocusHadjustmentMethodInfo
ResolveMenuMethod "setFocusOnClick" o = Gtk.Widget.WidgetSetFocusOnClickMethodInfo
ResolveMenuMethod "setFocusVadjustment" o = Gtk.Container.ContainerSetFocusVadjustmentMethodInfo
ResolveMenuMethod "setFontMap" o = Gtk.Widget.WidgetSetFontMapMethodInfo
ResolveMenuMethod "setFontOptions" o = Gtk.Widget.WidgetSetFontOptionsMethodInfo
ResolveMenuMethod "setHalign" o = Gtk.Widget.WidgetSetHalignMethodInfo
ResolveMenuMethod "setHasTooltip" o = Gtk.Widget.WidgetSetHasTooltipMethodInfo
ResolveMenuMethod "setHasWindow" o = Gtk.Widget.WidgetSetHasWindowMethodInfo
ResolveMenuMethod "setHexpand" o = Gtk.Widget.WidgetSetHexpandMethodInfo
ResolveMenuMethod "setHexpandSet" o = Gtk.Widget.WidgetSetHexpandSetMethodInfo
ResolveMenuMethod "setMapped" o = Gtk.Widget.WidgetSetMappedMethodInfo
ResolveMenuMethod "setMarginBottom" o = Gtk.Widget.WidgetSetMarginBottomMethodInfo
ResolveMenuMethod "setMarginEnd" o = Gtk.Widget.WidgetSetMarginEndMethodInfo
ResolveMenuMethod "setMarginLeft" o = Gtk.Widget.WidgetSetMarginLeftMethodInfo
ResolveMenuMethod "setMarginRight" o = Gtk.Widget.WidgetSetMarginRightMethodInfo
ResolveMenuMethod "setMarginStart" o = Gtk.Widget.WidgetSetMarginStartMethodInfo
ResolveMenuMethod "setMarginTop" o = Gtk.Widget.WidgetSetMarginTopMethodInfo
ResolveMenuMethod "setMonitor" o = MenuSetMonitorMethodInfo
ResolveMenuMethod "setName" o = Gtk.Widget.WidgetSetNameMethodInfo
ResolveMenuMethod "setNoShowAll" o = Gtk.Widget.WidgetSetNoShowAllMethodInfo
ResolveMenuMethod "setOpacity" o = Gtk.Widget.WidgetSetOpacityMethodInfo
ResolveMenuMethod "setParent" o = Gtk.Widget.WidgetSetParentMethodInfo
ResolveMenuMethod "setParentWindow" o = Gtk.Widget.WidgetSetParentWindowMethodInfo
ResolveMenuMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolveMenuMethod "setRealized" o = Gtk.Widget.WidgetSetRealizedMethodInfo
ResolveMenuMethod "setReallocateRedraws" o = Gtk.Container.ContainerSetReallocateRedrawsMethodInfo
ResolveMenuMethod "setReceivesDefault" o = Gtk.Widget.WidgetSetReceivesDefaultMethodInfo
ResolveMenuMethod "setRedrawOnAllocate" o = Gtk.Widget.WidgetSetRedrawOnAllocateMethodInfo
ResolveMenuMethod "setReserveToggleSize" o = MenuSetReserveToggleSizeMethodInfo
ResolveMenuMethod "setResizeMode" o = Gtk.Container.ContainerSetResizeModeMethodInfo
ResolveMenuMethod "setScreen" o = MenuSetScreenMethodInfo
ResolveMenuMethod "setSensitive" o = Gtk.Widget.WidgetSetSensitiveMethodInfo
ResolveMenuMethod "setSizeRequest" o = Gtk.Widget.WidgetSetSizeRequestMethodInfo
ResolveMenuMethod "setState" o = Gtk.Widget.WidgetSetStateMethodInfo
ResolveMenuMethod "setStateFlags" o = Gtk.Widget.WidgetSetStateFlagsMethodInfo
ResolveMenuMethod "setStyle" o = Gtk.Widget.WidgetSetStyleMethodInfo
ResolveMenuMethod "setSupportMultidevice" o = Gtk.Widget.WidgetSetSupportMultideviceMethodInfo
ResolveMenuMethod "setTakeFocus" o = Gtk.MenuShell.MenuShellSetTakeFocusMethodInfo
ResolveMenuMethod "setTearoffState" o = MenuSetTearoffStateMethodInfo
ResolveMenuMethod "setTitle" o = MenuSetTitleMethodInfo
ResolveMenuMethod "setTooltipMarkup" o = Gtk.Widget.WidgetSetTooltipMarkupMethodInfo
ResolveMenuMethod "setTooltipText" o = Gtk.Widget.WidgetSetTooltipTextMethodInfo
ResolveMenuMethod "setTooltipWindow" o = Gtk.Widget.WidgetSetTooltipWindowMethodInfo
ResolveMenuMethod "setValign" o = Gtk.Widget.WidgetSetValignMethodInfo
ResolveMenuMethod "setVexpand" o = Gtk.Widget.WidgetSetVexpandMethodInfo
ResolveMenuMethod "setVexpandSet" o = Gtk.Widget.WidgetSetVexpandSetMethodInfo
ResolveMenuMethod "setVisible" o = Gtk.Widget.WidgetSetVisibleMethodInfo
ResolveMenuMethod "setVisual" o = Gtk.Widget.WidgetSetVisualMethodInfo
ResolveMenuMethod "setWindow" o = Gtk.Widget.WidgetSetWindowMethodInfo
ResolveMenuMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveMenuMethod t Menu, O.MethodInfo info Menu p) => O.IsLabelProxy t (Menu -> p) where
fromLabelProxy _ = O.overloadedMethod (O.MethodProxy :: O.MethodProxy info)
#if MIN_VERSION_base(4,9,0)
instance (info ~ ResolveMenuMethod t Menu, O.MethodInfo info Menu p) => O.IsLabel t (Menu -> p) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.overloadedMethod (O.MethodProxy :: O.MethodProxy info)
#else
fromLabel _ = O.overloadedMethod (O.MethodProxy :: O.MethodProxy info)
#endif
#endif
#endif
type MenuMoveScrollCallback =
Gtk.Enums.ScrollType
-> IO ()
noMenuMoveScrollCallback :: Maybe MenuMoveScrollCallback
noMenuMoveScrollCallback = Nothing
type C_MenuMoveScrollCallback =
Ptr () ->
CUInt ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_MenuMoveScrollCallback :: C_MenuMoveScrollCallback -> IO (FunPtr C_MenuMoveScrollCallback)
genClosure_MenuMoveScroll :: MenuMoveScrollCallback -> IO Closure
genClosure_MenuMoveScroll cb = do
let cb' = wrap_MenuMoveScrollCallback cb
mk_MenuMoveScrollCallback cb' >>= newCClosure
wrap_MenuMoveScrollCallback ::
MenuMoveScrollCallback ->
C_MenuMoveScrollCallback
wrap_MenuMoveScrollCallback _cb _ scrollType _ = do
let scrollType' = (toEnum . fromIntegral) scrollType
_cb scrollType'
onMenuMoveScroll :: (IsMenu a, MonadIO m) => a -> MenuMoveScrollCallback -> m SignalHandlerId
onMenuMoveScroll obj cb = liftIO $ do
let cb' = wrap_MenuMoveScrollCallback cb
cb'' <- mk_MenuMoveScrollCallback cb'
connectSignalFunPtr obj "move-scroll" cb'' SignalConnectBefore
afterMenuMoveScroll :: (IsMenu a, MonadIO m) => a -> MenuMoveScrollCallback -> m SignalHandlerId
afterMenuMoveScroll obj cb = liftIO $ do
let cb' = wrap_MenuMoveScrollCallback cb
cb'' <- mk_MenuMoveScrollCallback cb'
connectSignalFunPtr obj "move-scroll" cb'' SignalConnectAfter
type MenuPoppedUpCallback =
Ptr ()
-> Ptr ()
-> Bool
-> Bool
-> IO ()
noMenuPoppedUpCallback :: Maybe MenuPoppedUpCallback
noMenuPoppedUpCallback = Nothing
type C_MenuPoppedUpCallback =
Ptr () ->
Ptr () ->
Ptr () ->
CInt ->
CInt ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_MenuPoppedUpCallback :: C_MenuPoppedUpCallback -> IO (FunPtr C_MenuPoppedUpCallback)
genClosure_MenuPoppedUp :: MenuPoppedUpCallback -> IO Closure
genClosure_MenuPoppedUp cb = do
let cb' = wrap_MenuPoppedUpCallback cb
mk_MenuPoppedUpCallback cb' >>= newCClosure
wrap_MenuPoppedUpCallback ::
MenuPoppedUpCallback ->
C_MenuPoppedUpCallback
wrap_MenuPoppedUpCallback _cb _ flippedRect finalRect flippedX flippedY _ = do
let flippedX' = (/= 0) flippedX
let flippedY' = (/= 0) flippedY
_cb flippedRect finalRect flippedX' flippedY'
onMenuPoppedUp :: (IsMenu a, MonadIO m) => a -> MenuPoppedUpCallback -> m SignalHandlerId
onMenuPoppedUp obj cb = liftIO $ do
let cb' = wrap_MenuPoppedUpCallback cb
cb'' <- mk_MenuPoppedUpCallback cb'
connectSignalFunPtr obj "popped-up" cb'' SignalConnectBefore
afterMenuPoppedUp :: (IsMenu a, MonadIO m) => a -> MenuPoppedUpCallback -> m SignalHandlerId
afterMenuPoppedUp obj cb = liftIO $ do
let cb' = wrap_MenuPoppedUpCallback cb
cb'' <- mk_MenuPoppedUpCallback cb'
connectSignalFunPtr obj "popped-up" cb'' SignalConnectAfter
getMenuAccelGroup :: (MonadIO m, IsMenu o) => o -> m Gtk.AccelGroup.AccelGroup
getMenuAccelGroup obj = liftIO $ checkUnexpectedNothing "getMenuAccelGroup" $ getObjectPropertyObject obj "accel-group" Gtk.AccelGroup.AccelGroup
setMenuAccelGroup :: (MonadIO m, IsMenu o, Gtk.AccelGroup.IsAccelGroup a) => o -> a -> m ()
setMenuAccelGroup obj val = liftIO $ setObjectPropertyObject obj "accel-group" (Just val)
constructMenuAccelGroup :: (IsMenu o, Gtk.AccelGroup.IsAccelGroup a) => a -> IO (GValueConstruct o)
constructMenuAccelGroup val = constructObjectPropertyObject "accel-group" (Just val)
clearMenuAccelGroup :: (MonadIO m, IsMenu o) => o -> m ()
clearMenuAccelGroup obj = liftIO $ setObjectPropertyObject obj "accel-group" (Nothing :: Maybe Gtk.AccelGroup.AccelGroup)
#if ENABLE_OVERLOADING
data MenuAccelGroupPropertyInfo
instance AttrInfo MenuAccelGroupPropertyInfo where
type AttrAllowedOps MenuAccelGroupPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrSetTypeConstraint MenuAccelGroupPropertyInfo = Gtk.AccelGroup.IsAccelGroup
type AttrBaseTypeConstraint MenuAccelGroupPropertyInfo = IsMenu
type AttrGetType MenuAccelGroupPropertyInfo = Gtk.AccelGroup.AccelGroup
type AttrLabel MenuAccelGroupPropertyInfo = "accel-group"
type AttrOrigin MenuAccelGroupPropertyInfo = Menu
attrGet _ = getMenuAccelGroup
attrSet _ = setMenuAccelGroup
attrConstruct _ = constructMenuAccelGroup
attrClear _ = clearMenuAccelGroup
#endif
getMenuAccelPath :: (MonadIO m, IsMenu o) => o -> m T.Text
getMenuAccelPath obj = liftIO $ checkUnexpectedNothing "getMenuAccelPath" $ getObjectPropertyString obj "accel-path"
setMenuAccelPath :: (MonadIO m, IsMenu o) => o -> T.Text -> m ()
setMenuAccelPath obj val = liftIO $ setObjectPropertyString obj "accel-path" (Just val)
constructMenuAccelPath :: (IsMenu o) => T.Text -> IO (GValueConstruct o)
constructMenuAccelPath val = constructObjectPropertyString "accel-path" (Just val)
clearMenuAccelPath :: (MonadIO m, IsMenu o) => o -> m ()
clearMenuAccelPath obj = liftIO $ setObjectPropertyString obj "accel-path" (Nothing :: Maybe T.Text)
#if ENABLE_OVERLOADING
data MenuAccelPathPropertyInfo
instance AttrInfo MenuAccelPathPropertyInfo where
type AttrAllowedOps MenuAccelPathPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrSetTypeConstraint MenuAccelPathPropertyInfo = (~) T.Text
type AttrBaseTypeConstraint MenuAccelPathPropertyInfo = IsMenu
type AttrGetType MenuAccelPathPropertyInfo = T.Text
type AttrLabel MenuAccelPathPropertyInfo = "accel-path"
type AttrOrigin MenuAccelPathPropertyInfo = Menu
attrGet _ = getMenuAccelPath
attrSet _ = setMenuAccelPath
attrConstruct _ = constructMenuAccelPath
attrClear _ = clearMenuAccelPath
#endif
getMenuActive :: (MonadIO m, IsMenu o) => o -> m Int32
getMenuActive obj = liftIO $ getObjectPropertyInt32 obj "active"
setMenuActive :: (MonadIO m, IsMenu o) => o -> Int32 -> m ()
setMenuActive obj val = liftIO $ setObjectPropertyInt32 obj "active" val
constructMenuActive :: (IsMenu o) => Int32 -> IO (GValueConstruct o)
constructMenuActive val = constructObjectPropertyInt32 "active" val
#if ENABLE_OVERLOADING
data MenuActivePropertyInfo
instance AttrInfo MenuActivePropertyInfo where
type AttrAllowedOps MenuActivePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint MenuActivePropertyInfo = (~) Int32
type AttrBaseTypeConstraint MenuActivePropertyInfo = IsMenu
type AttrGetType MenuActivePropertyInfo = Int32
type AttrLabel MenuActivePropertyInfo = "active"
type AttrOrigin MenuActivePropertyInfo = Menu
attrGet _ = getMenuActive
attrSet _ = setMenuActive
attrConstruct _ = constructMenuActive
attrClear _ = undefined
#endif
getMenuAnchorHints :: (MonadIO m, IsMenu o) => o -> m [Gdk.Flags.AnchorHints]
getMenuAnchorHints obj = liftIO $ getObjectPropertyFlags obj "anchor-hints"
setMenuAnchorHints :: (MonadIO m, IsMenu o) => o -> [Gdk.Flags.AnchorHints] -> m ()
setMenuAnchorHints obj val = liftIO $ setObjectPropertyFlags obj "anchor-hints" val
constructMenuAnchorHints :: (IsMenu o) => [Gdk.Flags.AnchorHints] -> IO (GValueConstruct o)
constructMenuAnchorHints val = constructObjectPropertyFlags "anchor-hints" val
#if ENABLE_OVERLOADING
data MenuAnchorHintsPropertyInfo
instance AttrInfo MenuAnchorHintsPropertyInfo where
type AttrAllowedOps MenuAnchorHintsPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint MenuAnchorHintsPropertyInfo = (~) [Gdk.Flags.AnchorHints]
type AttrBaseTypeConstraint MenuAnchorHintsPropertyInfo = IsMenu
type AttrGetType MenuAnchorHintsPropertyInfo = [Gdk.Flags.AnchorHints]
type AttrLabel MenuAnchorHintsPropertyInfo = "anchor-hints"
type AttrOrigin MenuAnchorHintsPropertyInfo = Menu
attrGet _ = getMenuAnchorHints
attrSet _ = setMenuAnchorHints
attrConstruct _ = constructMenuAnchorHints
attrClear _ = undefined
#endif
getMenuAttachWidget :: (MonadIO m, IsMenu o) => o -> m Gtk.Widget.Widget
getMenuAttachWidget obj = liftIO $ checkUnexpectedNothing "getMenuAttachWidget" $ getObjectPropertyObject obj "attach-widget" Gtk.Widget.Widget
setMenuAttachWidget :: (MonadIO m, IsMenu o, Gtk.Widget.IsWidget a) => o -> a -> m ()
setMenuAttachWidget obj val = liftIO $ setObjectPropertyObject obj "attach-widget" (Just val)
constructMenuAttachWidget :: (IsMenu o, Gtk.Widget.IsWidget a) => a -> IO (GValueConstruct o)
constructMenuAttachWidget val = constructObjectPropertyObject "attach-widget" (Just val)
clearMenuAttachWidget :: (MonadIO m, IsMenu o) => o -> m ()
clearMenuAttachWidget obj = liftIO $ setObjectPropertyObject obj "attach-widget" (Nothing :: Maybe Gtk.Widget.Widget)
#if ENABLE_OVERLOADING
data MenuAttachWidgetPropertyInfo
instance AttrInfo MenuAttachWidgetPropertyInfo where
type AttrAllowedOps MenuAttachWidgetPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrSetTypeConstraint MenuAttachWidgetPropertyInfo = Gtk.Widget.IsWidget
type AttrBaseTypeConstraint MenuAttachWidgetPropertyInfo = IsMenu
type AttrGetType MenuAttachWidgetPropertyInfo = Gtk.Widget.Widget
type AttrLabel MenuAttachWidgetPropertyInfo = "attach-widget"
type AttrOrigin MenuAttachWidgetPropertyInfo = Menu
attrGet _ = getMenuAttachWidget
attrSet _ = setMenuAttachWidget
attrConstruct _ = constructMenuAttachWidget
attrClear _ = clearMenuAttachWidget
#endif
getMenuMenuTypeHint :: (MonadIO m, IsMenu o) => o -> m Gdk.Enums.WindowTypeHint
getMenuMenuTypeHint obj = liftIO $ getObjectPropertyEnum obj "menu-type-hint"
setMenuMenuTypeHint :: (MonadIO m, IsMenu o) => o -> Gdk.Enums.WindowTypeHint -> m ()
setMenuMenuTypeHint obj val = liftIO $ setObjectPropertyEnum obj "menu-type-hint" val
constructMenuMenuTypeHint :: (IsMenu o) => Gdk.Enums.WindowTypeHint -> IO (GValueConstruct o)
constructMenuMenuTypeHint val = constructObjectPropertyEnum "menu-type-hint" val
#if ENABLE_OVERLOADING
data MenuMenuTypeHintPropertyInfo
instance AttrInfo MenuMenuTypeHintPropertyInfo where
type AttrAllowedOps MenuMenuTypeHintPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint MenuMenuTypeHintPropertyInfo = (~) Gdk.Enums.WindowTypeHint
type AttrBaseTypeConstraint MenuMenuTypeHintPropertyInfo = IsMenu
type AttrGetType MenuMenuTypeHintPropertyInfo = Gdk.Enums.WindowTypeHint
type AttrLabel MenuMenuTypeHintPropertyInfo = "menu-type-hint"
type AttrOrigin MenuMenuTypeHintPropertyInfo = Menu
attrGet _ = getMenuMenuTypeHint
attrSet _ = setMenuMenuTypeHint
attrConstruct _ = constructMenuMenuTypeHint
attrClear _ = undefined
#endif
getMenuMonitor :: (MonadIO m, IsMenu o) => o -> m Int32
getMenuMonitor obj = liftIO $ getObjectPropertyInt32 obj "monitor"
setMenuMonitor :: (MonadIO m, IsMenu o) => o -> Int32 -> m ()
setMenuMonitor obj val = liftIO $ setObjectPropertyInt32 obj "monitor" val
constructMenuMonitor :: (IsMenu o) => Int32 -> IO (GValueConstruct o)
constructMenuMonitor val = constructObjectPropertyInt32 "monitor" val
#if ENABLE_OVERLOADING
data MenuMonitorPropertyInfo
instance AttrInfo MenuMonitorPropertyInfo where
type AttrAllowedOps MenuMonitorPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint MenuMonitorPropertyInfo = (~) Int32
type AttrBaseTypeConstraint MenuMonitorPropertyInfo = IsMenu
type AttrGetType MenuMonitorPropertyInfo = Int32
type AttrLabel MenuMonitorPropertyInfo = "monitor"
type AttrOrigin MenuMonitorPropertyInfo = Menu
attrGet _ = getMenuMonitor
attrSet _ = setMenuMonitor
attrConstruct _ = constructMenuMonitor
attrClear _ = undefined
#endif
getMenuRectAnchorDx :: (MonadIO m, IsMenu o) => o -> m Int32
getMenuRectAnchorDx obj = liftIO $ getObjectPropertyInt32 obj "rect-anchor-dx"
setMenuRectAnchorDx :: (MonadIO m, IsMenu o) => o -> Int32 -> m ()
setMenuRectAnchorDx obj val = liftIO $ setObjectPropertyInt32 obj "rect-anchor-dx" val
constructMenuRectAnchorDx :: (IsMenu o) => Int32 -> IO (GValueConstruct o)
constructMenuRectAnchorDx val = constructObjectPropertyInt32 "rect-anchor-dx" val
#if ENABLE_OVERLOADING
data MenuRectAnchorDxPropertyInfo
instance AttrInfo MenuRectAnchorDxPropertyInfo where
type AttrAllowedOps MenuRectAnchorDxPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint MenuRectAnchorDxPropertyInfo = (~) Int32
type AttrBaseTypeConstraint MenuRectAnchorDxPropertyInfo = IsMenu
type AttrGetType MenuRectAnchorDxPropertyInfo = Int32
type AttrLabel MenuRectAnchorDxPropertyInfo = "rect-anchor-dx"
type AttrOrigin MenuRectAnchorDxPropertyInfo = Menu
attrGet _ = getMenuRectAnchorDx
attrSet _ = setMenuRectAnchorDx
attrConstruct _ = constructMenuRectAnchorDx
attrClear _ = undefined
#endif
getMenuRectAnchorDy :: (MonadIO m, IsMenu o) => o -> m Int32
getMenuRectAnchorDy obj = liftIO $ getObjectPropertyInt32 obj "rect-anchor-dy"
setMenuRectAnchorDy :: (MonadIO m, IsMenu o) => o -> Int32 -> m ()
setMenuRectAnchorDy obj val = liftIO $ setObjectPropertyInt32 obj "rect-anchor-dy" val
constructMenuRectAnchorDy :: (IsMenu o) => Int32 -> IO (GValueConstruct o)
constructMenuRectAnchorDy val = constructObjectPropertyInt32 "rect-anchor-dy" val
#if ENABLE_OVERLOADING
data MenuRectAnchorDyPropertyInfo
instance AttrInfo MenuRectAnchorDyPropertyInfo where
type AttrAllowedOps MenuRectAnchorDyPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint MenuRectAnchorDyPropertyInfo = (~) Int32
type AttrBaseTypeConstraint MenuRectAnchorDyPropertyInfo = IsMenu
type AttrGetType MenuRectAnchorDyPropertyInfo = Int32
type AttrLabel MenuRectAnchorDyPropertyInfo = "rect-anchor-dy"
type AttrOrigin MenuRectAnchorDyPropertyInfo = Menu
attrGet _ = getMenuRectAnchorDy
attrSet _ = setMenuRectAnchorDy
attrConstruct _ = constructMenuRectAnchorDy
attrClear _ = undefined
#endif
getMenuReserveToggleSize :: (MonadIO m, IsMenu o) => o -> m Bool
getMenuReserveToggleSize obj = liftIO $ getObjectPropertyBool obj "reserve-toggle-size"
setMenuReserveToggleSize :: (MonadIO m, IsMenu o) => o -> Bool -> m ()
setMenuReserveToggleSize obj val = liftIO $ setObjectPropertyBool obj "reserve-toggle-size" val
constructMenuReserveToggleSize :: (IsMenu o) => Bool -> IO (GValueConstruct o)
constructMenuReserveToggleSize val = constructObjectPropertyBool "reserve-toggle-size" val
#if ENABLE_OVERLOADING
data MenuReserveToggleSizePropertyInfo
instance AttrInfo MenuReserveToggleSizePropertyInfo where
type AttrAllowedOps MenuReserveToggleSizePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint MenuReserveToggleSizePropertyInfo = (~) Bool
type AttrBaseTypeConstraint MenuReserveToggleSizePropertyInfo = IsMenu
type AttrGetType MenuReserveToggleSizePropertyInfo = Bool
type AttrLabel MenuReserveToggleSizePropertyInfo = "reserve-toggle-size"
type AttrOrigin MenuReserveToggleSizePropertyInfo = Menu
attrGet _ = getMenuReserveToggleSize
attrSet _ = setMenuReserveToggleSize
attrConstruct _ = constructMenuReserveToggleSize
attrClear _ = undefined
#endif
getMenuTearoffState :: (MonadIO m, IsMenu o) => o -> m Bool
getMenuTearoffState obj = liftIO $ getObjectPropertyBool obj "tearoff-state"
setMenuTearoffState :: (MonadIO m, IsMenu o) => o -> Bool -> m ()
setMenuTearoffState obj val = liftIO $ setObjectPropertyBool obj "tearoff-state" val
constructMenuTearoffState :: (IsMenu o) => Bool -> IO (GValueConstruct o)
constructMenuTearoffState val = constructObjectPropertyBool "tearoff-state" val
#if ENABLE_OVERLOADING
data MenuTearoffStatePropertyInfo
instance AttrInfo MenuTearoffStatePropertyInfo where
type AttrAllowedOps MenuTearoffStatePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint MenuTearoffStatePropertyInfo = (~) Bool
type AttrBaseTypeConstraint MenuTearoffStatePropertyInfo = IsMenu
type AttrGetType MenuTearoffStatePropertyInfo = Bool
type AttrLabel MenuTearoffStatePropertyInfo = "tearoff-state"
type AttrOrigin MenuTearoffStatePropertyInfo = Menu
attrGet _ = getMenuTearoffState
attrSet _ = setMenuTearoffState
attrConstruct _ = constructMenuTearoffState
attrClear _ = undefined
#endif
getMenuTearoffTitle :: (MonadIO m, IsMenu o) => o -> m (Maybe T.Text)
getMenuTearoffTitle obj = liftIO $ getObjectPropertyString obj "tearoff-title"
setMenuTearoffTitle :: (MonadIO m, IsMenu o) => o -> T.Text -> m ()
setMenuTearoffTitle obj val = liftIO $ setObjectPropertyString obj "tearoff-title" (Just val)
constructMenuTearoffTitle :: (IsMenu o) => T.Text -> IO (GValueConstruct o)
constructMenuTearoffTitle val = constructObjectPropertyString "tearoff-title" (Just val)
clearMenuTearoffTitle :: (MonadIO m, IsMenu o) => o -> m ()
clearMenuTearoffTitle obj = liftIO $ setObjectPropertyString obj "tearoff-title" (Nothing :: Maybe T.Text)
#if ENABLE_OVERLOADING
data MenuTearoffTitlePropertyInfo
instance AttrInfo MenuTearoffTitlePropertyInfo where
type AttrAllowedOps MenuTearoffTitlePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrSetTypeConstraint MenuTearoffTitlePropertyInfo = (~) T.Text
type AttrBaseTypeConstraint MenuTearoffTitlePropertyInfo = IsMenu
type AttrGetType MenuTearoffTitlePropertyInfo = (Maybe T.Text)
type AttrLabel MenuTearoffTitlePropertyInfo = "tearoff-title"
type AttrOrigin MenuTearoffTitlePropertyInfo = Menu
attrGet _ = getMenuTearoffTitle
attrSet _ = setMenuTearoffTitle
attrConstruct _ = constructMenuTearoffTitle
attrClear _ = clearMenuTearoffTitle
#endif
#if ENABLE_OVERLOADING
instance O.HasAttributeList Menu
type instance O.AttributeList Menu = MenuAttributeList
type MenuAttributeList = ('[ '("accelGroup", MenuAccelGroupPropertyInfo), '("accelPath", MenuAccelPathPropertyInfo), '("active", MenuActivePropertyInfo), '("anchorHints", MenuAnchorHintsPropertyInfo), '("appPaintable", Gtk.Widget.WidgetAppPaintablePropertyInfo), '("attachWidget", MenuAttachWidgetPropertyInfo), '("borderWidth", Gtk.Container.ContainerBorderWidthPropertyInfo), '("canDefault", Gtk.Widget.WidgetCanDefaultPropertyInfo), '("canFocus", Gtk.Widget.WidgetCanFocusPropertyInfo), '("child", Gtk.Container.ContainerChildPropertyInfo), '("compositeChild", Gtk.Widget.WidgetCompositeChildPropertyInfo), '("doubleBuffered", Gtk.Widget.WidgetDoubleBufferedPropertyInfo), '("events", Gtk.Widget.WidgetEventsPropertyInfo), '("expand", Gtk.Widget.WidgetExpandPropertyInfo), '("focusOnClick", Gtk.Widget.WidgetFocusOnClickPropertyInfo), '("halign", Gtk.Widget.WidgetHalignPropertyInfo), '("hasDefault", Gtk.Widget.WidgetHasDefaultPropertyInfo), '("hasFocus", Gtk.Widget.WidgetHasFocusPropertyInfo), '("hasTooltip", Gtk.Widget.WidgetHasTooltipPropertyInfo), '("heightRequest", Gtk.Widget.WidgetHeightRequestPropertyInfo), '("hexpand", Gtk.Widget.WidgetHexpandPropertyInfo), '("hexpandSet", Gtk.Widget.WidgetHexpandSetPropertyInfo), '("isFocus", Gtk.Widget.WidgetIsFocusPropertyInfo), '("margin", Gtk.Widget.WidgetMarginPropertyInfo), '("marginBottom", Gtk.Widget.WidgetMarginBottomPropertyInfo), '("marginEnd", Gtk.Widget.WidgetMarginEndPropertyInfo), '("marginLeft", Gtk.Widget.WidgetMarginLeftPropertyInfo), '("marginRight", Gtk.Widget.WidgetMarginRightPropertyInfo), '("marginStart", Gtk.Widget.WidgetMarginStartPropertyInfo), '("marginTop", Gtk.Widget.WidgetMarginTopPropertyInfo), '("menuTypeHint", MenuMenuTypeHintPropertyInfo), '("monitor", MenuMonitorPropertyInfo), '("name", Gtk.Widget.WidgetNamePropertyInfo), '("noShowAll", Gtk.Widget.WidgetNoShowAllPropertyInfo), '("opacity", Gtk.Widget.WidgetOpacityPropertyInfo), '("parent", Gtk.Widget.WidgetParentPropertyInfo), '("receivesDefault", Gtk.Widget.WidgetReceivesDefaultPropertyInfo), '("rectAnchorDx", MenuRectAnchorDxPropertyInfo), '("rectAnchorDy", MenuRectAnchorDyPropertyInfo), '("reserveToggleSize", MenuReserveToggleSizePropertyInfo), '("resizeMode", Gtk.Container.ContainerResizeModePropertyInfo), '("scaleFactor", Gtk.Widget.WidgetScaleFactorPropertyInfo), '("sensitive", Gtk.Widget.WidgetSensitivePropertyInfo), '("style", Gtk.Widget.WidgetStylePropertyInfo), '("takeFocus", Gtk.MenuShell.MenuShellTakeFocusPropertyInfo), '("tearoffState", MenuTearoffStatePropertyInfo), '("tearoffTitle", MenuTearoffTitlePropertyInfo), '("tooltipMarkup", Gtk.Widget.WidgetTooltipMarkupPropertyInfo), '("tooltipText", Gtk.Widget.WidgetTooltipTextPropertyInfo), '("valign", Gtk.Widget.WidgetValignPropertyInfo), '("vexpand", Gtk.Widget.WidgetVexpandPropertyInfo), '("vexpandSet", Gtk.Widget.WidgetVexpandSetPropertyInfo), '("visible", Gtk.Widget.WidgetVisiblePropertyInfo), '("widthRequest", Gtk.Widget.WidgetWidthRequestPropertyInfo), '("window", Gtk.Widget.WidgetWindowPropertyInfo)] :: [(Symbol, *)])
#endif
#if ENABLE_OVERLOADING
menuAccelGroup :: AttrLabelProxy "accelGroup"
menuAccelGroup = AttrLabelProxy
menuAccelPath :: AttrLabelProxy "accelPath"
menuAccelPath = AttrLabelProxy
menuActive :: AttrLabelProxy "active"
menuActive = AttrLabelProxy
menuAnchorHints :: AttrLabelProxy "anchorHints"
menuAnchorHints = AttrLabelProxy
menuAttachWidget :: AttrLabelProxy "attachWidget"
menuAttachWidget = AttrLabelProxy
menuMenuTypeHint :: AttrLabelProxy "menuTypeHint"
menuMenuTypeHint = AttrLabelProxy
menuMonitor :: AttrLabelProxy "monitor"
menuMonitor = AttrLabelProxy
menuRectAnchorDx :: AttrLabelProxy "rectAnchorDx"
menuRectAnchorDx = AttrLabelProxy
menuRectAnchorDy :: AttrLabelProxy "rectAnchorDy"
menuRectAnchorDy = AttrLabelProxy
menuReserveToggleSize :: AttrLabelProxy "reserveToggleSize"
menuReserveToggleSize = AttrLabelProxy
menuTearoffState :: AttrLabelProxy "tearoffState"
menuTearoffState = AttrLabelProxy
menuTearoffTitle :: AttrLabelProxy "tearoffTitle"
menuTearoffTitle = AttrLabelProxy
#endif
#if ENABLE_OVERLOADING
data MenuMoveScrollSignalInfo
instance SignalInfo MenuMoveScrollSignalInfo where
type HaskellCallbackType MenuMoveScrollSignalInfo = MenuMoveScrollCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_MenuMoveScrollCallback cb
cb'' <- mk_MenuMoveScrollCallback cb'
connectSignalFunPtr obj "move-scroll" cb'' connectMode
data MenuPoppedUpSignalInfo
instance SignalInfo MenuPoppedUpSignalInfo where
type HaskellCallbackType MenuPoppedUpSignalInfo = MenuPoppedUpCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_MenuPoppedUpCallback cb
cb'' <- mk_MenuPoppedUpCallback cb'
connectSignalFunPtr obj "popped-up" cb'' connectMode
type instance O.SignalList Menu = MenuSignalList
type MenuSignalList = ('[ '("accelClosuresChanged", Gtk.Widget.WidgetAccelClosuresChangedSignalInfo), '("activateCurrent", Gtk.MenuShell.MenuShellActivateCurrentSignalInfo), '("add", Gtk.Container.ContainerAddSignalInfo), '("buttonPressEvent", Gtk.Widget.WidgetButtonPressEventSignalInfo), '("buttonReleaseEvent", Gtk.Widget.WidgetButtonReleaseEventSignalInfo), '("canActivateAccel", Gtk.Widget.WidgetCanActivateAccelSignalInfo), '("cancel", Gtk.MenuShell.MenuShellCancelSignalInfo), '("checkResize", Gtk.Container.ContainerCheckResizeSignalInfo), '("childNotify", Gtk.Widget.WidgetChildNotifySignalInfo), '("compositedChanged", Gtk.Widget.WidgetCompositedChangedSignalInfo), '("configureEvent", Gtk.Widget.WidgetConfigureEventSignalInfo), '("cycleFocus", Gtk.MenuShell.MenuShellCycleFocusSignalInfo), '("damageEvent", Gtk.Widget.WidgetDamageEventSignalInfo), '("deactivate", Gtk.MenuShell.MenuShellDeactivateSignalInfo), '("deleteEvent", Gtk.Widget.WidgetDeleteEventSignalInfo), '("destroy", Gtk.Widget.WidgetDestroySignalInfo), '("destroyEvent", Gtk.Widget.WidgetDestroyEventSignalInfo), '("directionChanged", Gtk.Widget.WidgetDirectionChangedSignalInfo), '("dragBegin", Gtk.Widget.WidgetDragBeginSignalInfo), '("dragDataDelete", Gtk.Widget.WidgetDragDataDeleteSignalInfo), '("dragDataGet", Gtk.Widget.WidgetDragDataGetSignalInfo), '("dragDataReceived", Gtk.Widget.WidgetDragDataReceivedSignalInfo), '("dragDrop", Gtk.Widget.WidgetDragDropSignalInfo), '("dragEnd", Gtk.Widget.WidgetDragEndSignalInfo), '("dragFailed", Gtk.Widget.WidgetDragFailedSignalInfo), '("dragLeave", Gtk.Widget.WidgetDragLeaveSignalInfo), '("dragMotion", Gtk.Widget.WidgetDragMotionSignalInfo), '("draw", Gtk.Widget.WidgetDrawSignalInfo), '("enterNotifyEvent", Gtk.Widget.WidgetEnterNotifyEventSignalInfo), '("event", Gtk.Widget.WidgetEventSignalInfo), '("eventAfter", Gtk.Widget.WidgetEventAfterSignalInfo), '("focus", Gtk.Widget.WidgetFocusSignalInfo), '("focusInEvent", Gtk.Widget.WidgetFocusInEventSignalInfo), '("focusOutEvent", Gtk.Widget.WidgetFocusOutEventSignalInfo), '("grabBrokenEvent", Gtk.Widget.WidgetGrabBrokenEventSignalInfo), '("grabFocus", Gtk.Widget.WidgetGrabFocusSignalInfo), '("grabNotify", Gtk.Widget.WidgetGrabNotifySignalInfo), '("hide", Gtk.Widget.WidgetHideSignalInfo), '("hierarchyChanged", Gtk.Widget.WidgetHierarchyChangedSignalInfo), '("insert", Gtk.MenuShell.MenuShellInsertSignalInfo), '("keyPressEvent", Gtk.Widget.WidgetKeyPressEventSignalInfo), '("keyReleaseEvent", Gtk.Widget.WidgetKeyReleaseEventSignalInfo), '("keynavFailed", Gtk.Widget.WidgetKeynavFailedSignalInfo), '("leaveNotifyEvent", Gtk.Widget.WidgetLeaveNotifyEventSignalInfo), '("map", Gtk.Widget.WidgetMapSignalInfo), '("mapEvent", Gtk.Widget.WidgetMapEventSignalInfo), '("mnemonicActivate", Gtk.Widget.WidgetMnemonicActivateSignalInfo), '("motionNotifyEvent", Gtk.Widget.WidgetMotionNotifyEventSignalInfo), '("moveCurrent", Gtk.MenuShell.MenuShellMoveCurrentSignalInfo), '("moveFocus", Gtk.Widget.WidgetMoveFocusSignalInfo), '("moveScroll", MenuMoveScrollSignalInfo), '("moveSelected", Gtk.MenuShell.MenuShellMoveSelectedSignalInfo), '("notify", GObject.Object.ObjectNotifySignalInfo), '("parentSet", Gtk.Widget.WidgetParentSetSignalInfo), '("poppedUp", MenuPoppedUpSignalInfo), '("popupMenu", Gtk.Widget.WidgetPopupMenuSignalInfo), '("propertyNotifyEvent", Gtk.Widget.WidgetPropertyNotifyEventSignalInfo), '("proximityInEvent", Gtk.Widget.WidgetProximityInEventSignalInfo), '("proximityOutEvent", Gtk.Widget.WidgetProximityOutEventSignalInfo), '("queryTooltip", Gtk.Widget.WidgetQueryTooltipSignalInfo), '("realize", Gtk.Widget.WidgetRealizeSignalInfo), '("remove", Gtk.Container.ContainerRemoveSignalInfo), '("screenChanged", Gtk.Widget.WidgetScreenChangedSignalInfo), '("scrollEvent", Gtk.Widget.WidgetScrollEventSignalInfo), '("selectionClearEvent", Gtk.Widget.WidgetSelectionClearEventSignalInfo), '("selectionDone", Gtk.MenuShell.MenuShellSelectionDoneSignalInfo), '("selectionGet", Gtk.Widget.WidgetSelectionGetSignalInfo), '("selectionNotifyEvent", Gtk.Widget.WidgetSelectionNotifyEventSignalInfo), '("selectionReceived", Gtk.Widget.WidgetSelectionReceivedSignalInfo), '("selectionRequestEvent", Gtk.Widget.WidgetSelectionRequestEventSignalInfo), '("setFocusChild", Gtk.Container.ContainerSetFocusChildSignalInfo), '("show", Gtk.Widget.WidgetShowSignalInfo), '("showHelp", Gtk.Widget.WidgetShowHelpSignalInfo), '("sizeAllocate", Gtk.Widget.WidgetSizeAllocateSignalInfo), '("stateChanged", Gtk.Widget.WidgetStateChangedSignalInfo), '("stateFlagsChanged", Gtk.Widget.WidgetStateFlagsChangedSignalInfo), '("styleSet", Gtk.Widget.WidgetStyleSetSignalInfo), '("styleUpdated", Gtk.Widget.WidgetStyleUpdatedSignalInfo), '("touchEvent", Gtk.Widget.WidgetTouchEventSignalInfo), '("unmap", Gtk.Widget.WidgetUnmapSignalInfo), '("unmapEvent", Gtk.Widget.WidgetUnmapEventSignalInfo), '("unrealize", Gtk.Widget.WidgetUnrealizeSignalInfo), '("visibilityNotifyEvent", Gtk.Widget.WidgetVisibilityNotifyEventSignalInfo), '("windowStateEvent", Gtk.Widget.WidgetWindowStateEventSignalInfo)] :: [(Symbol, *)])
#endif
foreign import ccall "gtk_menu_new" gtk_menu_new ::
IO (Ptr Menu)
menuNew ::
(B.CallStack.HasCallStack, MonadIO m) =>
m Menu
menuNew = liftIO $ do
result <- gtk_menu_new
checkUnexpectedReturnNULL "menuNew" result
result' <- (newObject Menu) result
return result'
#if ENABLE_OVERLOADING
#endif
foreign import ccall "gtk_menu_new_from_model" gtk_menu_new_from_model ::
Ptr Gio.MenuModel.MenuModel ->
IO (Ptr Menu)
menuNewFromModel ::
(B.CallStack.HasCallStack, MonadIO m, Gio.MenuModel.IsMenuModel a) =>
a
-> m Menu
menuNewFromModel model = liftIO $ do
model' <- unsafeManagedPtrCastPtr model
result <- gtk_menu_new_from_model model'
checkUnexpectedReturnNULL "menuNewFromModel" result
result' <- (newObject Menu) result
touchManagedPtr model
return result'
#if ENABLE_OVERLOADING
#endif
foreign import ccall "gtk_menu_attach" gtk_menu_attach ::
Ptr Menu ->
Ptr Gtk.Widget.Widget ->
Word32 ->
Word32 ->
Word32 ->
Word32 ->
IO ()
menuAttach ::
(B.CallStack.HasCallStack, MonadIO m, IsMenu a, Gtk.Widget.IsWidget b) =>
a
-> b
-> Word32
-> Word32
-> Word32
-> Word32
-> m ()
menuAttach menu child leftAttach rightAttach topAttach bottomAttach = liftIO $ do
menu' <- unsafeManagedPtrCastPtr menu
child' <- unsafeManagedPtrCastPtr child
gtk_menu_attach menu' child' leftAttach rightAttach topAttach bottomAttach
touchManagedPtr menu
touchManagedPtr child
return ()
#if ENABLE_OVERLOADING
data MenuAttachMethodInfo
instance (signature ~ (b -> Word32 -> Word32 -> Word32 -> Word32 -> m ()), MonadIO m, IsMenu a, Gtk.Widget.IsWidget b) => O.MethodInfo MenuAttachMethodInfo a signature where
overloadedMethod _ = menuAttach
#endif
foreign import ccall "gtk_menu_attach_to_widget" gtk_menu_attach_to_widget ::
Ptr Menu ->
Ptr Gtk.Widget.Widget ->
FunPtr Gtk.Callbacks.C_MenuDetachFunc ->
IO ()
menuAttachToWidget ::
(B.CallStack.HasCallStack, MonadIO m, IsMenu a, Gtk.Widget.IsWidget b) =>
a
-> b
-> Maybe (Gtk.Callbacks.MenuDetachFunc)
-> m ()
menuAttachToWidget menu attachWidget detacher = liftIO $ do
menu' <- unsafeManagedPtrCastPtr menu
attachWidget' <- unsafeManagedPtrCastPtr attachWidget
maybeDetacher <- case detacher of
Nothing -> return (castPtrToFunPtr nullPtr)
Just jDetacher -> do
ptrdetacher <- callocMem :: IO (Ptr (FunPtr Gtk.Callbacks.C_MenuDetachFunc))
jDetacher' <- Gtk.Callbacks.mk_MenuDetachFunc (Gtk.Callbacks.wrap_MenuDetachFunc (Just ptrdetacher) jDetacher)
poke ptrdetacher jDetacher'
return jDetacher'
gtk_menu_attach_to_widget menu' attachWidget' maybeDetacher
touchManagedPtr menu
touchManagedPtr attachWidget
return ()
#if ENABLE_OVERLOADING
data MenuAttachToWidgetMethodInfo
instance (signature ~ (b -> Maybe (Gtk.Callbacks.MenuDetachFunc) -> m ()), MonadIO m, IsMenu a, Gtk.Widget.IsWidget b) => O.MethodInfo MenuAttachToWidgetMethodInfo a signature where
overloadedMethod _ = menuAttachToWidget
#endif
foreign import ccall "gtk_menu_detach" gtk_menu_detach ::
Ptr Menu ->
IO ()
menuDetach ::
(B.CallStack.HasCallStack, MonadIO m, IsMenu a) =>
a
-> m ()
menuDetach menu = liftIO $ do
menu' <- unsafeManagedPtrCastPtr menu
gtk_menu_detach menu'
touchManagedPtr menu
return ()
#if ENABLE_OVERLOADING
data MenuDetachMethodInfo
instance (signature ~ (m ()), MonadIO m, IsMenu a) => O.MethodInfo MenuDetachMethodInfo a signature where
overloadedMethod _ = menuDetach
#endif
foreign import ccall "gtk_menu_get_accel_group" gtk_menu_get_accel_group ::
Ptr Menu ->
IO (Ptr Gtk.AccelGroup.AccelGroup)
menuGetAccelGroup ::
(B.CallStack.HasCallStack, MonadIO m, IsMenu a) =>
a
-> m Gtk.AccelGroup.AccelGroup
menuGetAccelGroup menu = liftIO $ do
menu' <- unsafeManagedPtrCastPtr menu
result <- gtk_menu_get_accel_group menu'
checkUnexpectedReturnNULL "menuGetAccelGroup" result
result' <- (newObject Gtk.AccelGroup.AccelGroup) result
touchManagedPtr menu
return result'
#if ENABLE_OVERLOADING
data MenuGetAccelGroupMethodInfo
instance (signature ~ (m Gtk.AccelGroup.AccelGroup), MonadIO m, IsMenu a) => O.MethodInfo MenuGetAccelGroupMethodInfo a signature where
overloadedMethod _ = menuGetAccelGroup
#endif
foreign import ccall "gtk_menu_get_accel_path" gtk_menu_get_accel_path ::
Ptr Menu ->
IO CString
menuGetAccelPath ::
(B.CallStack.HasCallStack, MonadIO m, IsMenu a) =>
a
-> m T.Text
menuGetAccelPath menu = liftIO $ do
menu' <- unsafeManagedPtrCastPtr menu
result <- gtk_menu_get_accel_path menu'
checkUnexpectedReturnNULL "menuGetAccelPath" result
result' <- cstringToText result
touchManagedPtr menu
return result'
#if ENABLE_OVERLOADING
data MenuGetAccelPathMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsMenu a) => O.MethodInfo MenuGetAccelPathMethodInfo a signature where
overloadedMethod _ = menuGetAccelPath
#endif
foreign import ccall "gtk_menu_get_active" gtk_menu_get_active ::
Ptr Menu ->
IO (Ptr Gtk.Widget.Widget)
menuGetActive ::
(B.CallStack.HasCallStack, MonadIO m, IsMenu a) =>
a
-> m Gtk.Widget.Widget
menuGetActive menu = liftIO $ do
menu' <- unsafeManagedPtrCastPtr menu
result <- gtk_menu_get_active menu'
checkUnexpectedReturnNULL "menuGetActive" result
result' <- (newObject Gtk.Widget.Widget) result
touchManagedPtr menu
return result'
#if ENABLE_OVERLOADING
data MenuGetActiveMethodInfo
instance (signature ~ (m Gtk.Widget.Widget), MonadIO m, IsMenu a) => O.MethodInfo MenuGetActiveMethodInfo a signature where
overloadedMethod _ = menuGetActive
#endif
foreign import ccall "gtk_menu_get_attach_widget" gtk_menu_get_attach_widget ::
Ptr Menu ->
IO (Ptr Gtk.Widget.Widget)
menuGetAttachWidget ::
(B.CallStack.HasCallStack, MonadIO m, IsMenu a) =>
a
-> m Gtk.Widget.Widget
menuGetAttachWidget menu = liftIO $ do
menu' <- unsafeManagedPtrCastPtr menu
result <- gtk_menu_get_attach_widget menu'
checkUnexpectedReturnNULL "menuGetAttachWidget" result
result' <- (newObject Gtk.Widget.Widget) result
touchManagedPtr menu
return result'
#if ENABLE_OVERLOADING
data MenuGetAttachWidgetMethodInfo
instance (signature ~ (m Gtk.Widget.Widget), MonadIO m, IsMenu a) => O.MethodInfo MenuGetAttachWidgetMethodInfo a signature where
overloadedMethod _ = menuGetAttachWidget
#endif
foreign import ccall "gtk_menu_get_monitor" gtk_menu_get_monitor ::
Ptr Menu ->
IO Int32
menuGetMonitor ::
(B.CallStack.HasCallStack, MonadIO m, IsMenu a) =>
a
-> m Int32
menuGetMonitor menu = liftIO $ do
menu' <- unsafeManagedPtrCastPtr menu
result <- gtk_menu_get_monitor menu'
touchManagedPtr menu
return result
#if ENABLE_OVERLOADING
data MenuGetMonitorMethodInfo
instance (signature ~ (m Int32), MonadIO m, IsMenu a) => O.MethodInfo MenuGetMonitorMethodInfo a signature where
overloadedMethod _ = menuGetMonitor
#endif
foreign import ccall "gtk_menu_get_reserve_toggle_size" gtk_menu_get_reserve_toggle_size ::
Ptr Menu ->
IO CInt
menuGetReserveToggleSize ::
(B.CallStack.HasCallStack, MonadIO m, IsMenu a) =>
a
-> m Bool
menuGetReserveToggleSize menu = liftIO $ do
menu' <- unsafeManagedPtrCastPtr menu
result <- gtk_menu_get_reserve_toggle_size menu'
let result' = (/= 0) result
touchManagedPtr menu
return result'
#if ENABLE_OVERLOADING
data MenuGetReserveToggleSizeMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsMenu a) => O.MethodInfo MenuGetReserveToggleSizeMethodInfo a signature where
overloadedMethod _ = menuGetReserveToggleSize
#endif
foreign import ccall "gtk_menu_get_tearoff_state" gtk_menu_get_tearoff_state ::
Ptr Menu ->
IO CInt
{-# DEPRECATED menuGetTearoffState ["(Since version 3.10)"] #-}
menuGetTearoffState ::
(B.CallStack.HasCallStack, MonadIO m, IsMenu a) =>
a
-> m Bool
menuGetTearoffState menu = liftIO $ do
menu' <- unsafeManagedPtrCastPtr menu
result <- gtk_menu_get_tearoff_state menu'
let result' = (/= 0) result
touchManagedPtr menu
return result'
#if ENABLE_OVERLOADING
data MenuGetTearoffStateMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsMenu a) => O.MethodInfo MenuGetTearoffStateMethodInfo a signature where
overloadedMethod _ = menuGetTearoffState
#endif
foreign import ccall "gtk_menu_get_title" gtk_menu_get_title ::
Ptr Menu ->
IO CString
{-# DEPRECATED menuGetTitle ["(Since version 3.10)"] #-}
menuGetTitle ::
(B.CallStack.HasCallStack, MonadIO m, IsMenu a) =>
a
-> m T.Text
menuGetTitle menu = liftIO $ do
menu' <- unsafeManagedPtrCastPtr menu
result <- gtk_menu_get_title menu'
checkUnexpectedReturnNULL "menuGetTitle" result
result' <- cstringToText result
touchManagedPtr menu
return result'
#if ENABLE_OVERLOADING
data MenuGetTitleMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsMenu a) => O.MethodInfo MenuGetTitleMethodInfo a signature where
overloadedMethod _ = menuGetTitle
#endif
foreign import ccall "gtk_menu_place_on_monitor" gtk_menu_place_on_monitor ::
Ptr Menu ->
Ptr Gdk.Monitor.Monitor ->
IO ()
menuPlaceOnMonitor ::
(B.CallStack.HasCallStack, MonadIO m, IsMenu a, Gdk.Monitor.IsMonitor b) =>
a
-> b
-> m ()
menuPlaceOnMonitor menu monitor = liftIO $ do
menu' <- unsafeManagedPtrCastPtr menu
monitor' <- unsafeManagedPtrCastPtr monitor
gtk_menu_place_on_monitor menu' monitor'
touchManagedPtr menu
touchManagedPtr monitor
return ()
#if ENABLE_OVERLOADING
data MenuPlaceOnMonitorMethodInfo
instance (signature ~ (b -> m ()), MonadIO m, IsMenu a, Gdk.Monitor.IsMonitor b) => O.MethodInfo MenuPlaceOnMonitorMethodInfo a signature where
overloadedMethod _ = menuPlaceOnMonitor
#endif
foreign import ccall "gtk_menu_popdown" gtk_menu_popdown ::
Ptr Menu ->
IO ()
menuPopdown ::
(B.CallStack.HasCallStack, MonadIO m, IsMenu a) =>
a
-> m ()
menuPopdown menu = liftIO $ do
menu' <- unsafeManagedPtrCastPtr menu
gtk_menu_popdown menu'
touchManagedPtr menu
return ()
#if ENABLE_OVERLOADING
data MenuPopdownMethodInfo
instance (signature ~ (m ()), MonadIO m, IsMenu a) => O.MethodInfo MenuPopdownMethodInfo a signature where
overloadedMethod _ = menuPopdown
#endif
foreign import ccall "gtk_menu_popup" gtk_menu_popup ::
Ptr Menu ->
Ptr Gtk.Widget.Widget ->
Ptr Gtk.Widget.Widget ->
FunPtr Gtk.Callbacks.C_MenuPositionFunc ->
Ptr () ->
Word32 ->
Word32 ->
IO ()
{-# DEPRECATED menuPopup ["(Since version 3.22)","Please use 'GI.Gtk.Objects.Menu.menuPopupAtWidget',"," 'GI.Gtk.Objects.Menu.menuPopupAtPointer'. or 'GI.Gtk.Objects.Menu.menuPopupAtRect' instead"] #-}
menuPopup ::
(B.CallStack.HasCallStack, MonadIO m, IsMenu a, Gtk.Widget.IsWidget b, Gtk.Widget.IsWidget c) =>
a
-> Maybe (b)
-> Maybe (c)
-> Maybe (Gtk.Callbacks.MenuPositionFunc)
-> Word32
-> Word32
-> m ()
menuPopup menu parentMenuShell parentMenuItem func button activateTime = liftIO $ do
menu' <- unsafeManagedPtrCastPtr menu
maybeParentMenuShell <- case parentMenuShell of
Nothing -> return nullPtr
Just jParentMenuShell -> do
jParentMenuShell' <- unsafeManagedPtrCastPtr jParentMenuShell
return jParentMenuShell'
maybeParentMenuItem <- case parentMenuItem of
Nothing -> return nullPtr
Just jParentMenuItem -> do
jParentMenuItem' <- unsafeManagedPtrCastPtr jParentMenuItem
return jParentMenuItem'
maybeFunc <- case func of
Nothing -> return (castPtrToFunPtr nullPtr)
Just jFunc -> do
ptrfunc <- callocMem :: IO (Ptr (FunPtr Gtk.Callbacks.C_MenuPositionFunc))
jFunc' <- Gtk.Callbacks.mk_MenuPositionFunc (Gtk.Callbacks.wrap_MenuPositionFunc (Just ptrfunc) (Gtk.Callbacks.drop_closures_MenuPositionFunc jFunc))
poke ptrfunc jFunc'
return jFunc'
let data_ = nullPtr
gtk_menu_popup menu' maybeParentMenuShell maybeParentMenuItem maybeFunc data_ button activateTime
touchManagedPtr menu
whenJust parentMenuShell touchManagedPtr
whenJust parentMenuItem touchManagedPtr
return ()
#if ENABLE_OVERLOADING
data MenuPopupMethodInfo
instance (signature ~ (Maybe (b) -> Maybe (c) -> Maybe (Gtk.Callbacks.MenuPositionFunc) -> Word32 -> Word32 -> m ()), MonadIO m, IsMenu a, Gtk.Widget.IsWidget b, Gtk.Widget.IsWidget c) => O.MethodInfo MenuPopupMethodInfo a signature where
overloadedMethod _ = menuPopup
#endif
foreign import ccall "gtk_menu_popup_at_pointer" gtk_menu_popup_at_pointer ::
Ptr Menu ->
Ptr Gdk.Event.Event ->
IO ()
menuPopupAtPointer ::
(B.CallStack.HasCallStack, MonadIO m, IsMenu a) =>
a
-> Maybe (Gdk.Event.Event)
-> m ()
menuPopupAtPointer menu triggerEvent = liftIO $ do
menu' <- unsafeManagedPtrCastPtr menu
maybeTriggerEvent <- case triggerEvent of
Nothing -> return nullPtr
Just jTriggerEvent -> do
jTriggerEvent' <- unsafeManagedPtrGetPtr jTriggerEvent
return jTriggerEvent'
gtk_menu_popup_at_pointer menu' maybeTriggerEvent
touchManagedPtr menu
whenJust triggerEvent touchManagedPtr
return ()
#if ENABLE_OVERLOADING
data MenuPopupAtPointerMethodInfo
instance (signature ~ (Maybe (Gdk.Event.Event) -> m ()), MonadIO m, IsMenu a) => O.MethodInfo MenuPopupAtPointerMethodInfo a signature where
overloadedMethod _ = menuPopupAtPointer
#endif
foreign import ccall "gtk_menu_popup_at_rect" gtk_menu_popup_at_rect ::
Ptr Menu ->
Ptr Gdk.Window.Window ->
Ptr Gdk.Rectangle.Rectangle ->
CUInt ->
CUInt ->
Ptr Gdk.Event.Event ->
IO ()
menuPopupAtRect ::
(B.CallStack.HasCallStack, MonadIO m, IsMenu a, Gdk.Window.IsWindow b) =>
a
-> b
-> Gdk.Rectangle.Rectangle
-> Gdk.Enums.Gravity
-> Gdk.Enums.Gravity
-> Maybe (Gdk.Event.Event)
-> m ()
menuPopupAtRect menu rectWindow rect rectAnchor menuAnchor triggerEvent = liftIO $ do
menu' <- unsafeManagedPtrCastPtr menu
rectWindow' <- unsafeManagedPtrCastPtr rectWindow
rect' <- unsafeManagedPtrGetPtr rect
let rectAnchor' = (fromIntegral . fromEnum) rectAnchor
let menuAnchor' = (fromIntegral . fromEnum) menuAnchor
maybeTriggerEvent <- case triggerEvent of
Nothing -> return nullPtr
Just jTriggerEvent -> do
jTriggerEvent' <- unsafeManagedPtrGetPtr jTriggerEvent
return jTriggerEvent'
gtk_menu_popup_at_rect menu' rectWindow' rect' rectAnchor' menuAnchor' maybeTriggerEvent
touchManagedPtr menu
touchManagedPtr rectWindow
touchManagedPtr rect
whenJust triggerEvent touchManagedPtr
return ()
#if ENABLE_OVERLOADING
data MenuPopupAtRectMethodInfo
instance (signature ~ (b -> Gdk.Rectangle.Rectangle -> Gdk.Enums.Gravity -> Gdk.Enums.Gravity -> Maybe (Gdk.Event.Event) -> m ()), MonadIO m, IsMenu a, Gdk.Window.IsWindow b) => O.MethodInfo MenuPopupAtRectMethodInfo a signature where
overloadedMethod _ = menuPopupAtRect
#endif
foreign import ccall "gtk_menu_popup_at_widget" gtk_menu_popup_at_widget ::
Ptr Menu ->
Ptr Gtk.Widget.Widget ->
CUInt ->
CUInt ->
Ptr Gdk.Event.Event ->
IO ()
menuPopupAtWidget ::
(B.CallStack.HasCallStack, MonadIO m, IsMenu a, Gtk.Widget.IsWidget b) =>
a
-> b
-> Gdk.Enums.Gravity
-> Gdk.Enums.Gravity
-> Maybe (Gdk.Event.Event)
-> m ()
menuPopupAtWidget menu widget widgetAnchor menuAnchor triggerEvent = liftIO $ do
menu' <- unsafeManagedPtrCastPtr menu
widget' <- unsafeManagedPtrCastPtr widget
let widgetAnchor' = (fromIntegral . fromEnum) widgetAnchor
let menuAnchor' = (fromIntegral . fromEnum) menuAnchor
maybeTriggerEvent <- case triggerEvent of
Nothing -> return nullPtr
Just jTriggerEvent -> do
jTriggerEvent' <- unsafeManagedPtrGetPtr jTriggerEvent
return jTriggerEvent'
gtk_menu_popup_at_widget menu' widget' widgetAnchor' menuAnchor' maybeTriggerEvent
touchManagedPtr menu
touchManagedPtr widget
whenJust triggerEvent touchManagedPtr
return ()
#if ENABLE_OVERLOADING
data MenuPopupAtWidgetMethodInfo
instance (signature ~ (b -> Gdk.Enums.Gravity -> Gdk.Enums.Gravity -> Maybe (Gdk.Event.Event) -> m ()), MonadIO m, IsMenu a, Gtk.Widget.IsWidget b) => O.MethodInfo MenuPopupAtWidgetMethodInfo a signature where
overloadedMethod _ = menuPopupAtWidget
#endif
foreign import ccall "gtk_menu_popup_for_device" gtk_menu_popup_for_device ::
Ptr Menu ->
Ptr Gdk.Device.Device ->
Ptr Gtk.Widget.Widget ->
Ptr Gtk.Widget.Widget ->
FunPtr Gtk.Callbacks.C_MenuPositionFunc ->
Ptr () ->
FunPtr GLib.Callbacks.C_DestroyNotify ->
Word32 ->
Word32 ->
IO ()
{-# DEPRECATED menuPopupForDevice ["(Since version 3.22)","Please use 'GI.Gtk.Objects.Menu.menuPopupAtWidget',"," 'GI.Gtk.Objects.Menu.menuPopupAtPointer'. or 'GI.Gtk.Objects.Menu.menuPopupAtRect' instead"] #-}
menuPopupForDevice ::
(B.CallStack.HasCallStack, MonadIO m, IsMenu a, Gdk.Device.IsDevice b, Gtk.Widget.IsWidget c, Gtk.Widget.IsWidget d) =>
a
-> Maybe (b)
-> Maybe (c)
-> Maybe (d)
-> Maybe (Gtk.Callbacks.MenuPositionFunc)
-> Word32
-> Word32
-> m ()
menuPopupForDevice menu device parentMenuShell parentMenuItem func button activateTime = liftIO $ do
menu' <- unsafeManagedPtrCastPtr menu
maybeDevice <- case device of
Nothing -> return nullPtr
Just jDevice -> do
jDevice' <- unsafeManagedPtrCastPtr jDevice
return jDevice'
maybeParentMenuShell <- case parentMenuShell of
Nothing -> return nullPtr
Just jParentMenuShell -> do
jParentMenuShell' <- unsafeManagedPtrCastPtr jParentMenuShell
return jParentMenuShell'
maybeParentMenuItem <- case parentMenuItem of
Nothing -> return nullPtr
Just jParentMenuItem -> do
jParentMenuItem' <- unsafeManagedPtrCastPtr jParentMenuItem
return jParentMenuItem'
maybeFunc <- case func of
Nothing -> return (castPtrToFunPtr nullPtr)
Just jFunc -> do
jFunc' <- Gtk.Callbacks.mk_MenuPositionFunc (Gtk.Callbacks.wrap_MenuPositionFunc Nothing (Gtk.Callbacks.drop_closures_MenuPositionFunc jFunc))
return jFunc'
let data_ = castFunPtrToPtr maybeFunc
let destroy = safeFreeFunPtrPtr
gtk_menu_popup_for_device menu' maybeDevice maybeParentMenuShell maybeParentMenuItem maybeFunc data_ destroy button activateTime
touchManagedPtr menu
whenJust device touchManagedPtr
whenJust parentMenuShell touchManagedPtr
whenJust parentMenuItem touchManagedPtr
return ()
#if ENABLE_OVERLOADING
data MenuPopupForDeviceMethodInfo
instance (signature ~ (Maybe (b) -> Maybe (c) -> Maybe (d) -> Maybe (Gtk.Callbacks.MenuPositionFunc) -> Word32 -> Word32 -> m ()), MonadIO m, IsMenu a, Gdk.Device.IsDevice b, Gtk.Widget.IsWidget c, Gtk.Widget.IsWidget d) => O.MethodInfo MenuPopupForDeviceMethodInfo a signature where
overloadedMethod _ = menuPopupForDevice
#endif
foreign import ccall "gtk_menu_reorder_child" gtk_menu_reorder_child ::
Ptr Menu ->
Ptr Gtk.Widget.Widget ->
Int32 ->
IO ()
menuReorderChild ::
(B.CallStack.HasCallStack, MonadIO m, IsMenu a, Gtk.Widget.IsWidget b) =>
a
-> b
-> Int32
-> m ()
menuReorderChild menu child position = liftIO $ do
menu' <- unsafeManagedPtrCastPtr menu
child' <- unsafeManagedPtrCastPtr child
gtk_menu_reorder_child menu' child' position
touchManagedPtr menu
touchManagedPtr child
return ()
#if ENABLE_OVERLOADING
data MenuReorderChildMethodInfo
instance (signature ~ (b -> Int32 -> m ()), MonadIO m, IsMenu a, Gtk.Widget.IsWidget b) => O.MethodInfo MenuReorderChildMethodInfo a signature where
overloadedMethod _ = menuReorderChild
#endif
foreign import ccall "gtk_menu_reposition" gtk_menu_reposition ::
Ptr Menu ->
IO ()
menuReposition ::
(B.CallStack.HasCallStack, MonadIO m, IsMenu a) =>
a
-> m ()
menuReposition menu = liftIO $ do
menu' <- unsafeManagedPtrCastPtr menu
gtk_menu_reposition menu'
touchManagedPtr menu
return ()
#if ENABLE_OVERLOADING
data MenuRepositionMethodInfo
instance (signature ~ (m ()), MonadIO m, IsMenu a) => O.MethodInfo MenuRepositionMethodInfo a signature where
overloadedMethod _ = menuReposition
#endif
foreign import ccall "gtk_menu_set_accel_group" gtk_menu_set_accel_group ::
Ptr Menu ->
Ptr Gtk.AccelGroup.AccelGroup ->
IO ()
menuSetAccelGroup ::
(B.CallStack.HasCallStack, MonadIO m, IsMenu a, Gtk.AccelGroup.IsAccelGroup b) =>
a
-> Maybe (b)
-> m ()
menuSetAccelGroup menu accelGroup = liftIO $ do
menu' <- unsafeManagedPtrCastPtr menu
maybeAccelGroup <- case accelGroup of
Nothing -> return nullPtr
Just jAccelGroup -> do
jAccelGroup' <- unsafeManagedPtrCastPtr jAccelGroup
return jAccelGroup'
gtk_menu_set_accel_group menu' maybeAccelGroup
touchManagedPtr menu
whenJust accelGroup touchManagedPtr
return ()
#if ENABLE_OVERLOADING
data MenuSetAccelGroupMethodInfo
instance (signature ~ (Maybe (b) -> m ()), MonadIO m, IsMenu a, Gtk.AccelGroup.IsAccelGroup b) => O.MethodInfo MenuSetAccelGroupMethodInfo a signature where
overloadedMethod _ = menuSetAccelGroup
#endif
foreign import ccall "gtk_menu_set_accel_path" gtk_menu_set_accel_path ::
Ptr Menu ->
CString ->
IO ()
menuSetAccelPath ::
(B.CallStack.HasCallStack, MonadIO m, IsMenu a) =>
a
-> Maybe (T.Text)
-> m ()
menuSetAccelPath menu accelPath = liftIO $ do
menu' <- unsafeManagedPtrCastPtr menu
maybeAccelPath <- case accelPath of
Nothing -> return nullPtr
Just jAccelPath -> do
jAccelPath' <- textToCString jAccelPath
return jAccelPath'
gtk_menu_set_accel_path menu' maybeAccelPath
touchManagedPtr menu
freeMem maybeAccelPath
return ()
#if ENABLE_OVERLOADING
data MenuSetAccelPathMethodInfo
instance (signature ~ (Maybe (T.Text) -> m ()), MonadIO m, IsMenu a) => O.MethodInfo MenuSetAccelPathMethodInfo a signature where
overloadedMethod _ = menuSetAccelPath
#endif
foreign import ccall "gtk_menu_set_active" gtk_menu_set_active ::
Ptr Menu ->
Word32 ->
IO ()
menuSetActive ::
(B.CallStack.HasCallStack, MonadIO m, IsMenu a) =>
a
-> Word32
-> m ()
menuSetActive menu index = liftIO $ do
menu' <- unsafeManagedPtrCastPtr menu
gtk_menu_set_active menu' index
touchManagedPtr menu
return ()
#if ENABLE_OVERLOADING
data MenuSetActiveMethodInfo
instance (signature ~ (Word32 -> m ()), MonadIO m, IsMenu a) => O.MethodInfo MenuSetActiveMethodInfo a signature where
overloadedMethod _ = menuSetActive
#endif
foreign import ccall "gtk_menu_set_monitor" gtk_menu_set_monitor ::
Ptr Menu ->
Int32 ->
IO ()
menuSetMonitor ::
(B.CallStack.HasCallStack, MonadIO m, IsMenu a) =>
a
-> Int32
-> m ()
menuSetMonitor menu monitorNum = liftIO $ do
menu' <- unsafeManagedPtrCastPtr menu
gtk_menu_set_monitor menu' monitorNum
touchManagedPtr menu
return ()
#if ENABLE_OVERLOADING
data MenuSetMonitorMethodInfo
instance (signature ~ (Int32 -> m ()), MonadIO m, IsMenu a) => O.MethodInfo MenuSetMonitorMethodInfo a signature where
overloadedMethod _ = menuSetMonitor
#endif
foreign import ccall "gtk_menu_set_reserve_toggle_size" gtk_menu_set_reserve_toggle_size ::
Ptr Menu ->
CInt ->
IO ()
menuSetReserveToggleSize ::
(B.CallStack.HasCallStack, MonadIO m, IsMenu a) =>
a
-> Bool
-> m ()
menuSetReserveToggleSize menu reserveToggleSize = liftIO $ do
menu' <- unsafeManagedPtrCastPtr menu
let reserveToggleSize' = (fromIntegral . fromEnum) reserveToggleSize
gtk_menu_set_reserve_toggle_size menu' reserveToggleSize'
touchManagedPtr menu
return ()
#if ENABLE_OVERLOADING
data MenuSetReserveToggleSizeMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsMenu a) => O.MethodInfo MenuSetReserveToggleSizeMethodInfo a signature where
overloadedMethod _ = menuSetReserveToggleSize
#endif
foreign import ccall "gtk_menu_set_screen" gtk_menu_set_screen ::
Ptr Menu ->
Ptr Gdk.Screen.Screen ->
IO ()
menuSetScreen ::
(B.CallStack.HasCallStack, MonadIO m, IsMenu a, Gdk.Screen.IsScreen b) =>
a
-> Maybe (b)
-> m ()
menuSetScreen menu screen = liftIO $ do
menu' <- unsafeManagedPtrCastPtr menu
maybeScreen <- case screen of
Nothing -> return nullPtr
Just jScreen -> do
jScreen' <- unsafeManagedPtrCastPtr jScreen
return jScreen'
gtk_menu_set_screen menu' maybeScreen
touchManagedPtr menu
whenJust screen touchManagedPtr
return ()
#if ENABLE_OVERLOADING
data MenuSetScreenMethodInfo
instance (signature ~ (Maybe (b) -> m ()), MonadIO m, IsMenu a, Gdk.Screen.IsScreen b) => O.MethodInfo MenuSetScreenMethodInfo a signature where
overloadedMethod _ = menuSetScreen
#endif
foreign import ccall "gtk_menu_set_tearoff_state" gtk_menu_set_tearoff_state ::
Ptr Menu ->
CInt ->
IO ()
{-# DEPRECATED menuSetTearoffState ["(Since version 3.10)"] #-}
menuSetTearoffState ::
(B.CallStack.HasCallStack, MonadIO m, IsMenu a) =>
a
-> Bool
-> m ()
menuSetTearoffState menu tornOff = liftIO $ do
menu' <- unsafeManagedPtrCastPtr menu
let tornOff' = (fromIntegral . fromEnum) tornOff
gtk_menu_set_tearoff_state menu' tornOff'
touchManagedPtr menu
return ()
#if ENABLE_OVERLOADING
data MenuSetTearoffStateMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsMenu a) => O.MethodInfo MenuSetTearoffStateMethodInfo a signature where
overloadedMethod _ = menuSetTearoffState
#endif
foreign import ccall "gtk_menu_set_title" gtk_menu_set_title ::
Ptr Menu ->
CString ->
IO ()
{-# DEPRECATED menuSetTitle ["(Since version 3.10)"] #-}
menuSetTitle ::
(B.CallStack.HasCallStack, MonadIO m, IsMenu a) =>
a
-> T.Text
-> m ()
menuSetTitle menu title = liftIO $ do
menu' <- unsafeManagedPtrCastPtr menu
title' <- textToCString title
gtk_menu_set_title menu' title'
touchManagedPtr menu
freeMem title'
return ()
#if ENABLE_OVERLOADING
data MenuSetTitleMethodInfo
instance (signature ~ (T.Text -> m ()), MonadIO m, IsMenu a) => O.MethodInfo MenuSetTitleMethodInfo a signature where
overloadedMethod _ = menuSetTitle
#endif
foreign import ccall "gtk_menu_get_for_attach_widget" gtk_menu_get_for_attach_widget ::
Ptr Gtk.Widget.Widget ->
IO (Ptr (GList (Ptr Gtk.Widget.Widget)))
menuGetForAttachWidget ::
(B.CallStack.HasCallStack, MonadIO m, Gtk.Widget.IsWidget a) =>
a
-> m [Gtk.Widget.Widget]
menuGetForAttachWidget widget = liftIO $ do
widget' <- unsafeManagedPtrCastPtr widget
result <- gtk_menu_get_for_attach_widget widget'
result' <- unpackGList result
result'' <- mapM (newObject Gtk.Widget.Widget) result'
touchManagedPtr widget
return result''
#if ENABLE_OVERLOADING
#endif