#define ENABLE_OVERLOADING (MIN_VERSION_haskell_gi_overloading(1,0,0) \
&& !defined(__HADDOCK_VERSION__))
module GI.Gtk.Objects.MenuItem
(
MenuItem(..) ,
IsMenuItem ,
toMenuItem ,
noMenuItem ,
#if ENABLE_OVERLOADING
MenuItemActivateMethodInfo ,
#endif
menuItemActivate ,
#if ENABLE_OVERLOADING
MenuItemDeselectMethodInfo ,
#endif
menuItemDeselect ,
#if ENABLE_OVERLOADING
MenuItemGetAccelPathMethodInfo ,
#endif
menuItemGetAccelPath ,
#if ENABLE_OVERLOADING
MenuItemGetLabelMethodInfo ,
#endif
menuItemGetLabel ,
#if ENABLE_OVERLOADING
MenuItemGetReserveIndicatorMethodInfo ,
#endif
menuItemGetReserveIndicator ,
#if ENABLE_OVERLOADING
MenuItemGetRightJustifiedMethodInfo ,
#endif
menuItemGetRightJustified ,
#if ENABLE_OVERLOADING
MenuItemGetSubmenuMethodInfo ,
#endif
menuItemGetSubmenu ,
#if ENABLE_OVERLOADING
MenuItemGetUseUnderlineMethodInfo ,
#endif
menuItemGetUseUnderline ,
menuItemNew ,
menuItemNewWithLabel ,
menuItemNewWithMnemonic ,
#if ENABLE_OVERLOADING
MenuItemSelectMethodInfo ,
#endif
menuItemSelect ,
#if ENABLE_OVERLOADING
MenuItemSetAccelPathMethodInfo ,
#endif
menuItemSetAccelPath ,
#if ENABLE_OVERLOADING
MenuItemSetLabelMethodInfo ,
#endif
menuItemSetLabel ,
#if ENABLE_OVERLOADING
MenuItemSetReserveIndicatorMethodInfo ,
#endif
menuItemSetReserveIndicator ,
#if ENABLE_OVERLOADING
MenuItemSetRightJustifiedMethodInfo ,
#endif
menuItemSetRightJustified ,
#if ENABLE_OVERLOADING
MenuItemSetSubmenuMethodInfo ,
#endif
menuItemSetSubmenu ,
#if ENABLE_OVERLOADING
MenuItemSetUseUnderlineMethodInfo ,
#endif
menuItemSetUseUnderline ,
#if ENABLE_OVERLOADING
MenuItemToggleSizeAllocateMethodInfo ,
#endif
menuItemToggleSizeAllocate ,
#if ENABLE_OVERLOADING
MenuItemToggleSizeRequestMethodInfo ,
#endif
menuItemToggleSizeRequest ,
#if ENABLE_OVERLOADING
MenuItemAccelPathPropertyInfo ,
#endif
clearMenuItemAccelPath ,
constructMenuItemAccelPath ,
getMenuItemAccelPath ,
#if ENABLE_OVERLOADING
menuItemAccelPath ,
#endif
setMenuItemAccelPath ,
#if ENABLE_OVERLOADING
MenuItemLabelPropertyInfo ,
#endif
constructMenuItemLabel ,
getMenuItemLabel ,
#if ENABLE_OVERLOADING
menuItemLabel ,
#endif
setMenuItemLabel ,
#if ENABLE_OVERLOADING
MenuItemRightJustifiedPropertyInfo ,
#endif
constructMenuItemRightJustified ,
getMenuItemRightJustified ,
#if ENABLE_OVERLOADING
menuItemRightJustified ,
#endif
setMenuItemRightJustified ,
#if ENABLE_OVERLOADING
MenuItemSubmenuPropertyInfo ,
#endif
clearMenuItemSubmenu ,
constructMenuItemSubmenu ,
getMenuItemSubmenu ,
#if ENABLE_OVERLOADING
menuItemSubmenu ,
#endif
setMenuItemSubmenu ,
#if ENABLE_OVERLOADING
MenuItemUseUnderlinePropertyInfo ,
#endif
constructMenuItemUseUnderline ,
getMenuItemUseUnderline ,
#if ENABLE_OVERLOADING
menuItemUseUnderline ,
#endif
setMenuItemUseUnderline ,
C_MenuItemActivateCallback ,
MenuItemActivateCallback ,
#if ENABLE_OVERLOADING
MenuItemActivateSignalInfo ,
#endif
afterMenuItemActivate ,
genClosure_MenuItemActivate ,
mk_MenuItemActivateCallback ,
noMenuItemActivateCallback ,
onMenuItemActivate ,
wrap_MenuItemActivateCallback ,
C_MenuItemActivateItemCallback ,
MenuItemActivateItemCallback ,
#if ENABLE_OVERLOADING
MenuItemActivateItemSignalInfo ,
#endif
afterMenuItemActivateItem ,
genClosure_MenuItemActivateItem ,
mk_MenuItemActivateItemCallback ,
noMenuItemActivateItemCallback ,
onMenuItemActivateItem ,
wrap_MenuItemActivateItemCallback ,
C_MenuItemDeselectCallback ,
MenuItemDeselectCallback ,
#if ENABLE_OVERLOADING
MenuItemDeselectSignalInfo ,
#endif
afterMenuItemDeselect ,
genClosure_MenuItemDeselect ,
mk_MenuItemDeselectCallback ,
noMenuItemDeselectCallback ,
onMenuItemDeselect ,
wrap_MenuItemDeselectCallback ,
C_MenuItemSelectCallback ,
MenuItemSelectCallback ,
#if ENABLE_OVERLOADING
MenuItemSelectSignalInfo ,
#endif
afterMenuItemSelect ,
genClosure_MenuItemSelect ,
mk_MenuItemSelectCallback ,
noMenuItemSelectCallback ,
onMenuItemSelect ,
wrap_MenuItemSelectCallback ,
C_MenuItemToggleSizeAllocateCallback ,
MenuItemToggleSizeAllocateCallback ,
#if ENABLE_OVERLOADING
MenuItemToggleSizeAllocateSignalInfo ,
#endif
afterMenuItemToggleSizeAllocate ,
genClosure_MenuItemToggleSizeAllocate ,
mk_MenuItemToggleSizeAllocateCallback ,
noMenuItemToggleSizeAllocateCallback ,
onMenuItemToggleSizeAllocate ,
wrap_MenuItemToggleSizeAllocateCallback ,
C_MenuItemToggleSizeRequestCallback ,
MenuItemToggleSizeRequestCallback ,
#if ENABLE_OVERLOADING
MenuItemToggleSizeRequestSignalInfo ,
#endif
afterMenuItemToggleSizeRequest ,
genClosure_MenuItemToggleSizeRequest ,
mk_MenuItemToggleSizeRequestCallback ,
noMenuItemToggleSizeRequestCallback ,
onMenuItemToggleSizeRequest ,
wrap_MenuItemToggleSizeRequestCallback ,
) 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.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.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 {-# SOURCE #-} qualified GI.Gtk.Interfaces.Actionable as Gtk.Actionable
import {-# SOURCE #-} qualified GI.Gtk.Interfaces.Activatable as Gtk.Activatable
import {-# SOURCE #-} qualified GI.Gtk.Interfaces.Buildable as Gtk.Buildable
import {-# SOURCE #-} qualified GI.Gtk.Objects.Bin as Gtk.Bin
import {-# SOURCE #-} qualified GI.Gtk.Objects.Container as Gtk.Container
import {-# SOURCE #-} qualified GI.Gtk.Objects.Menu as Gtk.Menu
import {-# SOURCE #-} qualified GI.Gtk.Objects.Widget as Gtk.Widget
newtype MenuItem = MenuItem (ManagedPtr MenuItem)
foreign import ccall "gtk_menu_item_get_type"
c_gtk_menu_item_get_type :: IO GType
instance GObject MenuItem where
gobjectType = c_gtk_menu_item_get_type
class (GObject o, O.IsDescendantOf MenuItem o) => IsMenuItem o
instance (GObject o, O.IsDescendantOf MenuItem o) => IsMenuItem o
instance O.HasParentTypes MenuItem
type instance O.ParentTypes MenuItem = '[Gtk.Bin.Bin, Gtk.Container.Container, Gtk.Widget.Widget, GObject.Object.Object, Atk.ImplementorIface.ImplementorIface, Gtk.Actionable.Actionable, Gtk.Activatable.Activatable, Gtk.Buildable.Buildable]
toMenuItem :: (MonadIO m, IsMenuItem o) => o -> m MenuItem
toMenuItem = liftIO . unsafeCastTo MenuItem
noMenuItem :: Maybe MenuItem
noMenuItem = Nothing
#if ENABLE_OVERLOADING
type family ResolveMenuItemMethod (t :: Symbol) (o :: *) :: * where
ResolveMenuItemMethod "activate" o = MenuItemActivateMethodInfo
ResolveMenuItemMethod "add" o = Gtk.Container.ContainerAddMethodInfo
ResolveMenuItemMethod "addAccelerator" o = Gtk.Widget.WidgetAddAcceleratorMethodInfo
ResolveMenuItemMethod "addChild" o = Gtk.Buildable.BuildableAddChildMethodInfo
ResolveMenuItemMethod "addDeviceEvents" o = Gtk.Widget.WidgetAddDeviceEventsMethodInfo
ResolveMenuItemMethod "addEvents" o = Gtk.Widget.WidgetAddEventsMethodInfo
ResolveMenuItemMethod "addMnemonicLabel" o = Gtk.Widget.WidgetAddMnemonicLabelMethodInfo
ResolveMenuItemMethod "addTickCallback" o = Gtk.Widget.WidgetAddTickCallbackMethodInfo
ResolveMenuItemMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolveMenuItemMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolveMenuItemMethod "canActivateAccel" o = Gtk.Widget.WidgetCanActivateAccelMethodInfo
ResolveMenuItemMethod "checkResize" o = Gtk.Container.ContainerCheckResizeMethodInfo
ResolveMenuItemMethod "childFocus" o = Gtk.Widget.WidgetChildFocusMethodInfo
ResolveMenuItemMethod "childGetProperty" o = Gtk.Container.ContainerChildGetPropertyMethodInfo
ResolveMenuItemMethod "childNotify" o = Gtk.Container.ContainerChildNotifyMethodInfo
ResolveMenuItemMethod "childNotifyByPspec" o = Gtk.Container.ContainerChildNotifyByPspecMethodInfo
ResolveMenuItemMethod "childSetProperty" o = Gtk.Container.ContainerChildSetPropertyMethodInfo
ResolveMenuItemMethod "childType" o = Gtk.Container.ContainerChildTypeMethodInfo
ResolveMenuItemMethod "classPath" o = Gtk.Widget.WidgetClassPathMethodInfo
ResolveMenuItemMethod "computeExpand" o = Gtk.Widget.WidgetComputeExpandMethodInfo
ResolveMenuItemMethod "constructChild" o = Gtk.Buildable.BuildableConstructChildMethodInfo
ResolveMenuItemMethod "createPangoContext" o = Gtk.Widget.WidgetCreatePangoContextMethodInfo
ResolveMenuItemMethod "createPangoLayout" o = Gtk.Widget.WidgetCreatePangoLayoutMethodInfo
ResolveMenuItemMethod "customFinished" o = Gtk.Buildable.BuildableCustomFinishedMethodInfo
ResolveMenuItemMethod "customTagEnd" o = Gtk.Buildable.BuildableCustomTagEndMethodInfo
ResolveMenuItemMethod "customTagStart" o = Gtk.Buildable.BuildableCustomTagStartMethodInfo
ResolveMenuItemMethod "deselect" o = MenuItemDeselectMethodInfo
ResolveMenuItemMethod "destroy" o = Gtk.Widget.WidgetDestroyMethodInfo
ResolveMenuItemMethod "destroyed" o = Gtk.Widget.WidgetDestroyedMethodInfo
ResolveMenuItemMethod "deviceIsShadowed" o = Gtk.Widget.WidgetDeviceIsShadowedMethodInfo
ResolveMenuItemMethod "doSetRelatedAction" o = Gtk.Activatable.ActivatableDoSetRelatedActionMethodInfo
ResolveMenuItemMethod "dragBegin" o = Gtk.Widget.WidgetDragBeginMethodInfo
ResolveMenuItemMethod "dragBeginWithCoordinates" o = Gtk.Widget.WidgetDragBeginWithCoordinatesMethodInfo
ResolveMenuItemMethod "dragCheckThreshold" o = Gtk.Widget.WidgetDragCheckThresholdMethodInfo
ResolveMenuItemMethod "dragDestAddImageTargets" o = Gtk.Widget.WidgetDragDestAddImageTargetsMethodInfo
ResolveMenuItemMethod "dragDestAddTextTargets" o = Gtk.Widget.WidgetDragDestAddTextTargetsMethodInfo
ResolveMenuItemMethod "dragDestAddUriTargets" o = Gtk.Widget.WidgetDragDestAddUriTargetsMethodInfo
ResolveMenuItemMethod "dragDestFindTarget" o = Gtk.Widget.WidgetDragDestFindTargetMethodInfo
ResolveMenuItemMethod "dragDestGetTargetList" o = Gtk.Widget.WidgetDragDestGetTargetListMethodInfo
ResolveMenuItemMethod "dragDestGetTrackMotion" o = Gtk.Widget.WidgetDragDestGetTrackMotionMethodInfo
ResolveMenuItemMethod "dragDestSet" o = Gtk.Widget.WidgetDragDestSetMethodInfo
ResolveMenuItemMethod "dragDestSetProxy" o = Gtk.Widget.WidgetDragDestSetProxyMethodInfo
ResolveMenuItemMethod "dragDestSetTargetList" o = Gtk.Widget.WidgetDragDestSetTargetListMethodInfo
ResolveMenuItemMethod "dragDestSetTrackMotion" o = Gtk.Widget.WidgetDragDestSetTrackMotionMethodInfo
ResolveMenuItemMethod "dragDestUnset" o = Gtk.Widget.WidgetDragDestUnsetMethodInfo
ResolveMenuItemMethod "dragGetData" o = Gtk.Widget.WidgetDragGetDataMethodInfo
ResolveMenuItemMethod "dragHighlight" o = Gtk.Widget.WidgetDragHighlightMethodInfo
ResolveMenuItemMethod "dragSourceAddImageTargets" o = Gtk.Widget.WidgetDragSourceAddImageTargetsMethodInfo
ResolveMenuItemMethod "dragSourceAddTextTargets" o = Gtk.Widget.WidgetDragSourceAddTextTargetsMethodInfo
ResolveMenuItemMethod "dragSourceAddUriTargets" o = Gtk.Widget.WidgetDragSourceAddUriTargetsMethodInfo
ResolveMenuItemMethod "dragSourceGetTargetList" o = Gtk.Widget.WidgetDragSourceGetTargetListMethodInfo
ResolveMenuItemMethod "dragSourceSet" o = Gtk.Widget.WidgetDragSourceSetMethodInfo
ResolveMenuItemMethod "dragSourceSetIconGicon" o = Gtk.Widget.WidgetDragSourceSetIconGiconMethodInfo
ResolveMenuItemMethod "dragSourceSetIconName" o = Gtk.Widget.WidgetDragSourceSetIconNameMethodInfo
ResolveMenuItemMethod "dragSourceSetIconPixbuf" o = Gtk.Widget.WidgetDragSourceSetIconPixbufMethodInfo
ResolveMenuItemMethod "dragSourceSetIconStock" o = Gtk.Widget.WidgetDragSourceSetIconStockMethodInfo
ResolveMenuItemMethod "dragSourceSetTargetList" o = Gtk.Widget.WidgetDragSourceSetTargetListMethodInfo
ResolveMenuItemMethod "dragSourceUnset" o = Gtk.Widget.WidgetDragSourceUnsetMethodInfo
ResolveMenuItemMethod "dragUnhighlight" o = Gtk.Widget.WidgetDragUnhighlightMethodInfo
ResolveMenuItemMethod "draw" o = Gtk.Widget.WidgetDrawMethodInfo
ResolveMenuItemMethod "ensureStyle" o = Gtk.Widget.WidgetEnsureStyleMethodInfo
ResolveMenuItemMethod "errorBell" o = Gtk.Widget.WidgetErrorBellMethodInfo
ResolveMenuItemMethod "event" o = Gtk.Widget.WidgetEventMethodInfo
ResolveMenuItemMethod "forall" o = Gtk.Container.ContainerForallMethodInfo
ResolveMenuItemMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolveMenuItemMethod "foreach" o = Gtk.Container.ContainerForeachMethodInfo
ResolveMenuItemMethod "freezeChildNotify" o = Gtk.Widget.WidgetFreezeChildNotifyMethodInfo
ResolveMenuItemMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolveMenuItemMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
ResolveMenuItemMethod "grabAdd" o = Gtk.Widget.WidgetGrabAddMethodInfo
ResolveMenuItemMethod "grabDefault" o = Gtk.Widget.WidgetGrabDefaultMethodInfo
ResolveMenuItemMethod "grabFocus" o = Gtk.Widget.WidgetGrabFocusMethodInfo
ResolveMenuItemMethod "grabRemove" o = Gtk.Widget.WidgetGrabRemoveMethodInfo
ResolveMenuItemMethod "hasDefault" o = Gtk.Widget.WidgetHasDefaultMethodInfo
ResolveMenuItemMethod "hasFocus" o = Gtk.Widget.WidgetHasFocusMethodInfo
ResolveMenuItemMethod "hasGrab" o = Gtk.Widget.WidgetHasGrabMethodInfo
ResolveMenuItemMethod "hasRcStyle" o = Gtk.Widget.WidgetHasRcStyleMethodInfo
ResolveMenuItemMethod "hasScreen" o = Gtk.Widget.WidgetHasScreenMethodInfo
ResolveMenuItemMethod "hasVisibleFocus" o = Gtk.Widget.WidgetHasVisibleFocusMethodInfo
ResolveMenuItemMethod "hide" o = Gtk.Widget.WidgetHideMethodInfo
ResolveMenuItemMethod "hideOnDelete" o = Gtk.Widget.WidgetHideOnDeleteMethodInfo
ResolveMenuItemMethod "inDestruction" o = Gtk.Widget.WidgetInDestructionMethodInfo
ResolveMenuItemMethod "initTemplate" o = Gtk.Widget.WidgetInitTemplateMethodInfo
ResolveMenuItemMethod "inputShapeCombineRegion" o = Gtk.Widget.WidgetInputShapeCombineRegionMethodInfo
ResolveMenuItemMethod "insertActionGroup" o = Gtk.Widget.WidgetInsertActionGroupMethodInfo
ResolveMenuItemMethod "intersect" o = Gtk.Widget.WidgetIntersectMethodInfo
ResolveMenuItemMethod "isAncestor" o = Gtk.Widget.WidgetIsAncestorMethodInfo
ResolveMenuItemMethod "isComposited" o = Gtk.Widget.WidgetIsCompositedMethodInfo
ResolveMenuItemMethod "isDrawable" o = Gtk.Widget.WidgetIsDrawableMethodInfo
ResolveMenuItemMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolveMenuItemMethod "isFocus" o = Gtk.Widget.WidgetIsFocusMethodInfo
ResolveMenuItemMethod "isSensitive" o = Gtk.Widget.WidgetIsSensitiveMethodInfo
ResolveMenuItemMethod "isToplevel" o = Gtk.Widget.WidgetIsToplevelMethodInfo
ResolveMenuItemMethod "isVisible" o = Gtk.Widget.WidgetIsVisibleMethodInfo
ResolveMenuItemMethod "keynavFailed" o = Gtk.Widget.WidgetKeynavFailedMethodInfo
ResolveMenuItemMethod "listAccelClosures" o = Gtk.Widget.WidgetListAccelClosuresMethodInfo
ResolveMenuItemMethod "listActionPrefixes" o = Gtk.Widget.WidgetListActionPrefixesMethodInfo
ResolveMenuItemMethod "listMnemonicLabels" o = Gtk.Widget.WidgetListMnemonicLabelsMethodInfo
ResolveMenuItemMethod "map" o = Gtk.Widget.WidgetMapMethodInfo
ResolveMenuItemMethod "mnemonicActivate" o = Gtk.Widget.WidgetMnemonicActivateMethodInfo
ResolveMenuItemMethod "modifyBase" o = Gtk.Widget.WidgetModifyBaseMethodInfo
ResolveMenuItemMethod "modifyBg" o = Gtk.Widget.WidgetModifyBgMethodInfo
ResolveMenuItemMethod "modifyCursor" o = Gtk.Widget.WidgetModifyCursorMethodInfo
ResolveMenuItemMethod "modifyFg" o = Gtk.Widget.WidgetModifyFgMethodInfo
ResolveMenuItemMethod "modifyFont" o = Gtk.Widget.WidgetModifyFontMethodInfo
ResolveMenuItemMethod "modifyStyle" o = Gtk.Widget.WidgetModifyStyleMethodInfo
ResolveMenuItemMethod "modifyText" o = Gtk.Widget.WidgetModifyTextMethodInfo
ResolveMenuItemMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolveMenuItemMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolveMenuItemMethod "overrideBackgroundColor" o = Gtk.Widget.WidgetOverrideBackgroundColorMethodInfo
ResolveMenuItemMethod "overrideColor" o = Gtk.Widget.WidgetOverrideColorMethodInfo
ResolveMenuItemMethod "overrideCursor" o = Gtk.Widget.WidgetOverrideCursorMethodInfo
ResolveMenuItemMethod "overrideFont" o = Gtk.Widget.WidgetOverrideFontMethodInfo
ResolveMenuItemMethod "overrideSymbolicColor" o = Gtk.Widget.WidgetOverrideSymbolicColorMethodInfo
ResolveMenuItemMethod "parserFinished" o = Gtk.Buildable.BuildableParserFinishedMethodInfo
ResolveMenuItemMethod "path" o = Gtk.Widget.WidgetPathMethodInfo
ResolveMenuItemMethod "propagateDraw" o = Gtk.Container.ContainerPropagateDrawMethodInfo
ResolveMenuItemMethod "queueAllocate" o = Gtk.Widget.WidgetQueueAllocateMethodInfo
ResolveMenuItemMethod "queueComputeExpand" o = Gtk.Widget.WidgetQueueComputeExpandMethodInfo
ResolveMenuItemMethod "queueDraw" o = Gtk.Widget.WidgetQueueDrawMethodInfo
ResolveMenuItemMethod "queueDrawArea" o = Gtk.Widget.WidgetQueueDrawAreaMethodInfo
ResolveMenuItemMethod "queueDrawRegion" o = Gtk.Widget.WidgetQueueDrawRegionMethodInfo
ResolveMenuItemMethod "queueResize" o = Gtk.Widget.WidgetQueueResizeMethodInfo
ResolveMenuItemMethod "queueResizeNoRedraw" o = Gtk.Widget.WidgetQueueResizeNoRedrawMethodInfo
ResolveMenuItemMethod "realize" o = Gtk.Widget.WidgetRealizeMethodInfo
ResolveMenuItemMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolveMenuItemMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolveMenuItemMethod "regionIntersect" o = Gtk.Widget.WidgetRegionIntersectMethodInfo
ResolveMenuItemMethod "registerWindow" o = Gtk.Widget.WidgetRegisterWindowMethodInfo
ResolveMenuItemMethod "remove" o = Gtk.Container.ContainerRemoveMethodInfo
ResolveMenuItemMethod "removeAccelerator" o = Gtk.Widget.WidgetRemoveAcceleratorMethodInfo
ResolveMenuItemMethod "removeMnemonicLabel" o = Gtk.Widget.WidgetRemoveMnemonicLabelMethodInfo
ResolveMenuItemMethod "removeTickCallback" o = Gtk.Widget.WidgetRemoveTickCallbackMethodInfo
ResolveMenuItemMethod "renderIcon" o = Gtk.Widget.WidgetRenderIconMethodInfo
ResolveMenuItemMethod "renderIconPixbuf" o = Gtk.Widget.WidgetRenderIconPixbufMethodInfo
ResolveMenuItemMethod "reparent" o = Gtk.Widget.WidgetReparentMethodInfo
ResolveMenuItemMethod "resetRcStyles" o = Gtk.Widget.WidgetResetRcStylesMethodInfo
ResolveMenuItemMethod "resetStyle" o = Gtk.Widget.WidgetResetStyleMethodInfo
ResolveMenuItemMethod "resizeChildren" o = Gtk.Container.ContainerResizeChildrenMethodInfo
ResolveMenuItemMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolveMenuItemMethod "select" o = MenuItemSelectMethodInfo
ResolveMenuItemMethod "sendExpose" o = Gtk.Widget.WidgetSendExposeMethodInfo
ResolveMenuItemMethod "sendFocusChange" o = Gtk.Widget.WidgetSendFocusChangeMethodInfo
ResolveMenuItemMethod "shapeCombineRegion" o = Gtk.Widget.WidgetShapeCombineRegionMethodInfo
ResolveMenuItemMethod "show" o = Gtk.Widget.WidgetShowMethodInfo
ResolveMenuItemMethod "showAll" o = Gtk.Widget.WidgetShowAllMethodInfo
ResolveMenuItemMethod "showNow" o = Gtk.Widget.WidgetShowNowMethodInfo
ResolveMenuItemMethod "sizeAllocate" o = Gtk.Widget.WidgetSizeAllocateMethodInfo
ResolveMenuItemMethod "sizeAllocateWithBaseline" o = Gtk.Widget.WidgetSizeAllocateWithBaselineMethodInfo
ResolveMenuItemMethod "sizeRequest" o = Gtk.Widget.WidgetSizeRequestMethodInfo
ResolveMenuItemMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolveMenuItemMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolveMenuItemMethod "styleAttach" o = Gtk.Widget.WidgetStyleAttachMethodInfo
ResolveMenuItemMethod "styleGetProperty" o = Gtk.Widget.WidgetStyleGetPropertyMethodInfo
ResolveMenuItemMethod "syncActionProperties" o = Gtk.Activatable.ActivatableSyncActionPropertiesMethodInfo
ResolveMenuItemMethod "thawChildNotify" o = Gtk.Widget.WidgetThawChildNotifyMethodInfo
ResolveMenuItemMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolveMenuItemMethod "toggleSizeAllocate" o = MenuItemToggleSizeAllocateMethodInfo
ResolveMenuItemMethod "toggleSizeRequest" o = MenuItemToggleSizeRequestMethodInfo
ResolveMenuItemMethod "translateCoordinates" o = Gtk.Widget.WidgetTranslateCoordinatesMethodInfo
ResolveMenuItemMethod "triggerTooltipQuery" o = Gtk.Widget.WidgetTriggerTooltipQueryMethodInfo
ResolveMenuItemMethod "unmap" o = Gtk.Widget.WidgetUnmapMethodInfo
ResolveMenuItemMethod "unparent" o = Gtk.Widget.WidgetUnparentMethodInfo
ResolveMenuItemMethod "unrealize" o = Gtk.Widget.WidgetUnrealizeMethodInfo
ResolveMenuItemMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolveMenuItemMethod "unregisterWindow" o = Gtk.Widget.WidgetUnregisterWindowMethodInfo
ResolveMenuItemMethod "unsetFocusChain" o = Gtk.Container.ContainerUnsetFocusChainMethodInfo
ResolveMenuItemMethod "unsetStateFlags" o = Gtk.Widget.WidgetUnsetStateFlagsMethodInfo
ResolveMenuItemMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolveMenuItemMethod "getAccelPath" o = MenuItemGetAccelPathMethodInfo
ResolveMenuItemMethod "getAccessible" o = Gtk.Widget.WidgetGetAccessibleMethodInfo
ResolveMenuItemMethod "getActionGroup" o = Gtk.Widget.WidgetGetActionGroupMethodInfo
ResolveMenuItemMethod "getActionName" o = Gtk.Actionable.ActionableGetActionNameMethodInfo
ResolveMenuItemMethod "getActionTargetValue" o = Gtk.Actionable.ActionableGetActionTargetValueMethodInfo
ResolveMenuItemMethod "getAllocatedBaseline" o = Gtk.Widget.WidgetGetAllocatedBaselineMethodInfo
ResolveMenuItemMethod "getAllocatedHeight" o = Gtk.Widget.WidgetGetAllocatedHeightMethodInfo
ResolveMenuItemMethod "getAllocatedSize" o = Gtk.Widget.WidgetGetAllocatedSizeMethodInfo
ResolveMenuItemMethod "getAllocatedWidth" o = Gtk.Widget.WidgetGetAllocatedWidthMethodInfo
ResolveMenuItemMethod "getAllocation" o = Gtk.Widget.WidgetGetAllocationMethodInfo
ResolveMenuItemMethod "getAncestor" o = Gtk.Widget.WidgetGetAncestorMethodInfo
ResolveMenuItemMethod "getAppPaintable" o = Gtk.Widget.WidgetGetAppPaintableMethodInfo
ResolveMenuItemMethod "getBorderWidth" o = Gtk.Container.ContainerGetBorderWidthMethodInfo
ResolveMenuItemMethod "getCanDefault" o = Gtk.Widget.WidgetGetCanDefaultMethodInfo
ResolveMenuItemMethod "getCanFocus" o = Gtk.Widget.WidgetGetCanFocusMethodInfo
ResolveMenuItemMethod "getChild" o = Gtk.Bin.BinGetChildMethodInfo
ResolveMenuItemMethod "getChildRequisition" o = Gtk.Widget.WidgetGetChildRequisitionMethodInfo
ResolveMenuItemMethod "getChildVisible" o = Gtk.Widget.WidgetGetChildVisibleMethodInfo
ResolveMenuItemMethod "getChildren" o = Gtk.Container.ContainerGetChildrenMethodInfo
ResolveMenuItemMethod "getClip" o = Gtk.Widget.WidgetGetClipMethodInfo
ResolveMenuItemMethod "getClipboard" o = Gtk.Widget.WidgetGetClipboardMethodInfo
ResolveMenuItemMethod "getCompositeName" o = Gtk.Widget.WidgetGetCompositeNameMethodInfo
ResolveMenuItemMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolveMenuItemMethod "getDeviceEnabled" o = Gtk.Widget.WidgetGetDeviceEnabledMethodInfo
ResolveMenuItemMethod "getDeviceEvents" o = Gtk.Widget.WidgetGetDeviceEventsMethodInfo
ResolveMenuItemMethod "getDirection" o = Gtk.Widget.WidgetGetDirectionMethodInfo
ResolveMenuItemMethod "getDisplay" o = Gtk.Widget.WidgetGetDisplayMethodInfo
ResolveMenuItemMethod "getDoubleBuffered" o = Gtk.Widget.WidgetGetDoubleBufferedMethodInfo
ResolveMenuItemMethod "getEvents" o = Gtk.Widget.WidgetGetEventsMethodInfo
ResolveMenuItemMethod "getFocusChain" o = Gtk.Container.ContainerGetFocusChainMethodInfo
ResolveMenuItemMethod "getFocusChild" o = Gtk.Container.ContainerGetFocusChildMethodInfo
ResolveMenuItemMethod "getFocusHadjustment" o = Gtk.Container.ContainerGetFocusHadjustmentMethodInfo
ResolveMenuItemMethod "getFocusOnClick" o = Gtk.Widget.WidgetGetFocusOnClickMethodInfo
ResolveMenuItemMethod "getFocusVadjustment" o = Gtk.Container.ContainerGetFocusVadjustmentMethodInfo
ResolveMenuItemMethod "getFontMap" o = Gtk.Widget.WidgetGetFontMapMethodInfo
ResolveMenuItemMethod "getFontOptions" o = Gtk.Widget.WidgetGetFontOptionsMethodInfo
ResolveMenuItemMethod "getFrameClock" o = Gtk.Widget.WidgetGetFrameClockMethodInfo
ResolveMenuItemMethod "getHalign" o = Gtk.Widget.WidgetGetHalignMethodInfo
ResolveMenuItemMethod "getHasTooltip" o = Gtk.Widget.WidgetGetHasTooltipMethodInfo
ResolveMenuItemMethod "getHasWindow" o = Gtk.Widget.WidgetGetHasWindowMethodInfo
ResolveMenuItemMethod "getHexpand" o = Gtk.Widget.WidgetGetHexpandMethodInfo
ResolveMenuItemMethod "getHexpandSet" o = Gtk.Widget.WidgetGetHexpandSetMethodInfo
ResolveMenuItemMethod "getInternalChild" o = Gtk.Buildable.BuildableGetInternalChildMethodInfo
ResolveMenuItemMethod "getLabel" o = MenuItemGetLabelMethodInfo
ResolveMenuItemMethod "getMapped" o = Gtk.Widget.WidgetGetMappedMethodInfo
ResolveMenuItemMethod "getMarginBottom" o = Gtk.Widget.WidgetGetMarginBottomMethodInfo
ResolveMenuItemMethod "getMarginEnd" o = Gtk.Widget.WidgetGetMarginEndMethodInfo
ResolveMenuItemMethod "getMarginLeft" o = Gtk.Widget.WidgetGetMarginLeftMethodInfo
ResolveMenuItemMethod "getMarginRight" o = Gtk.Widget.WidgetGetMarginRightMethodInfo
ResolveMenuItemMethod "getMarginStart" o = Gtk.Widget.WidgetGetMarginStartMethodInfo
ResolveMenuItemMethod "getMarginTop" o = Gtk.Widget.WidgetGetMarginTopMethodInfo
ResolveMenuItemMethod "getModifierMask" o = Gtk.Widget.WidgetGetModifierMaskMethodInfo
ResolveMenuItemMethod "getModifierStyle" o = Gtk.Widget.WidgetGetModifierStyleMethodInfo
ResolveMenuItemMethod "getName" o = Gtk.Widget.WidgetGetNameMethodInfo
ResolveMenuItemMethod "getNoShowAll" o = Gtk.Widget.WidgetGetNoShowAllMethodInfo
ResolveMenuItemMethod "getOpacity" o = Gtk.Widget.WidgetGetOpacityMethodInfo
ResolveMenuItemMethod "getPangoContext" o = Gtk.Widget.WidgetGetPangoContextMethodInfo
ResolveMenuItemMethod "getParent" o = Gtk.Widget.WidgetGetParentMethodInfo
ResolveMenuItemMethod "getParentWindow" o = Gtk.Widget.WidgetGetParentWindowMethodInfo
ResolveMenuItemMethod "getPath" o = Gtk.Widget.WidgetGetPathMethodInfo
ResolveMenuItemMethod "getPathForChild" o = Gtk.Container.ContainerGetPathForChildMethodInfo
ResolveMenuItemMethod "getPointer" o = Gtk.Widget.WidgetGetPointerMethodInfo
ResolveMenuItemMethod "getPreferredHeight" o = Gtk.Widget.WidgetGetPreferredHeightMethodInfo
ResolveMenuItemMethod "getPreferredHeightAndBaselineForWidth" o = Gtk.Widget.WidgetGetPreferredHeightAndBaselineForWidthMethodInfo
ResolveMenuItemMethod "getPreferredHeightForWidth" o = Gtk.Widget.WidgetGetPreferredHeightForWidthMethodInfo
ResolveMenuItemMethod "getPreferredSize" o = Gtk.Widget.WidgetGetPreferredSizeMethodInfo
ResolveMenuItemMethod "getPreferredWidth" o = Gtk.Widget.WidgetGetPreferredWidthMethodInfo
ResolveMenuItemMethod "getPreferredWidthForHeight" o = Gtk.Widget.WidgetGetPreferredWidthForHeightMethodInfo
ResolveMenuItemMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolveMenuItemMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolveMenuItemMethod "getRealized" o = Gtk.Widget.WidgetGetRealizedMethodInfo
ResolveMenuItemMethod "getReceivesDefault" o = Gtk.Widget.WidgetGetReceivesDefaultMethodInfo
ResolveMenuItemMethod "getRelatedAction" o = Gtk.Activatable.ActivatableGetRelatedActionMethodInfo
ResolveMenuItemMethod "getRequestMode" o = Gtk.Widget.WidgetGetRequestModeMethodInfo
ResolveMenuItemMethod "getRequisition" o = Gtk.Widget.WidgetGetRequisitionMethodInfo
ResolveMenuItemMethod "getReserveIndicator" o = MenuItemGetReserveIndicatorMethodInfo
ResolveMenuItemMethod "getResizeMode" o = Gtk.Container.ContainerGetResizeModeMethodInfo
ResolveMenuItemMethod "getRightJustified" o = MenuItemGetRightJustifiedMethodInfo
ResolveMenuItemMethod "getRootWindow" o = Gtk.Widget.WidgetGetRootWindowMethodInfo
ResolveMenuItemMethod "getScaleFactor" o = Gtk.Widget.WidgetGetScaleFactorMethodInfo
ResolveMenuItemMethod "getScreen" o = Gtk.Widget.WidgetGetScreenMethodInfo
ResolveMenuItemMethod "getSensitive" o = Gtk.Widget.WidgetGetSensitiveMethodInfo
ResolveMenuItemMethod "getSettings" o = Gtk.Widget.WidgetGetSettingsMethodInfo
ResolveMenuItemMethod "getSizeRequest" o = Gtk.Widget.WidgetGetSizeRequestMethodInfo
ResolveMenuItemMethod "getState" o = Gtk.Widget.WidgetGetStateMethodInfo
ResolveMenuItemMethod "getStateFlags" o = Gtk.Widget.WidgetGetStateFlagsMethodInfo
ResolveMenuItemMethod "getStyle" o = Gtk.Widget.WidgetGetStyleMethodInfo
ResolveMenuItemMethod "getStyleContext" o = Gtk.Widget.WidgetGetStyleContextMethodInfo
ResolveMenuItemMethod "getSubmenu" o = MenuItemGetSubmenuMethodInfo
ResolveMenuItemMethod "getSupportMultidevice" o = Gtk.Widget.WidgetGetSupportMultideviceMethodInfo
ResolveMenuItemMethod "getTemplateChild" o = Gtk.Widget.WidgetGetTemplateChildMethodInfo
ResolveMenuItemMethod "getTooltipMarkup" o = Gtk.Widget.WidgetGetTooltipMarkupMethodInfo
ResolveMenuItemMethod "getTooltipText" o = Gtk.Widget.WidgetGetTooltipTextMethodInfo
ResolveMenuItemMethod "getTooltipWindow" o = Gtk.Widget.WidgetGetTooltipWindowMethodInfo
ResolveMenuItemMethod "getToplevel" o = Gtk.Widget.WidgetGetToplevelMethodInfo
ResolveMenuItemMethod "getUseActionAppearance" o = Gtk.Activatable.ActivatableGetUseActionAppearanceMethodInfo
ResolveMenuItemMethod "getUseUnderline" o = MenuItemGetUseUnderlineMethodInfo
ResolveMenuItemMethod "getValign" o = Gtk.Widget.WidgetGetValignMethodInfo
ResolveMenuItemMethod "getValignWithBaseline" o = Gtk.Widget.WidgetGetValignWithBaselineMethodInfo
ResolveMenuItemMethod "getVexpand" o = Gtk.Widget.WidgetGetVexpandMethodInfo
ResolveMenuItemMethod "getVexpandSet" o = Gtk.Widget.WidgetGetVexpandSetMethodInfo
ResolveMenuItemMethod "getVisible" o = Gtk.Widget.WidgetGetVisibleMethodInfo
ResolveMenuItemMethod "getVisual" o = Gtk.Widget.WidgetGetVisualMethodInfo
ResolveMenuItemMethod "getWindow" o = Gtk.Widget.WidgetGetWindowMethodInfo
ResolveMenuItemMethod "setAccelPath" o = MenuItemSetAccelPathMethodInfo
ResolveMenuItemMethod "setActionName" o = Gtk.Actionable.ActionableSetActionNameMethodInfo
ResolveMenuItemMethod "setActionTargetValue" o = Gtk.Actionable.ActionableSetActionTargetValueMethodInfo
ResolveMenuItemMethod "setAllocation" o = Gtk.Widget.WidgetSetAllocationMethodInfo
ResolveMenuItemMethod "setAppPaintable" o = Gtk.Widget.WidgetSetAppPaintableMethodInfo
ResolveMenuItemMethod "setBorderWidth" o = Gtk.Container.ContainerSetBorderWidthMethodInfo
ResolveMenuItemMethod "setBuildableProperty" o = Gtk.Buildable.BuildableSetBuildablePropertyMethodInfo
ResolveMenuItemMethod "setCanDefault" o = Gtk.Widget.WidgetSetCanDefaultMethodInfo
ResolveMenuItemMethod "setCanFocus" o = Gtk.Widget.WidgetSetCanFocusMethodInfo
ResolveMenuItemMethod "setChildVisible" o = Gtk.Widget.WidgetSetChildVisibleMethodInfo
ResolveMenuItemMethod "setClip" o = Gtk.Widget.WidgetSetClipMethodInfo
ResolveMenuItemMethod "setCompositeName" o = Gtk.Widget.WidgetSetCompositeNameMethodInfo
ResolveMenuItemMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolveMenuItemMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
ResolveMenuItemMethod "setDetailedActionName" o = Gtk.Actionable.ActionableSetDetailedActionNameMethodInfo
ResolveMenuItemMethod "setDeviceEnabled" o = Gtk.Widget.WidgetSetDeviceEnabledMethodInfo
ResolveMenuItemMethod "setDeviceEvents" o = Gtk.Widget.WidgetSetDeviceEventsMethodInfo
ResolveMenuItemMethod "setDirection" o = Gtk.Widget.WidgetSetDirectionMethodInfo
ResolveMenuItemMethod "setDoubleBuffered" o = Gtk.Widget.WidgetSetDoubleBufferedMethodInfo
ResolveMenuItemMethod "setEvents" o = Gtk.Widget.WidgetSetEventsMethodInfo
ResolveMenuItemMethod "setFocusChain" o = Gtk.Container.ContainerSetFocusChainMethodInfo
ResolveMenuItemMethod "setFocusChild" o = Gtk.Container.ContainerSetFocusChildMethodInfo
ResolveMenuItemMethod "setFocusHadjustment" o = Gtk.Container.ContainerSetFocusHadjustmentMethodInfo
ResolveMenuItemMethod "setFocusOnClick" o = Gtk.Widget.WidgetSetFocusOnClickMethodInfo
ResolveMenuItemMethod "setFocusVadjustment" o = Gtk.Container.ContainerSetFocusVadjustmentMethodInfo
ResolveMenuItemMethod "setFontMap" o = Gtk.Widget.WidgetSetFontMapMethodInfo
ResolveMenuItemMethod "setFontOptions" o = Gtk.Widget.WidgetSetFontOptionsMethodInfo
ResolveMenuItemMethod "setHalign" o = Gtk.Widget.WidgetSetHalignMethodInfo
ResolveMenuItemMethod "setHasTooltip" o = Gtk.Widget.WidgetSetHasTooltipMethodInfo
ResolveMenuItemMethod "setHasWindow" o = Gtk.Widget.WidgetSetHasWindowMethodInfo
ResolveMenuItemMethod "setHexpand" o = Gtk.Widget.WidgetSetHexpandMethodInfo
ResolveMenuItemMethod "setHexpandSet" o = Gtk.Widget.WidgetSetHexpandSetMethodInfo
ResolveMenuItemMethod "setLabel" o = MenuItemSetLabelMethodInfo
ResolveMenuItemMethod "setMapped" o = Gtk.Widget.WidgetSetMappedMethodInfo
ResolveMenuItemMethod "setMarginBottom" o = Gtk.Widget.WidgetSetMarginBottomMethodInfo
ResolveMenuItemMethod "setMarginEnd" o = Gtk.Widget.WidgetSetMarginEndMethodInfo
ResolveMenuItemMethod "setMarginLeft" o = Gtk.Widget.WidgetSetMarginLeftMethodInfo
ResolveMenuItemMethod "setMarginRight" o = Gtk.Widget.WidgetSetMarginRightMethodInfo
ResolveMenuItemMethod "setMarginStart" o = Gtk.Widget.WidgetSetMarginStartMethodInfo
ResolveMenuItemMethod "setMarginTop" o = Gtk.Widget.WidgetSetMarginTopMethodInfo
ResolveMenuItemMethod "setName" o = Gtk.Widget.WidgetSetNameMethodInfo
ResolveMenuItemMethod "setNoShowAll" o = Gtk.Widget.WidgetSetNoShowAllMethodInfo
ResolveMenuItemMethod "setOpacity" o = Gtk.Widget.WidgetSetOpacityMethodInfo
ResolveMenuItemMethod "setParent" o = Gtk.Widget.WidgetSetParentMethodInfo
ResolveMenuItemMethod "setParentWindow" o = Gtk.Widget.WidgetSetParentWindowMethodInfo
ResolveMenuItemMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolveMenuItemMethod "setRealized" o = Gtk.Widget.WidgetSetRealizedMethodInfo
ResolveMenuItemMethod "setReallocateRedraws" o = Gtk.Container.ContainerSetReallocateRedrawsMethodInfo
ResolveMenuItemMethod "setReceivesDefault" o = Gtk.Widget.WidgetSetReceivesDefaultMethodInfo
ResolveMenuItemMethod "setRedrawOnAllocate" o = Gtk.Widget.WidgetSetRedrawOnAllocateMethodInfo
ResolveMenuItemMethod "setRelatedAction" o = Gtk.Activatable.ActivatableSetRelatedActionMethodInfo
ResolveMenuItemMethod "setReserveIndicator" o = MenuItemSetReserveIndicatorMethodInfo
ResolveMenuItemMethod "setResizeMode" o = Gtk.Container.ContainerSetResizeModeMethodInfo
ResolveMenuItemMethod "setRightJustified" o = MenuItemSetRightJustifiedMethodInfo
ResolveMenuItemMethod "setSensitive" o = Gtk.Widget.WidgetSetSensitiveMethodInfo
ResolveMenuItemMethod "setSizeRequest" o = Gtk.Widget.WidgetSetSizeRequestMethodInfo
ResolveMenuItemMethod "setState" o = Gtk.Widget.WidgetSetStateMethodInfo
ResolveMenuItemMethod "setStateFlags" o = Gtk.Widget.WidgetSetStateFlagsMethodInfo
ResolveMenuItemMethod "setStyle" o = Gtk.Widget.WidgetSetStyleMethodInfo
ResolveMenuItemMethod "setSubmenu" o = MenuItemSetSubmenuMethodInfo
ResolveMenuItemMethod "setSupportMultidevice" o = Gtk.Widget.WidgetSetSupportMultideviceMethodInfo
ResolveMenuItemMethod "setTooltipMarkup" o = Gtk.Widget.WidgetSetTooltipMarkupMethodInfo
ResolveMenuItemMethod "setTooltipText" o = Gtk.Widget.WidgetSetTooltipTextMethodInfo
ResolveMenuItemMethod "setTooltipWindow" o = Gtk.Widget.WidgetSetTooltipWindowMethodInfo
ResolveMenuItemMethod "setUseActionAppearance" o = Gtk.Activatable.ActivatableSetUseActionAppearanceMethodInfo
ResolveMenuItemMethod "setUseUnderline" o = MenuItemSetUseUnderlineMethodInfo
ResolveMenuItemMethod "setValign" o = Gtk.Widget.WidgetSetValignMethodInfo
ResolveMenuItemMethod "setVexpand" o = Gtk.Widget.WidgetSetVexpandMethodInfo
ResolveMenuItemMethod "setVexpandSet" o = Gtk.Widget.WidgetSetVexpandSetMethodInfo
ResolveMenuItemMethod "setVisible" o = Gtk.Widget.WidgetSetVisibleMethodInfo
ResolveMenuItemMethod "setVisual" o = Gtk.Widget.WidgetSetVisualMethodInfo
ResolveMenuItemMethod "setWindow" o = Gtk.Widget.WidgetSetWindowMethodInfo
ResolveMenuItemMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveMenuItemMethod t MenuItem, O.MethodInfo info MenuItem p) => OL.IsLabel t (MenuItem -> 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
type MenuItemActivateCallback =
IO ()
noMenuItemActivateCallback :: Maybe MenuItemActivateCallback
noMenuItemActivateCallback = Nothing
type C_MenuItemActivateCallback =
Ptr () ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_MenuItemActivateCallback :: C_MenuItemActivateCallback -> IO (FunPtr C_MenuItemActivateCallback)
genClosure_MenuItemActivate :: MonadIO m => MenuItemActivateCallback -> m (GClosure C_MenuItemActivateCallback)
genClosure_MenuItemActivate cb = liftIO $ do
let cb' = wrap_MenuItemActivateCallback cb
mk_MenuItemActivateCallback cb' >>= B.GClosure.newGClosure
wrap_MenuItemActivateCallback ::
MenuItemActivateCallback ->
C_MenuItemActivateCallback
wrap_MenuItemActivateCallback _cb _ _ = do
_cb
onMenuItemActivate :: (IsMenuItem a, MonadIO m) => a -> MenuItemActivateCallback -> m SignalHandlerId
onMenuItemActivate obj cb = liftIO $ do
let cb' = wrap_MenuItemActivateCallback cb
cb'' <- mk_MenuItemActivateCallback cb'
connectSignalFunPtr obj "activate" cb'' SignalConnectBefore
afterMenuItemActivate :: (IsMenuItem a, MonadIO m) => a -> MenuItemActivateCallback -> m SignalHandlerId
afterMenuItemActivate obj cb = liftIO $ do
let cb' = wrap_MenuItemActivateCallback cb
cb'' <- mk_MenuItemActivateCallback cb'
connectSignalFunPtr obj "activate" cb'' SignalConnectAfter
type MenuItemActivateItemCallback =
IO ()
noMenuItemActivateItemCallback :: Maybe MenuItemActivateItemCallback
noMenuItemActivateItemCallback = Nothing
type C_MenuItemActivateItemCallback =
Ptr () ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_MenuItemActivateItemCallback :: C_MenuItemActivateItemCallback -> IO (FunPtr C_MenuItemActivateItemCallback)
genClosure_MenuItemActivateItem :: MonadIO m => MenuItemActivateItemCallback -> m (GClosure C_MenuItemActivateItemCallback)
genClosure_MenuItemActivateItem cb = liftIO $ do
let cb' = wrap_MenuItemActivateItemCallback cb
mk_MenuItemActivateItemCallback cb' >>= B.GClosure.newGClosure
wrap_MenuItemActivateItemCallback ::
MenuItemActivateItemCallback ->
C_MenuItemActivateItemCallback
wrap_MenuItemActivateItemCallback _cb _ _ = do
_cb
onMenuItemActivateItem :: (IsMenuItem a, MonadIO m) => a -> MenuItemActivateItemCallback -> m SignalHandlerId
onMenuItemActivateItem obj cb = liftIO $ do
let cb' = wrap_MenuItemActivateItemCallback cb
cb'' <- mk_MenuItemActivateItemCallback cb'
connectSignalFunPtr obj "activate-item" cb'' SignalConnectBefore
afterMenuItemActivateItem :: (IsMenuItem a, MonadIO m) => a -> MenuItemActivateItemCallback -> m SignalHandlerId
afterMenuItemActivateItem obj cb = liftIO $ do
let cb' = wrap_MenuItemActivateItemCallback cb
cb'' <- mk_MenuItemActivateItemCallback cb'
connectSignalFunPtr obj "activate-item" cb'' SignalConnectAfter
type MenuItemDeselectCallback =
IO ()
noMenuItemDeselectCallback :: Maybe MenuItemDeselectCallback
noMenuItemDeselectCallback = Nothing
type C_MenuItemDeselectCallback =
Ptr () ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_MenuItemDeselectCallback :: C_MenuItemDeselectCallback -> IO (FunPtr C_MenuItemDeselectCallback)
genClosure_MenuItemDeselect :: MonadIO m => MenuItemDeselectCallback -> m (GClosure C_MenuItemDeselectCallback)
genClosure_MenuItemDeselect cb = liftIO $ do
let cb' = wrap_MenuItemDeselectCallback cb
mk_MenuItemDeselectCallback cb' >>= B.GClosure.newGClosure
wrap_MenuItemDeselectCallback ::
MenuItemDeselectCallback ->
C_MenuItemDeselectCallback
wrap_MenuItemDeselectCallback _cb _ _ = do
_cb
onMenuItemDeselect :: (IsMenuItem a, MonadIO m) => a -> MenuItemDeselectCallback -> m SignalHandlerId
onMenuItemDeselect obj cb = liftIO $ do
let cb' = wrap_MenuItemDeselectCallback cb
cb'' <- mk_MenuItemDeselectCallback cb'
connectSignalFunPtr obj "deselect" cb'' SignalConnectBefore
afterMenuItemDeselect :: (IsMenuItem a, MonadIO m) => a -> MenuItemDeselectCallback -> m SignalHandlerId
afterMenuItemDeselect obj cb = liftIO $ do
let cb' = wrap_MenuItemDeselectCallback cb
cb'' <- mk_MenuItemDeselectCallback cb'
connectSignalFunPtr obj "deselect" cb'' SignalConnectAfter
type MenuItemSelectCallback =
IO ()
noMenuItemSelectCallback :: Maybe MenuItemSelectCallback
noMenuItemSelectCallback = Nothing
type C_MenuItemSelectCallback =
Ptr () ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_MenuItemSelectCallback :: C_MenuItemSelectCallback -> IO (FunPtr C_MenuItemSelectCallback)
genClosure_MenuItemSelect :: MonadIO m => MenuItemSelectCallback -> m (GClosure C_MenuItemSelectCallback)
genClosure_MenuItemSelect cb = liftIO $ do
let cb' = wrap_MenuItemSelectCallback cb
mk_MenuItemSelectCallback cb' >>= B.GClosure.newGClosure
wrap_MenuItemSelectCallback ::
MenuItemSelectCallback ->
C_MenuItemSelectCallback
wrap_MenuItemSelectCallback _cb _ _ = do
_cb
onMenuItemSelect :: (IsMenuItem a, MonadIO m) => a -> MenuItemSelectCallback -> m SignalHandlerId
onMenuItemSelect obj cb = liftIO $ do
let cb' = wrap_MenuItemSelectCallback cb
cb'' <- mk_MenuItemSelectCallback cb'
connectSignalFunPtr obj "select" cb'' SignalConnectBefore
afterMenuItemSelect :: (IsMenuItem a, MonadIO m) => a -> MenuItemSelectCallback -> m SignalHandlerId
afterMenuItemSelect obj cb = liftIO $ do
let cb' = wrap_MenuItemSelectCallback cb
cb'' <- mk_MenuItemSelectCallback cb'
connectSignalFunPtr obj "select" cb'' SignalConnectAfter
type MenuItemToggleSizeAllocateCallback =
Int32
-> IO ()
noMenuItemToggleSizeAllocateCallback :: Maybe MenuItemToggleSizeAllocateCallback
noMenuItemToggleSizeAllocateCallback = Nothing
type C_MenuItemToggleSizeAllocateCallback =
Ptr () ->
Int32 ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_MenuItemToggleSizeAllocateCallback :: C_MenuItemToggleSizeAllocateCallback -> IO (FunPtr C_MenuItemToggleSizeAllocateCallback)
genClosure_MenuItemToggleSizeAllocate :: MonadIO m => MenuItemToggleSizeAllocateCallback -> m (GClosure C_MenuItemToggleSizeAllocateCallback)
genClosure_MenuItemToggleSizeAllocate cb = liftIO $ do
let cb' = wrap_MenuItemToggleSizeAllocateCallback cb
mk_MenuItemToggleSizeAllocateCallback cb' >>= B.GClosure.newGClosure
wrap_MenuItemToggleSizeAllocateCallback ::
MenuItemToggleSizeAllocateCallback ->
C_MenuItemToggleSizeAllocateCallback
wrap_MenuItemToggleSizeAllocateCallback _cb _ object _ = do
_cb object
onMenuItemToggleSizeAllocate :: (IsMenuItem a, MonadIO m) => a -> MenuItemToggleSizeAllocateCallback -> m SignalHandlerId
onMenuItemToggleSizeAllocate obj cb = liftIO $ do
let cb' = wrap_MenuItemToggleSizeAllocateCallback cb
cb'' <- mk_MenuItemToggleSizeAllocateCallback cb'
connectSignalFunPtr obj "toggle-size-allocate" cb'' SignalConnectBefore
afterMenuItemToggleSizeAllocate :: (IsMenuItem a, MonadIO m) => a -> MenuItemToggleSizeAllocateCallback -> m SignalHandlerId
afterMenuItemToggleSizeAllocate obj cb = liftIO $ do
let cb' = wrap_MenuItemToggleSizeAllocateCallback cb
cb'' <- mk_MenuItemToggleSizeAllocateCallback cb'
connectSignalFunPtr obj "toggle-size-allocate" cb'' SignalConnectAfter
type MenuItemToggleSizeRequestCallback =
Ptr ()
-> IO ()
noMenuItemToggleSizeRequestCallback :: Maybe MenuItemToggleSizeRequestCallback
noMenuItemToggleSizeRequestCallback = Nothing
type C_MenuItemToggleSizeRequestCallback =
Ptr () ->
Ptr () ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_MenuItemToggleSizeRequestCallback :: C_MenuItemToggleSizeRequestCallback -> IO (FunPtr C_MenuItemToggleSizeRequestCallback)
genClosure_MenuItemToggleSizeRequest :: MonadIO m => MenuItemToggleSizeRequestCallback -> m (GClosure C_MenuItemToggleSizeRequestCallback)
genClosure_MenuItemToggleSizeRequest cb = liftIO $ do
let cb' = wrap_MenuItemToggleSizeRequestCallback cb
mk_MenuItemToggleSizeRequestCallback cb' >>= B.GClosure.newGClosure
wrap_MenuItemToggleSizeRequestCallback ::
MenuItemToggleSizeRequestCallback ->
C_MenuItemToggleSizeRequestCallback
wrap_MenuItemToggleSizeRequestCallback _cb _ object _ = do
_cb object
onMenuItemToggleSizeRequest :: (IsMenuItem a, MonadIO m) => a -> MenuItemToggleSizeRequestCallback -> m SignalHandlerId
onMenuItemToggleSizeRequest obj cb = liftIO $ do
let cb' = wrap_MenuItemToggleSizeRequestCallback cb
cb'' <- mk_MenuItemToggleSizeRequestCallback cb'
connectSignalFunPtr obj "toggle-size-request" cb'' SignalConnectBefore
afterMenuItemToggleSizeRequest :: (IsMenuItem a, MonadIO m) => a -> MenuItemToggleSizeRequestCallback -> m SignalHandlerId
afterMenuItemToggleSizeRequest obj cb = liftIO $ do
let cb' = wrap_MenuItemToggleSizeRequestCallback cb
cb'' <- mk_MenuItemToggleSizeRequestCallback cb'
connectSignalFunPtr obj "toggle-size-request" cb'' SignalConnectAfter
getMenuItemAccelPath :: (MonadIO m, IsMenuItem o) => o -> m (Maybe T.Text)
getMenuItemAccelPath obj = liftIO $ B.Properties.getObjectPropertyString obj "accel-path"
setMenuItemAccelPath :: (MonadIO m, IsMenuItem o) => o -> T.Text -> m ()
setMenuItemAccelPath obj val = liftIO $ B.Properties.setObjectPropertyString obj "accel-path" (Just val)
constructMenuItemAccelPath :: (IsMenuItem o) => T.Text -> IO (GValueConstruct o)
constructMenuItemAccelPath val = B.Properties.constructObjectPropertyString "accel-path" (Just val)
clearMenuItemAccelPath :: (MonadIO m, IsMenuItem o) => o -> m ()
clearMenuItemAccelPath obj = liftIO $ B.Properties.setObjectPropertyString obj "accel-path" (Nothing :: Maybe T.Text)
#if ENABLE_OVERLOADING
data MenuItemAccelPathPropertyInfo
instance AttrInfo MenuItemAccelPathPropertyInfo where
type AttrAllowedOps MenuItemAccelPathPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrSetTypeConstraint MenuItemAccelPathPropertyInfo = (~) T.Text
type AttrBaseTypeConstraint MenuItemAccelPathPropertyInfo = IsMenuItem
type AttrGetType MenuItemAccelPathPropertyInfo = (Maybe T.Text)
type AttrLabel MenuItemAccelPathPropertyInfo = "accel-path"
type AttrOrigin MenuItemAccelPathPropertyInfo = MenuItem
attrGet _ = getMenuItemAccelPath
attrSet _ = setMenuItemAccelPath
attrConstruct _ = constructMenuItemAccelPath
attrClear _ = clearMenuItemAccelPath
#endif
getMenuItemLabel :: (MonadIO m, IsMenuItem o) => o -> m T.Text
getMenuItemLabel obj = liftIO $ checkUnexpectedNothing "getMenuItemLabel" $ B.Properties.getObjectPropertyString obj "label"
setMenuItemLabel :: (MonadIO m, IsMenuItem o) => o -> T.Text -> m ()
setMenuItemLabel obj val = liftIO $ B.Properties.setObjectPropertyString obj "label" (Just val)
constructMenuItemLabel :: (IsMenuItem o) => T.Text -> IO (GValueConstruct o)
constructMenuItemLabel val = B.Properties.constructObjectPropertyString "label" (Just val)
#if ENABLE_OVERLOADING
data MenuItemLabelPropertyInfo
instance AttrInfo MenuItemLabelPropertyInfo where
type AttrAllowedOps MenuItemLabelPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint MenuItemLabelPropertyInfo = (~) T.Text
type AttrBaseTypeConstraint MenuItemLabelPropertyInfo = IsMenuItem
type AttrGetType MenuItemLabelPropertyInfo = T.Text
type AttrLabel MenuItemLabelPropertyInfo = "label"
type AttrOrigin MenuItemLabelPropertyInfo = MenuItem
attrGet _ = getMenuItemLabel
attrSet _ = setMenuItemLabel
attrConstruct _ = constructMenuItemLabel
attrClear _ = undefined
#endif
getMenuItemRightJustified :: (MonadIO m, IsMenuItem o) => o -> m Bool
getMenuItemRightJustified obj = liftIO $ B.Properties.getObjectPropertyBool obj "right-justified"
setMenuItemRightJustified :: (MonadIO m, IsMenuItem o) => o -> Bool -> m ()
setMenuItemRightJustified obj val = liftIO $ B.Properties.setObjectPropertyBool obj "right-justified" val
constructMenuItemRightJustified :: (IsMenuItem o) => Bool -> IO (GValueConstruct o)
constructMenuItemRightJustified val = B.Properties.constructObjectPropertyBool "right-justified" val
#if ENABLE_OVERLOADING
data MenuItemRightJustifiedPropertyInfo
instance AttrInfo MenuItemRightJustifiedPropertyInfo where
type AttrAllowedOps MenuItemRightJustifiedPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint MenuItemRightJustifiedPropertyInfo = (~) Bool
type AttrBaseTypeConstraint MenuItemRightJustifiedPropertyInfo = IsMenuItem
type AttrGetType MenuItemRightJustifiedPropertyInfo = Bool
type AttrLabel MenuItemRightJustifiedPropertyInfo = "right-justified"
type AttrOrigin MenuItemRightJustifiedPropertyInfo = MenuItem
attrGet _ = getMenuItemRightJustified
attrSet _ = setMenuItemRightJustified
attrConstruct _ = constructMenuItemRightJustified
attrClear _ = undefined
#endif
getMenuItemSubmenu :: (MonadIO m, IsMenuItem o) => o -> m (Maybe Gtk.Menu.Menu)
getMenuItemSubmenu obj = liftIO $ B.Properties.getObjectPropertyObject obj "submenu" Gtk.Menu.Menu
setMenuItemSubmenu :: (MonadIO m, IsMenuItem o, Gtk.Menu.IsMenu a) => o -> a -> m ()
setMenuItemSubmenu obj val = liftIO $ B.Properties.setObjectPropertyObject obj "submenu" (Just val)
constructMenuItemSubmenu :: (IsMenuItem o, Gtk.Menu.IsMenu a) => a -> IO (GValueConstruct o)
constructMenuItemSubmenu val = B.Properties.constructObjectPropertyObject "submenu" (Just val)
clearMenuItemSubmenu :: (MonadIO m, IsMenuItem o) => o -> m ()
clearMenuItemSubmenu obj = liftIO $ B.Properties.setObjectPropertyObject obj "submenu" (Nothing :: Maybe Gtk.Menu.Menu)
#if ENABLE_OVERLOADING
data MenuItemSubmenuPropertyInfo
instance AttrInfo MenuItemSubmenuPropertyInfo where
type AttrAllowedOps MenuItemSubmenuPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrSetTypeConstraint MenuItemSubmenuPropertyInfo = Gtk.Menu.IsMenu
type AttrBaseTypeConstraint MenuItemSubmenuPropertyInfo = IsMenuItem
type AttrGetType MenuItemSubmenuPropertyInfo = (Maybe Gtk.Menu.Menu)
type AttrLabel MenuItemSubmenuPropertyInfo = "submenu"
type AttrOrigin MenuItemSubmenuPropertyInfo = MenuItem
attrGet _ = getMenuItemSubmenu
attrSet _ = setMenuItemSubmenu
attrConstruct _ = constructMenuItemSubmenu
attrClear _ = clearMenuItemSubmenu
#endif
getMenuItemUseUnderline :: (MonadIO m, IsMenuItem o) => o -> m Bool
getMenuItemUseUnderline obj = liftIO $ B.Properties.getObjectPropertyBool obj "use-underline"
setMenuItemUseUnderline :: (MonadIO m, IsMenuItem o) => o -> Bool -> m ()
setMenuItemUseUnderline obj val = liftIO $ B.Properties.setObjectPropertyBool obj "use-underline" val
constructMenuItemUseUnderline :: (IsMenuItem o) => Bool -> IO (GValueConstruct o)
constructMenuItemUseUnderline val = B.Properties.constructObjectPropertyBool "use-underline" val
#if ENABLE_OVERLOADING
data MenuItemUseUnderlinePropertyInfo
instance AttrInfo MenuItemUseUnderlinePropertyInfo where
type AttrAllowedOps MenuItemUseUnderlinePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint MenuItemUseUnderlinePropertyInfo = (~) Bool
type AttrBaseTypeConstraint MenuItemUseUnderlinePropertyInfo = IsMenuItem
type AttrGetType MenuItemUseUnderlinePropertyInfo = Bool
type AttrLabel MenuItemUseUnderlinePropertyInfo = "use-underline"
type AttrOrigin MenuItemUseUnderlinePropertyInfo = MenuItem
attrGet _ = getMenuItemUseUnderline
attrSet _ = setMenuItemUseUnderline
attrConstruct _ = constructMenuItemUseUnderline
attrClear _ = undefined
#endif
#if ENABLE_OVERLOADING
instance O.HasAttributeList MenuItem
type instance O.AttributeList MenuItem = MenuItemAttributeList
type MenuItemAttributeList = ('[ '("accelPath", MenuItemAccelPathPropertyInfo), '("actionName", Gtk.Actionable.ActionableActionNamePropertyInfo), '("actionTarget", Gtk.Actionable.ActionableActionTargetPropertyInfo), '("appPaintable", Gtk.Widget.WidgetAppPaintablePropertyInfo), '("borderWidth", Gtk.Container.ContainerBorderWidthPropertyInfo), '("canDefault", Gtk.Widget.WidgetCanDefaultPropertyInfo), '("canFocus", Gtk.Widget.WidgetCanFocusPropertyInfo), '("child", Gtk.Container.ContainerChildPropertyInfo), '("compositeChild", Gtk.Widget.WidgetCompositeChildPropertyInfo), '("doubleBuffered", Gtk.Widget.WidgetDoubleBufferedPropertyInfo), '("events", Gtk.Widget.WidgetEventsPropertyInfo), '("expand", Gtk.Widget.WidgetExpandPropertyInfo), '("focusOnClick", Gtk.Widget.WidgetFocusOnClickPropertyInfo), '("halign", Gtk.Widget.WidgetHalignPropertyInfo), '("hasDefault", Gtk.Widget.WidgetHasDefaultPropertyInfo), '("hasFocus", Gtk.Widget.WidgetHasFocusPropertyInfo), '("hasTooltip", Gtk.Widget.WidgetHasTooltipPropertyInfo), '("heightRequest", Gtk.Widget.WidgetHeightRequestPropertyInfo), '("hexpand", Gtk.Widget.WidgetHexpandPropertyInfo), '("hexpandSet", Gtk.Widget.WidgetHexpandSetPropertyInfo), '("isFocus", Gtk.Widget.WidgetIsFocusPropertyInfo), '("label", MenuItemLabelPropertyInfo), '("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), '("name", Gtk.Widget.WidgetNamePropertyInfo), '("noShowAll", Gtk.Widget.WidgetNoShowAllPropertyInfo), '("opacity", Gtk.Widget.WidgetOpacityPropertyInfo), '("parent", Gtk.Widget.WidgetParentPropertyInfo), '("receivesDefault", Gtk.Widget.WidgetReceivesDefaultPropertyInfo), '("relatedAction", Gtk.Activatable.ActivatableRelatedActionPropertyInfo), '("resizeMode", Gtk.Container.ContainerResizeModePropertyInfo), '("rightJustified", MenuItemRightJustifiedPropertyInfo), '("scaleFactor", Gtk.Widget.WidgetScaleFactorPropertyInfo), '("sensitive", Gtk.Widget.WidgetSensitivePropertyInfo), '("style", Gtk.Widget.WidgetStylePropertyInfo), '("submenu", MenuItemSubmenuPropertyInfo), '("tooltipMarkup", Gtk.Widget.WidgetTooltipMarkupPropertyInfo), '("tooltipText", Gtk.Widget.WidgetTooltipTextPropertyInfo), '("useActionAppearance", Gtk.Activatable.ActivatableUseActionAppearancePropertyInfo), '("useUnderline", MenuItemUseUnderlinePropertyInfo), '("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
menuItemAccelPath :: AttrLabelProxy "accelPath"
menuItemAccelPath = AttrLabelProxy
menuItemLabel :: AttrLabelProxy "label"
menuItemLabel = AttrLabelProxy
menuItemRightJustified :: AttrLabelProxy "rightJustified"
menuItemRightJustified = AttrLabelProxy
menuItemSubmenu :: AttrLabelProxy "submenu"
menuItemSubmenu = AttrLabelProxy
menuItemUseUnderline :: AttrLabelProxy "useUnderline"
menuItemUseUnderline = AttrLabelProxy
#endif
#if ENABLE_OVERLOADING
data MenuItemActivateSignalInfo
instance SignalInfo MenuItemActivateSignalInfo where
type HaskellCallbackType MenuItemActivateSignalInfo = MenuItemActivateCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_MenuItemActivateCallback cb
cb'' <- mk_MenuItemActivateCallback cb'
connectSignalFunPtr obj "activate" cb'' connectMode
data MenuItemActivateItemSignalInfo
instance SignalInfo MenuItemActivateItemSignalInfo where
type HaskellCallbackType MenuItemActivateItemSignalInfo = MenuItemActivateItemCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_MenuItemActivateItemCallback cb
cb'' <- mk_MenuItemActivateItemCallback cb'
connectSignalFunPtr obj "activate-item" cb'' connectMode
data MenuItemDeselectSignalInfo
instance SignalInfo MenuItemDeselectSignalInfo where
type HaskellCallbackType MenuItemDeselectSignalInfo = MenuItemDeselectCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_MenuItemDeselectCallback cb
cb'' <- mk_MenuItemDeselectCallback cb'
connectSignalFunPtr obj "deselect" cb'' connectMode
data MenuItemSelectSignalInfo
instance SignalInfo MenuItemSelectSignalInfo where
type HaskellCallbackType MenuItemSelectSignalInfo = MenuItemSelectCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_MenuItemSelectCallback cb
cb'' <- mk_MenuItemSelectCallback cb'
connectSignalFunPtr obj "select" cb'' connectMode
data MenuItemToggleSizeAllocateSignalInfo
instance SignalInfo MenuItemToggleSizeAllocateSignalInfo where
type HaskellCallbackType MenuItemToggleSizeAllocateSignalInfo = MenuItemToggleSizeAllocateCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_MenuItemToggleSizeAllocateCallback cb
cb'' <- mk_MenuItemToggleSizeAllocateCallback cb'
connectSignalFunPtr obj "toggle-size-allocate" cb'' connectMode
data MenuItemToggleSizeRequestSignalInfo
instance SignalInfo MenuItemToggleSizeRequestSignalInfo where
type HaskellCallbackType MenuItemToggleSizeRequestSignalInfo = MenuItemToggleSizeRequestCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_MenuItemToggleSizeRequestCallback cb
cb'' <- mk_MenuItemToggleSizeRequestCallback cb'
connectSignalFunPtr obj "toggle-size-request" cb'' connectMode
type instance O.SignalList MenuItem = MenuItemSignalList
type MenuItemSignalList = ('[ '("accelClosuresChanged", Gtk.Widget.WidgetAccelClosuresChangedSignalInfo), '("activate", MenuItemActivateSignalInfo), '("activateItem", MenuItemActivateItemSignalInfo), '("add", Gtk.Container.ContainerAddSignalInfo), '("buttonPressEvent", Gtk.Widget.WidgetButtonPressEventSignalInfo), '("buttonReleaseEvent", Gtk.Widget.WidgetButtonReleaseEventSignalInfo), '("canActivateAccel", Gtk.Widget.WidgetCanActivateAccelSignalInfo), '("checkResize", Gtk.Container.ContainerCheckResizeSignalInfo), '("childNotify", Gtk.Widget.WidgetChildNotifySignalInfo), '("compositedChanged", Gtk.Widget.WidgetCompositedChangedSignalInfo), '("configureEvent", Gtk.Widget.WidgetConfigureEventSignalInfo), '("damageEvent", Gtk.Widget.WidgetDamageEventSignalInfo), '("deleteEvent", Gtk.Widget.WidgetDeleteEventSignalInfo), '("deselect", MenuItemDeselectSignalInfo), '("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), '("keyPressEvent", Gtk.Widget.WidgetKeyPressEventSignalInfo), '("keyReleaseEvent", Gtk.Widget.WidgetKeyReleaseEventSignalInfo), '("keynavFailed", Gtk.Widget.WidgetKeynavFailedSignalInfo), '("leaveNotifyEvent", Gtk.Widget.WidgetLeaveNotifyEventSignalInfo), '("map", Gtk.Widget.WidgetMapSignalInfo), '("mapEvent", Gtk.Widget.WidgetMapEventSignalInfo), '("mnemonicActivate", Gtk.Widget.WidgetMnemonicActivateSignalInfo), '("motionNotifyEvent", Gtk.Widget.WidgetMotionNotifyEventSignalInfo), '("moveFocus", Gtk.Widget.WidgetMoveFocusSignalInfo), '("notify", GObject.Object.ObjectNotifySignalInfo), '("parentSet", Gtk.Widget.WidgetParentSetSignalInfo), '("popupMenu", Gtk.Widget.WidgetPopupMenuSignalInfo), '("propertyNotifyEvent", Gtk.Widget.WidgetPropertyNotifyEventSignalInfo), '("proximityInEvent", Gtk.Widget.WidgetProximityInEventSignalInfo), '("proximityOutEvent", Gtk.Widget.WidgetProximityOutEventSignalInfo), '("queryTooltip", Gtk.Widget.WidgetQueryTooltipSignalInfo), '("realize", Gtk.Widget.WidgetRealizeSignalInfo), '("remove", Gtk.Container.ContainerRemoveSignalInfo), '("screenChanged", Gtk.Widget.WidgetScreenChangedSignalInfo), '("scrollEvent", Gtk.Widget.WidgetScrollEventSignalInfo), '("select", MenuItemSelectSignalInfo), '("selectionClearEvent", Gtk.Widget.WidgetSelectionClearEventSignalInfo), '("selectionGet", Gtk.Widget.WidgetSelectionGetSignalInfo), '("selectionNotifyEvent", Gtk.Widget.WidgetSelectionNotifyEventSignalInfo), '("selectionReceived", Gtk.Widget.WidgetSelectionReceivedSignalInfo), '("selectionRequestEvent", Gtk.Widget.WidgetSelectionRequestEventSignalInfo), '("setFocusChild", Gtk.Container.ContainerSetFocusChildSignalInfo), '("show", Gtk.Widget.WidgetShowSignalInfo), '("showHelp", Gtk.Widget.WidgetShowHelpSignalInfo), '("sizeAllocate", Gtk.Widget.WidgetSizeAllocateSignalInfo), '("stateChanged", Gtk.Widget.WidgetStateChangedSignalInfo), '("stateFlagsChanged", Gtk.Widget.WidgetStateFlagsChangedSignalInfo), '("styleSet", Gtk.Widget.WidgetStyleSetSignalInfo), '("styleUpdated", Gtk.Widget.WidgetStyleUpdatedSignalInfo), '("toggleSizeAllocate", MenuItemToggleSizeAllocateSignalInfo), '("toggleSizeRequest", MenuItemToggleSizeRequestSignalInfo), '("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_item_new" gtk_menu_item_new ::
IO (Ptr MenuItem)
menuItemNew ::
(B.CallStack.HasCallStack, MonadIO m) =>
m MenuItem
menuItemNew = liftIO $ do
result <- gtk_menu_item_new
checkUnexpectedReturnNULL "menuItemNew" result
result' <- (newObject MenuItem) result
return result'
#if ENABLE_OVERLOADING
#endif
foreign import ccall "gtk_menu_item_new_with_label" gtk_menu_item_new_with_label ::
CString ->
IO (Ptr MenuItem)
menuItemNewWithLabel ::
(B.CallStack.HasCallStack, MonadIO m) =>
T.Text
-> m MenuItem
menuItemNewWithLabel label = liftIO $ do
label' <- textToCString label
result <- gtk_menu_item_new_with_label label'
checkUnexpectedReturnNULL "menuItemNewWithLabel" result
result' <- (newObject MenuItem) result
freeMem label'
return result'
#if ENABLE_OVERLOADING
#endif
foreign import ccall "gtk_menu_item_new_with_mnemonic" gtk_menu_item_new_with_mnemonic ::
CString ->
IO (Ptr MenuItem)
menuItemNewWithMnemonic ::
(B.CallStack.HasCallStack, MonadIO m) =>
T.Text
-> m MenuItem
menuItemNewWithMnemonic label = liftIO $ do
label' <- textToCString label
result <- gtk_menu_item_new_with_mnemonic label'
checkUnexpectedReturnNULL "menuItemNewWithMnemonic" result
result' <- (newObject MenuItem) result
freeMem label'
return result'
#if ENABLE_OVERLOADING
#endif
foreign import ccall "gtk_menu_item_activate" gtk_menu_item_activate ::
Ptr MenuItem ->
IO ()
menuItemActivate ::
(B.CallStack.HasCallStack, MonadIO m, IsMenuItem a) =>
a
-> m ()
menuItemActivate menuItem = liftIO $ do
menuItem' <- unsafeManagedPtrCastPtr menuItem
gtk_menu_item_activate menuItem'
touchManagedPtr menuItem
return ()
#if ENABLE_OVERLOADING
data MenuItemActivateMethodInfo
instance (signature ~ (m ()), MonadIO m, IsMenuItem a) => O.MethodInfo MenuItemActivateMethodInfo a signature where
overloadedMethod _ = menuItemActivate
#endif
foreign import ccall "gtk_menu_item_deselect" gtk_menu_item_deselect ::
Ptr MenuItem ->
IO ()
menuItemDeselect ::
(B.CallStack.HasCallStack, MonadIO m, IsMenuItem a) =>
a
-> m ()
menuItemDeselect menuItem = liftIO $ do
menuItem' <- unsafeManagedPtrCastPtr menuItem
gtk_menu_item_deselect menuItem'
touchManagedPtr menuItem
return ()
#if ENABLE_OVERLOADING
data MenuItemDeselectMethodInfo
instance (signature ~ (m ()), MonadIO m, IsMenuItem a) => O.MethodInfo MenuItemDeselectMethodInfo a signature where
overloadedMethod _ = menuItemDeselect
#endif
foreign import ccall "gtk_menu_item_get_accel_path" gtk_menu_item_get_accel_path ::
Ptr MenuItem ->
IO CString
menuItemGetAccelPath ::
(B.CallStack.HasCallStack, MonadIO m, IsMenuItem a) =>
a
-> m (Maybe T.Text)
menuItemGetAccelPath menuItem = liftIO $ do
menuItem' <- unsafeManagedPtrCastPtr menuItem
result <- gtk_menu_item_get_accel_path menuItem'
maybeResult <- convertIfNonNull result $ \result' -> do
result'' <- cstringToText result'
return result''
touchManagedPtr menuItem
return maybeResult
#if ENABLE_OVERLOADING
data MenuItemGetAccelPathMethodInfo
instance (signature ~ (m (Maybe T.Text)), MonadIO m, IsMenuItem a) => O.MethodInfo MenuItemGetAccelPathMethodInfo a signature where
overloadedMethod _ = menuItemGetAccelPath
#endif
foreign import ccall "gtk_menu_item_get_label" gtk_menu_item_get_label ::
Ptr MenuItem ->
IO CString
menuItemGetLabel ::
(B.CallStack.HasCallStack, MonadIO m, IsMenuItem a) =>
a
-> m T.Text
menuItemGetLabel menuItem = liftIO $ do
menuItem' <- unsafeManagedPtrCastPtr menuItem
result <- gtk_menu_item_get_label menuItem'
checkUnexpectedReturnNULL "menuItemGetLabel" result
result' <- cstringToText result
touchManagedPtr menuItem
return result'
#if ENABLE_OVERLOADING
data MenuItemGetLabelMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsMenuItem a) => O.MethodInfo MenuItemGetLabelMethodInfo a signature where
overloadedMethod _ = menuItemGetLabel
#endif
foreign import ccall "gtk_menu_item_get_reserve_indicator" gtk_menu_item_get_reserve_indicator ::
Ptr MenuItem ->
IO CInt
menuItemGetReserveIndicator ::
(B.CallStack.HasCallStack, MonadIO m, IsMenuItem a) =>
a
-> m Bool
menuItemGetReserveIndicator menuItem = liftIO $ do
menuItem' <- unsafeManagedPtrCastPtr menuItem
result <- gtk_menu_item_get_reserve_indicator menuItem'
let result' = (/= 0) result
touchManagedPtr menuItem
return result'
#if ENABLE_OVERLOADING
data MenuItemGetReserveIndicatorMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsMenuItem a) => O.MethodInfo MenuItemGetReserveIndicatorMethodInfo a signature where
overloadedMethod _ = menuItemGetReserveIndicator
#endif
foreign import ccall "gtk_menu_item_get_right_justified" gtk_menu_item_get_right_justified ::
Ptr MenuItem ->
IO CInt
{-# DEPRECATED menuItemGetRightJustified ["(Since version 3.2)","See 'GI.Gtk.Objects.MenuItem.menuItemSetRightJustified'"] #-}
menuItemGetRightJustified ::
(B.CallStack.HasCallStack, MonadIO m, IsMenuItem a) =>
a
-> m Bool
menuItemGetRightJustified menuItem = liftIO $ do
menuItem' <- unsafeManagedPtrCastPtr menuItem
result <- gtk_menu_item_get_right_justified menuItem'
let result' = (/= 0) result
touchManagedPtr menuItem
return result'
#if ENABLE_OVERLOADING
data MenuItemGetRightJustifiedMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsMenuItem a) => O.MethodInfo MenuItemGetRightJustifiedMethodInfo a signature where
overloadedMethod _ = menuItemGetRightJustified
#endif
foreign import ccall "gtk_menu_item_get_submenu" gtk_menu_item_get_submenu ::
Ptr MenuItem ->
IO (Ptr Gtk.Widget.Widget)
menuItemGetSubmenu ::
(B.CallStack.HasCallStack, MonadIO m, IsMenuItem a) =>
a
-> m (Maybe Gtk.Widget.Widget)
menuItemGetSubmenu menuItem = liftIO $ do
menuItem' <- unsafeManagedPtrCastPtr menuItem
result <- gtk_menu_item_get_submenu menuItem'
maybeResult <- convertIfNonNull result $ \result' -> do
result'' <- (newObject Gtk.Widget.Widget) result'
return result''
touchManagedPtr menuItem
return maybeResult
#if ENABLE_OVERLOADING
data MenuItemGetSubmenuMethodInfo
instance (signature ~ (m (Maybe Gtk.Widget.Widget)), MonadIO m, IsMenuItem a) => O.MethodInfo MenuItemGetSubmenuMethodInfo a signature where
overloadedMethod _ = menuItemGetSubmenu
#endif
foreign import ccall "gtk_menu_item_get_use_underline" gtk_menu_item_get_use_underline ::
Ptr MenuItem ->
IO CInt
menuItemGetUseUnderline ::
(B.CallStack.HasCallStack, MonadIO m, IsMenuItem a) =>
a
-> m Bool
menuItemGetUseUnderline menuItem = liftIO $ do
menuItem' <- unsafeManagedPtrCastPtr menuItem
result <- gtk_menu_item_get_use_underline menuItem'
let result' = (/= 0) result
touchManagedPtr menuItem
return result'
#if ENABLE_OVERLOADING
data MenuItemGetUseUnderlineMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsMenuItem a) => O.MethodInfo MenuItemGetUseUnderlineMethodInfo a signature where
overloadedMethod _ = menuItemGetUseUnderline
#endif
foreign import ccall "gtk_menu_item_select" gtk_menu_item_select ::
Ptr MenuItem ->
IO ()
menuItemSelect ::
(B.CallStack.HasCallStack, MonadIO m, IsMenuItem a) =>
a
-> m ()
menuItemSelect menuItem = liftIO $ do
menuItem' <- unsafeManagedPtrCastPtr menuItem
gtk_menu_item_select menuItem'
touchManagedPtr menuItem
return ()
#if ENABLE_OVERLOADING
data MenuItemSelectMethodInfo
instance (signature ~ (m ()), MonadIO m, IsMenuItem a) => O.MethodInfo MenuItemSelectMethodInfo a signature where
overloadedMethod _ = menuItemSelect
#endif
foreign import ccall "gtk_menu_item_set_accel_path" gtk_menu_item_set_accel_path ::
Ptr MenuItem ->
CString ->
IO ()
menuItemSetAccelPath ::
(B.CallStack.HasCallStack, MonadIO m, IsMenuItem a) =>
a
-> Maybe (T.Text)
-> m ()
menuItemSetAccelPath menuItem accelPath = liftIO $ do
menuItem' <- unsafeManagedPtrCastPtr menuItem
maybeAccelPath <- case accelPath of
Nothing -> return nullPtr
Just jAccelPath -> do
jAccelPath' <- textToCString jAccelPath
return jAccelPath'
gtk_menu_item_set_accel_path menuItem' maybeAccelPath
touchManagedPtr menuItem
freeMem maybeAccelPath
return ()
#if ENABLE_OVERLOADING
data MenuItemSetAccelPathMethodInfo
instance (signature ~ (Maybe (T.Text) -> m ()), MonadIO m, IsMenuItem a) => O.MethodInfo MenuItemSetAccelPathMethodInfo a signature where
overloadedMethod _ = menuItemSetAccelPath
#endif
foreign import ccall "gtk_menu_item_set_label" gtk_menu_item_set_label ::
Ptr MenuItem ->
CString ->
IO ()
menuItemSetLabel ::
(B.CallStack.HasCallStack, MonadIO m, IsMenuItem a) =>
a
-> T.Text
-> m ()
menuItemSetLabel menuItem label = liftIO $ do
menuItem' <- unsafeManagedPtrCastPtr menuItem
label' <- textToCString label
gtk_menu_item_set_label menuItem' label'
touchManagedPtr menuItem
freeMem label'
return ()
#if ENABLE_OVERLOADING
data MenuItemSetLabelMethodInfo
instance (signature ~ (T.Text -> m ()), MonadIO m, IsMenuItem a) => O.MethodInfo MenuItemSetLabelMethodInfo a signature where
overloadedMethod _ = menuItemSetLabel
#endif
foreign import ccall "gtk_menu_item_set_reserve_indicator" gtk_menu_item_set_reserve_indicator ::
Ptr MenuItem ->
CInt ->
IO ()
menuItemSetReserveIndicator ::
(B.CallStack.HasCallStack, MonadIO m, IsMenuItem a) =>
a
-> Bool
-> m ()
menuItemSetReserveIndicator menuItem reserve = liftIO $ do
menuItem' <- unsafeManagedPtrCastPtr menuItem
let reserve' = (fromIntegral . fromEnum) reserve
gtk_menu_item_set_reserve_indicator menuItem' reserve'
touchManagedPtr menuItem
return ()
#if ENABLE_OVERLOADING
data MenuItemSetReserveIndicatorMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsMenuItem a) => O.MethodInfo MenuItemSetReserveIndicatorMethodInfo a signature where
overloadedMethod _ = menuItemSetReserveIndicator
#endif
foreign import ccall "gtk_menu_item_set_right_justified" gtk_menu_item_set_right_justified ::
Ptr MenuItem ->
CInt ->
IO ()
{-# DEPRECATED menuItemSetRightJustified ["(Since version 3.2)","If you insist on using it, use"," 'GI.Gtk.Objects.Widget.widgetSetHexpand' and 'GI.Gtk.Objects.Widget.widgetSetHalign'."] #-}
menuItemSetRightJustified ::
(B.CallStack.HasCallStack, MonadIO m, IsMenuItem a) =>
a
-> Bool
-> m ()
menuItemSetRightJustified menuItem rightJustified = liftIO $ do
menuItem' <- unsafeManagedPtrCastPtr menuItem
let rightJustified' = (fromIntegral . fromEnum) rightJustified
gtk_menu_item_set_right_justified menuItem' rightJustified'
touchManagedPtr menuItem
return ()
#if ENABLE_OVERLOADING
data MenuItemSetRightJustifiedMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsMenuItem a) => O.MethodInfo MenuItemSetRightJustifiedMethodInfo a signature where
overloadedMethod _ = menuItemSetRightJustified
#endif
foreign import ccall "gtk_menu_item_set_submenu" gtk_menu_item_set_submenu ::
Ptr MenuItem ->
Ptr Gtk.Menu.Menu ->
IO ()
menuItemSetSubmenu ::
(B.CallStack.HasCallStack, MonadIO m, IsMenuItem a, Gtk.Menu.IsMenu b) =>
a
-> Maybe (b)
-> m ()
menuItemSetSubmenu menuItem submenu = liftIO $ do
menuItem' <- unsafeManagedPtrCastPtr menuItem
maybeSubmenu <- case submenu of
Nothing -> return nullPtr
Just jSubmenu -> do
jSubmenu' <- unsafeManagedPtrCastPtr jSubmenu
return jSubmenu'
gtk_menu_item_set_submenu menuItem' maybeSubmenu
touchManagedPtr menuItem
whenJust submenu touchManagedPtr
return ()
#if ENABLE_OVERLOADING
data MenuItemSetSubmenuMethodInfo
instance (signature ~ (Maybe (b) -> m ()), MonadIO m, IsMenuItem a, Gtk.Menu.IsMenu b) => O.MethodInfo MenuItemSetSubmenuMethodInfo a signature where
overloadedMethod _ = menuItemSetSubmenu
#endif
foreign import ccall "gtk_menu_item_set_use_underline" gtk_menu_item_set_use_underline ::
Ptr MenuItem ->
CInt ->
IO ()
menuItemSetUseUnderline ::
(B.CallStack.HasCallStack, MonadIO m, IsMenuItem a) =>
a
-> Bool
-> m ()
menuItemSetUseUnderline menuItem setting = liftIO $ do
menuItem' <- unsafeManagedPtrCastPtr menuItem
let setting' = (fromIntegral . fromEnum) setting
gtk_menu_item_set_use_underline menuItem' setting'
touchManagedPtr menuItem
return ()
#if ENABLE_OVERLOADING
data MenuItemSetUseUnderlineMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsMenuItem a) => O.MethodInfo MenuItemSetUseUnderlineMethodInfo a signature where
overloadedMethod _ = menuItemSetUseUnderline
#endif
foreign import ccall "gtk_menu_item_toggle_size_allocate" gtk_menu_item_toggle_size_allocate ::
Ptr MenuItem ->
Int32 ->
IO ()
menuItemToggleSizeAllocate ::
(B.CallStack.HasCallStack, MonadIO m, IsMenuItem a) =>
a
-> Int32
-> m ()
menuItemToggleSizeAllocate menuItem allocation = liftIO $ do
menuItem' <- unsafeManagedPtrCastPtr menuItem
gtk_menu_item_toggle_size_allocate menuItem' allocation
touchManagedPtr menuItem
return ()
#if ENABLE_OVERLOADING
data MenuItemToggleSizeAllocateMethodInfo
instance (signature ~ (Int32 -> m ()), MonadIO m, IsMenuItem a) => O.MethodInfo MenuItemToggleSizeAllocateMethodInfo a signature where
overloadedMethod _ = menuItemToggleSizeAllocate
#endif
foreign import ccall "gtk_menu_item_toggle_size_request" gtk_menu_item_toggle_size_request ::
Ptr MenuItem ->
Ptr Int32 ->
IO ()
menuItemToggleSizeRequest ::
(B.CallStack.HasCallStack, MonadIO m, IsMenuItem a) =>
a
-> Int32
-> m (Int32)
menuItemToggleSizeRequest menuItem requisition = liftIO $ do
menuItem' <- unsafeManagedPtrCastPtr menuItem
requisition' <- allocMem :: IO (Ptr Int32)
poke requisition' requisition
gtk_menu_item_toggle_size_request menuItem' requisition'
requisition'' <- peek requisition'
touchManagedPtr menuItem
freeMem requisition'
return requisition''
#if ENABLE_OVERLOADING
data MenuItemToggleSizeRequestMethodInfo
instance (signature ~ (Int32 -> m (Int32)), MonadIO m, IsMenuItem a) => O.MethodInfo MenuItemToggleSizeRequestMethodInfo a signature where
overloadedMethod _ = menuItemToggleSizeRequest
#endif