{-# LANGUAGE ImplicitParams, RankNTypes, TypeApplications #-}
#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.Gtk.Objects.ToolItem
(
ToolItem(..) ,
IsToolItem ,
toToolItem ,
#if defined(ENABLE_OVERLOADING)
ResolveToolItemMethod ,
#endif
#if defined(ENABLE_OVERLOADING)
ToolItemGetEllipsizeModeMethodInfo ,
#endif
toolItemGetEllipsizeMode ,
#if defined(ENABLE_OVERLOADING)
ToolItemGetExpandMethodInfo ,
#endif
toolItemGetExpand ,
#if defined(ENABLE_OVERLOADING)
ToolItemGetHomogeneousMethodInfo ,
#endif
toolItemGetHomogeneous ,
#if defined(ENABLE_OVERLOADING)
ToolItemGetIconSizeMethodInfo ,
#endif
toolItemGetIconSize ,
#if defined(ENABLE_OVERLOADING)
ToolItemGetIsImportantMethodInfo ,
#endif
toolItemGetIsImportant ,
#if defined(ENABLE_OVERLOADING)
ToolItemGetOrientationMethodInfo ,
#endif
toolItemGetOrientation ,
#if defined(ENABLE_OVERLOADING)
ToolItemGetProxyMenuItemMethodInfo ,
#endif
toolItemGetProxyMenuItem ,
#if defined(ENABLE_OVERLOADING)
ToolItemGetReliefStyleMethodInfo ,
#endif
toolItemGetReliefStyle ,
#if defined(ENABLE_OVERLOADING)
ToolItemGetTextAlignmentMethodInfo ,
#endif
toolItemGetTextAlignment ,
#if defined(ENABLE_OVERLOADING)
ToolItemGetTextOrientationMethodInfo ,
#endif
toolItemGetTextOrientation ,
#if defined(ENABLE_OVERLOADING)
ToolItemGetTextSizeGroupMethodInfo ,
#endif
toolItemGetTextSizeGroup ,
#if defined(ENABLE_OVERLOADING)
ToolItemGetToolbarStyleMethodInfo ,
#endif
toolItemGetToolbarStyle ,
#if defined(ENABLE_OVERLOADING)
ToolItemGetUseDragWindowMethodInfo ,
#endif
toolItemGetUseDragWindow ,
#if defined(ENABLE_OVERLOADING)
ToolItemGetVisibleHorizontalMethodInfo ,
#endif
toolItemGetVisibleHorizontal ,
#if defined(ENABLE_OVERLOADING)
ToolItemGetVisibleVerticalMethodInfo ,
#endif
toolItemGetVisibleVertical ,
toolItemNew ,
#if defined(ENABLE_OVERLOADING)
ToolItemRebuildMenuMethodInfo ,
#endif
toolItemRebuildMenu ,
#if defined(ENABLE_OVERLOADING)
ToolItemRetrieveProxyMenuItemMethodInfo ,
#endif
toolItemRetrieveProxyMenuItem ,
#if defined(ENABLE_OVERLOADING)
ToolItemSetExpandMethodInfo ,
#endif
toolItemSetExpand ,
#if defined(ENABLE_OVERLOADING)
ToolItemSetHomogeneousMethodInfo ,
#endif
toolItemSetHomogeneous ,
#if defined(ENABLE_OVERLOADING)
ToolItemSetIsImportantMethodInfo ,
#endif
toolItemSetIsImportant ,
#if defined(ENABLE_OVERLOADING)
ToolItemSetProxyMenuItemMethodInfo ,
#endif
toolItemSetProxyMenuItem ,
#if defined(ENABLE_OVERLOADING)
ToolItemSetTooltipMarkupMethodInfo ,
#endif
toolItemSetTooltipMarkup ,
#if defined(ENABLE_OVERLOADING)
ToolItemSetTooltipTextMethodInfo ,
#endif
toolItemSetTooltipText ,
#if defined(ENABLE_OVERLOADING)
ToolItemSetUseDragWindowMethodInfo ,
#endif
toolItemSetUseDragWindow ,
#if defined(ENABLE_OVERLOADING)
ToolItemSetVisibleHorizontalMethodInfo ,
#endif
toolItemSetVisibleHorizontal ,
#if defined(ENABLE_OVERLOADING)
ToolItemSetVisibleVerticalMethodInfo ,
#endif
toolItemSetVisibleVertical ,
#if defined(ENABLE_OVERLOADING)
ToolItemToolbarReconfiguredMethodInfo ,
#endif
toolItemToolbarReconfigured ,
#if defined(ENABLE_OVERLOADING)
ToolItemIsImportantPropertyInfo ,
#endif
constructToolItemIsImportant ,
getToolItemIsImportant ,
setToolItemIsImportant ,
#if defined(ENABLE_OVERLOADING)
toolItemIsImportant ,
#endif
#if defined(ENABLE_OVERLOADING)
ToolItemVisibleHorizontalPropertyInfo ,
#endif
constructToolItemVisibleHorizontal ,
getToolItemVisibleHorizontal ,
setToolItemVisibleHorizontal ,
#if defined(ENABLE_OVERLOADING)
toolItemVisibleHorizontal ,
#endif
#if defined(ENABLE_OVERLOADING)
ToolItemVisibleVerticalPropertyInfo ,
#endif
constructToolItemVisibleVertical ,
getToolItemVisibleVertical ,
setToolItemVisibleVertical ,
#if defined(ENABLE_OVERLOADING)
toolItemVisibleVertical ,
#endif
ToolItemCreateMenuProxyCallback ,
#if defined(ENABLE_OVERLOADING)
ToolItemCreateMenuProxySignalInfo ,
#endif
afterToolItemCreateMenuProxy ,
onToolItemCreateMenuProxy ,
ToolItemToolbarReconfiguredCallback ,
#if defined(ENABLE_OVERLOADING)
ToolItemToolbarReconfiguredSignalInfo ,
#endif
afterToolItemToolbarReconfigured ,
onToolItemToolbarReconfigured ,
) where
import Data.GI.Base.ShortPrelude
import qualified Data.GI.Base.ShortPrelude as SP
import qualified Data.GI.Base.Overloading as O
import qualified Prelude as P
import qualified Data.GI.Base.Attributes as GI.Attributes
import qualified Data.GI.Base.BasicTypes as B.Types
import qualified Data.GI.Base.ManagedPtr as B.ManagedPtr
import qualified Data.GI.Base.GArray as B.GArray
import qualified Data.GI.Base.GClosure as B.GClosure
import qualified Data.GI.Base.GError as B.GError
import qualified Data.GI.Base.GHashTable as B.GHT
import qualified Data.GI.Base.GVariant as B.GVariant
import qualified Data.GI.Base.GValue as B.GValue
import qualified Data.GI.Base.GParamSpec as B.GParamSpec
import qualified Data.GI.Base.CallStack as B.CallStack
import qualified Data.GI.Base.Properties as B.Properties
import qualified Data.GI.Base.Signals as B.Signals
import qualified Control.Monad.IO.Class as MIO
import qualified Data.Coerce as Coerce
import qualified Data.Text as T
import qualified Data.Kind as DK
import qualified Data.ByteString.Char8 as B
import qualified Data.Map as Map
import qualified Foreign.Ptr as FP
import qualified GHC.OverloadedLabels as OL
import qualified GHC.Records as R
import qualified GI.Atk.Interfaces.ImplementorIface as Atk.ImplementorIface
import qualified GI.GObject.Objects.Object as GObject.Object
import {-# SOURCE #-} qualified GI.Gtk.Enums as Gtk.Enums
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.SizeGroup as Gtk.SizeGroup
import {-# SOURCE #-} qualified GI.Gtk.Objects.Widget as Gtk.Widget
import qualified GI.Pango.Enums as Pango.Enums
newtype ToolItem = ToolItem (SP.ManagedPtr ToolItem)
deriving (ToolItem -> ToolItem -> Bool
(ToolItem -> ToolItem -> Bool)
-> (ToolItem -> ToolItem -> Bool) -> Eq ToolItem
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ToolItem -> ToolItem -> Bool
== :: ToolItem -> ToolItem -> Bool
$c/= :: ToolItem -> ToolItem -> Bool
/= :: ToolItem -> ToolItem -> Bool
Eq)
instance SP.ManagedPtrNewtype ToolItem where
toManagedPtr :: ToolItem -> ManagedPtr ToolItem
toManagedPtr (ToolItem ManagedPtr ToolItem
p) = ManagedPtr ToolItem
p
foreign import ccall "gtk_tool_item_get_type"
c_gtk_tool_item_get_type :: IO B.Types.GType
instance B.Types.TypedObject ToolItem where
glibType :: IO GType
glibType = IO GType
c_gtk_tool_item_get_type
instance B.Types.GObject ToolItem
class (SP.GObject o, O.IsDescendantOf ToolItem o) => IsToolItem o
instance (SP.GObject o, O.IsDescendantOf ToolItem o) => IsToolItem o
instance O.HasParentTypes ToolItem
type instance O.ParentTypes ToolItem = '[Gtk.Bin.Bin, Gtk.Container.Container, Gtk.Widget.Widget, GObject.Object.Object, Atk.ImplementorIface.ImplementorIface, Gtk.Activatable.Activatable, Gtk.Buildable.Buildable]
toToolItem :: (MIO.MonadIO m, IsToolItem o) => o -> m ToolItem
toToolItem :: forall (m :: * -> *) o.
(MonadIO m, IsToolItem o) =>
o -> m ToolItem
toToolItem = IO ToolItem -> m ToolItem
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO ToolItem -> m ToolItem)
-> (o -> IO ToolItem) -> o -> m ToolItem
forall b c a. (b -> c) -> (a -> b) -> a -> c
. (ManagedPtr ToolItem -> ToolItem) -> o -> IO ToolItem
forall o o'.
(HasCallStack, ManagedPtrNewtype o, TypedObject o,
ManagedPtrNewtype o', TypedObject o') =>
(ManagedPtr o' -> o') -> o -> IO o'
B.ManagedPtr.unsafeCastTo ManagedPtr ToolItem -> ToolItem
ToolItem
instance B.GValue.IsGValue (Maybe ToolItem) where
gvalueGType_ :: IO GType
gvalueGType_ = IO GType
c_gtk_tool_item_get_type
gvalueSet_ :: Ptr GValue -> Maybe ToolItem -> IO ()
gvalueSet_ Ptr GValue
gv Maybe ToolItem
P.Nothing = Ptr GValue -> Ptr ToolItem -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv (Ptr ToolItem
forall a. Ptr a
FP.nullPtr :: FP.Ptr ToolItem)
gvalueSet_ Ptr GValue
gv (P.Just ToolItem
obj) = ToolItem -> (Ptr ToolItem -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
B.ManagedPtr.withManagedPtr ToolItem
obj (Ptr GValue -> Ptr ToolItem -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv)
gvalueGet_ :: Ptr GValue -> IO (Maybe ToolItem)
gvalueGet_ Ptr GValue
gv = do
Ptr ToolItem
ptr <- Ptr GValue -> IO (Ptr ToolItem)
forall a. GObject a => Ptr GValue -> IO (Ptr a)
B.GValue.get_object Ptr GValue
gv :: IO (FP.Ptr ToolItem)
if Ptr ToolItem
ptr Ptr ToolItem -> Ptr ToolItem -> Bool
forall a. Eq a => a -> a -> Bool
/= Ptr ToolItem
forall a. Ptr a
FP.nullPtr
then ToolItem -> Maybe ToolItem
forall a. a -> Maybe a
P.Just (ToolItem -> Maybe ToolItem) -> IO ToolItem -> IO (Maybe ToolItem)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> (ManagedPtr ToolItem -> ToolItem) -> Ptr ToolItem -> IO ToolItem
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
B.ManagedPtr.newObject ManagedPtr ToolItem -> ToolItem
ToolItem Ptr ToolItem
ptr
else Maybe ToolItem -> IO (Maybe ToolItem)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe ToolItem
forall a. Maybe a
P.Nothing
#if defined(ENABLE_OVERLOADING)
type family ResolveToolItemMethod (t :: Symbol) (o :: DK.Type) :: DK.Type where
ResolveToolItemMethod "activate" o = Gtk.Widget.WidgetActivateMethodInfo
ResolveToolItemMethod "add" o = Gtk.Container.ContainerAddMethodInfo
ResolveToolItemMethod "addAccelerator" o = Gtk.Widget.WidgetAddAcceleratorMethodInfo
ResolveToolItemMethod "addChild" o = Gtk.Buildable.BuildableAddChildMethodInfo
ResolveToolItemMethod "addDeviceEvents" o = Gtk.Widget.WidgetAddDeviceEventsMethodInfo
ResolveToolItemMethod "addEvents" o = Gtk.Widget.WidgetAddEventsMethodInfo
ResolveToolItemMethod "addMnemonicLabel" o = Gtk.Widget.WidgetAddMnemonicLabelMethodInfo
ResolveToolItemMethod "addTickCallback" o = Gtk.Widget.WidgetAddTickCallbackMethodInfo
ResolveToolItemMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolveToolItemMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolveToolItemMethod "canActivateAccel" o = Gtk.Widget.WidgetCanActivateAccelMethodInfo
ResolveToolItemMethod "checkResize" o = Gtk.Container.ContainerCheckResizeMethodInfo
ResolveToolItemMethod "childFocus" o = Gtk.Widget.WidgetChildFocusMethodInfo
ResolveToolItemMethod "childGetProperty" o = Gtk.Container.ContainerChildGetPropertyMethodInfo
ResolveToolItemMethod "childNotify" o = Gtk.Container.ContainerChildNotifyMethodInfo
ResolveToolItemMethod "childNotifyByPspec" o = Gtk.Container.ContainerChildNotifyByPspecMethodInfo
ResolveToolItemMethod "childSetProperty" o = Gtk.Container.ContainerChildSetPropertyMethodInfo
ResolveToolItemMethod "childType" o = Gtk.Container.ContainerChildTypeMethodInfo
ResolveToolItemMethod "classPath" o = Gtk.Widget.WidgetClassPathMethodInfo
ResolveToolItemMethod "computeExpand" o = Gtk.Widget.WidgetComputeExpandMethodInfo
ResolveToolItemMethod "constructChild" o = Gtk.Buildable.BuildableConstructChildMethodInfo
ResolveToolItemMethod "createPangoContext" o = Gtk.Widget.WidgetCreatePangoContextMethodInfo
ResolveToolItemMethod "createPangoLayout" o = Gtk.Widget.WidgetCreatePangoLayoutMethodInfo
ResolveToolItemMethod "customFinished" o = Gtk.Buildable.BuildableCustomFinishedMethodInfo
ResolveToolItemMethod "customTagEnd" o = Gtk.Buildable.BuildableCustomTagEndMethodInfo
ResolveToolItemMethod "customTagStart" o = Gtk.Buildable.BuildableCustomTagStartMethodInfo
ResolveToolItemMethod "destroy" o = Gtk.Widget.WidgetDestroyMethodInfo
ResolveToolItemMethod "destroyed" o = Gtk.Widget.WidgetDestroyedMethodInfo
ResolveToolItemMethod "deviceIsShadowed" o = Gtk.Widget.WidgetDeviceIsShadowedMethodInfo
ResolveToolItemMethod "doSetRelatedAction" o = Gtk.Activatable.ActivatableDoSetRelatedActionMethodInfo
ResolveToolItemMethod "dragBegin" o = Gtk.Widget.WidgetDragBeginMethodInfo
ResolveToolItemMethod "dragBeginWithCoordinates" o = Gtk.Widget.WidgetDragBeginWithCoordinatesMethodInfo
ResolveToolItemMethod "dragCheckThreshold" o = Gtk.Widget.WidgetDragCheckThresholdMethodInfo
ResolveToolItemMethod "dragDestAddImageTargets" o = Gtk.Widget.WidgetDragDestAddImageTargetsMethodInfo
ResolveToolItemMethod "dragDestAddTextTargets" o = Gtk.Widget.WidgetDragDestAddTextTargetsMethodInfo
ResolveToolItemMethod "dragDestAddUriTargets" o = Gtk.Widget.WidgetDragDestAddUriTargetsMethodInfo
ResolveToolItemMethod "dragDestFindTarget" o = Gtk.Widget.WidgetDragDestFindTargetMethodInfo
ResolveToolItemMethod "dragDestGetTargetList" o = Gtk.Widget.WidgetDragDestGetTargetListMethodInfo
ResolveToolItemMethod "dragDestGetTrackMotion" o = Gtk.Widget.WidgetDragDestGetTrackMotionMethodInfo
ResolveToolItemMethod "dragDestSet" o = Gtk.Widget.WidgetDragDestSetMethodInfo
ResolveToolItemMethod "dragDestSetProxy" o = Gtk.Widget.WidgetDragDestSetProxyMethodInfo
ResolveToolItemMethod "dragDestSetTargetList" o = Gtk.Widget.WidgetDragDestSetTargetListMethodInfo
ResolveToolItemMethod "dragDestSetTrackMotion" o = Gtk.Widget.WidgetDragDestSetTrackMotionMethodInfo
ResolveToolItemMethod "dragDestUnset" o = Gtk.Widget.WidgetDragDestUnsetMethodInfo
ResolveToolItemMethod "dragGetData" o = Gtk.Widget.WidgetDragGetDataMethodInfo
ResolveToolItemMethod "dragHighlight" o = Gtk.Widget.WidgetDragHighlightMethodInfo
ResolveToolItemMethod "dragSourceAddImageTargets" o = Gtk.Widget.WidgetDragSourceAddImageTargetsMethodInfo
ResolveToolItemMethod "dragSourceAddTextTargets" o = Gtk.Widget.WidgetDragSourceAddTextTargetsMethodInfo
ResolveToolItemMethod "dragSourceAddUriTargets" o = Gtk.Widget.WidgetDragSourceAddUriTargetsMethodInfo
ResolveToolItemMethod "dragSourceGetTargetList" o = Gtk.Widget.WidgetDragSourceGetTargetListMethodInfo
ResolveToolItemMethod "dragSourceSet" o = Gtk.Widget.WidgetDragSourceSetMethodInfo
ResolveToolItemMethod "dragSourceSetIconGicon" o = Gtk.Widget.WidgetDragSourceSetIconGiconMethodInfo
ResolveToolItemMethod "dragSourceSetIconName" o = Gtk.Widget.WidgetDragSourceSetIconNameMethodInfo
ResolveToolItemMethod "dragSourceSetIconPixbuf" o = Gtk.Widget.WidgetDragSourceSetIconPixbufMethodInfo
ResolveToolItemMethod "dragSourceSetIconStock" o = Gtk.Widget.WidgetDragSourceSetIconStockMethodInfo
ResolveToolItemMethod "dragSourceSetTargetList" o = Gtk.Widget.WidgetDragSourceSetTargetListMethodInfo
ResolveToolItemMethod "dragSourceUnset" o = Gtk.Widget.WidgetDragSourceUnsetMethodInfo
ResolveToolItemMethod "dragUnhighlight" o = Gtk.Widget.WidgetDragUnhighlightMethodInfo
ResolveToolItemMethod "draw" o = Gtk.Widget.WidgetDrawMethodInfo
ResolveToolItemMethod "ensureStyle" o = Gtk.Widget.WidgetEnsureStyleMethodInfo
ResolveToolItemMethod "errorBell" o = Gtk.Widget.WidgetErrorBellMethodInfo
ResolveToolItemMethod "event" o = Gtk.Widget.WidgetEventMethodInfo
ResolveToolItemMethod "forall" o = Gtk.Container.ContainerForallMethodInfo
ResolveToolItemMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolveToolItemMethod "foreach" o = Gtk.Container.ContainerForeachMethodInfo
ResolveToolItemMethod "freezeChildNotify" o = Gtk.Widget.WidgetFreezeChildNotifyMethodInfo
ResolveToolItemMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolveToolItemMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
ResolveToolItemMethod "grabAdd" o = Gtk.Widget.WidgetGrabAddMethodInfo
ResolveToolItemMethod "grabDefault" o = Gtk.Widget.WidgetGrabDefaultMethodInfo
ResolveToolItemMethod "grabFocus" o = Gtk.Widget.WidgetGrabFocusMethodInfo
ResolveToolItemMethod "grabRemove" o = Gtk.Widget.WidgetGrabRemoveMethodInfo
ResolveToolItemMethod "hasDefault" o = Gtk.Widget.WidgetHasDefaultMethodInfo
ResolveToolItemMethod "hasFocus" o = Gtk.Widget.WidgetHasFocusMethodInfo
ResolveToolItemMethod "hasGrab" o = Gtk.Widget.WidgetHasGrabMethodInfo
ResolveToolItemMethod "hasRcStyle" o = Gtk.Widget.WidgetHasRcStyleMethodInfo
ResolveToolItemMethod "hasScreen" o = Gtk.Widget.WidgetHasScreenMethodInfo
ResolveToolItemMethod "hasVisibleFocus" o = Gtk.Widget.WidgetHasVisibleFocusMethodInfo
ResolveToolItemMethod "hide" o = Gtk.Widget.WidgetHideMethodInfo
ResolveToolItemMethod "hideOnDelete" o = Gtk.Widget.WidgetHideOnDeleteMethodInfo
ResolveToolItemMethod "inDestruction" o = Gtk.Widget.WidgetInDestructionMethodInfo
ResolveToolItemMethod "initTemplate" o = Gtk.Widget.WidgetInitTemplateMethodInfo
ResolveToolItemMethod "inputShapeCombineRegion" o = Gtk.Widget.WidgetInputShapeCombineRegionMethodInfo
ResolveToolItemMethod "insertActionGroup" o = Gtk.Widget.WidgetInsertActionGroupMethodInfo
ResolveToolItemMethod "intersect" o = Gtk.Widget.WidgetIntersectMethodInfo
ResolveToolItemMethod "isAncestor" o = Gtk.Widget.WidgetIsAncestorMethodInfo
ResolveToolItemMethod "isComposited" o = Gtk.Widget.WidgetIsCompositedMethodInfo
ResolveToolItemMethod "isDrawable" o = Gtk.Widget.WidgetIsDrawableMethodInfo
ResolveToolItemMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolveToolItemMethod "isFocus" o = Gtk.Widget.WidgetIsFocusMethodInfo
ResolveToolItemMethod "isSensitive" o = Gtk.Widget.WidgetIsSensitiveMethodInfo
ResolveToolItemMethod "isToplevel" o = Gtk.Widget.WidgetIsToplevelMethodInfo
ResolveToolItemMethod "isVisible" o = Gtk.Widget.WidgetIsVisibleMethodInfo
ResolveToolItemMethod "keynavFailed" o = Gtk.Widget.WidgetKeynavFailedMethodInfo
ResolveToolItemMethod "listAccelClosures" o = Gtk.Widget.WidgetListAccelClosuresMethodInfo
ResolveToolItemMethod "listActionPrefixes" o = Gtk.Widget.WidgetListActionPrefixesMethodInfo
ResolveToolItemMethod "listMnemonicLabels" o = Gtk.Widget.WidgetListMnemonicLabelsMethodInfo
ResolveToolItemMethod "map" o = Gtk.Widget.WidgetMapMethodInfo
ResolveToolItemMethod "mnemonicActivate" o = Gtk.Widget.WidgetMnemonicActivateMethodInfo
ResolveToolItemMethod "modifyBase" o = Gtk.Widget.WidgetModifyBaseMethodInfo
ResolveToolItemMethod "modifyBg" o = Gtk.Widget.WidgetModifyBgMethodInfo
ResolveToolItemMethod "modifyCursor" o = Gtk.Widget.WidgetModifyCursorMethodInfo
ResolveToolItemMethod "modifyFg" o = Gtk.Widget.WidgetModifyFgMethodInfo
ResolveToolItemMethod "modifyFont" o = Gtk.Widget.WidgetModifyFontMethodInfo
ResolveToolItemMethod "modifyStyle" o = Gtk.Widget.WidgetModifyStyleMethodInfo
ResolveToolItemMethod "modifyText" o = Gtk.Widget.WidgetModifyTextMethodInfo
ResolveToolItemMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolveToolItemMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolveToolItemMethod "overrideBackgroundColor" o = Gtk.Widget.WidgetOverrideBackgroundColorMethodInfo
ResolveToolItemMethod "overrideColor" o = Gtk.Widget.WidgetOverrideColorMethodInfo
ResolveToolItemMethod "overrideCursor" o = Gtk.Widget.WidgetOverrideCursorMethodInfo
ResolveToolItemMethod "overrideFont" o = Gtk.Widget.WidgetOverrideFontMethodInfo
ResolveToolItemMethod "overrideSymbolicColor" o = Gtk.Widget.WidgetOverrideSymbolicColorMethodInfo
ResolveToolItemMethod "parserFinished" o = Gtk.Buildable.BuildableParserFinishedMethodInfo
ResolveToolItemMethod "path" o = Gtk.Widget.WidgetPathMethodInfo
ResolveToolItemMethod "propagateDraw" o = Gtk.Container.ContainerPropagateDrawMethodInfo
ResolveToolItemMethod "queueAllocate" o = Gtk.Widget.WidgetQueueAllocateMethodInfo
ResolveToolItemMethod "queueComputeExpand" o = Gtk.Widget.WidgetQueueComputeExpandMethodInfo
ResolveToolItemMethod "queueDraw" o = Gtk.Widget.WidgetQueueDrawMethodInfo
ResolveToolItemMethod "queueDrawArea" o = Gtk.Widget.WidgetQueueDrawAreaMethodInfo
ResolveToolItemMethod "queueDrawRegion" o = Gtk.Widget.WidgetQueueDrawRegionMethodInfo
ResolveToolItemMethod "queueResize" o = Gtk.Widget.WidgetQueueResizeMethodInfo
ResolveToolItemMethod "queueResizeNoRedraw" o = Gtk.Widget.WidgetQueueResizeNoRedrawMethodInfo
ResolveToolItemMethod "realize" o = Gtk.Widget.WidgetRealizeMethodInfo
ResolveToolItemMethod "rebuildMenu" o = ToolItemRebuildMenuMethodInfo
ResolveToolItemMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolveToolItemMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolveToolItemMethod "regionIntersect" o = Gtk.Widget.WidgetRegionIntersectMethodInfo
ResolveToolItemMethod "registerWindow" o = Gtk.Widget.WidgetRegisterWindowMethodInfo
ResolveToolItemMethod "remove" o = Gtk.Container.ContainerRemoveMethodInfo
ResolveToolItemMethod "removeAccelerator" o = Gtk.Widget.WidgetRemoveAcceleratorMethodInfo
ResolveToolItemMethod "removeMnemonicLabel" o = Gtk.Widget.WidgetRemoveMnemonicLabelMethodInfo
ResolveToolItemMethod "removeTickCallback" o = Gtk.Widget.WidgetRemoveTickCallbackMethodInfo
ResolveToolItemMethod "renderIcon" o = Gtk.Widget.WidgetRenderIconMethodInfo
ResolveToolItemMethod "renderIconPixbuf" o = Gtk.Widget.WidgetRenderIconPixbufMethodInfo
ResolveToolItemMethod "reparent" o = Gtk.Widget.WidgetReparentMethodInfo
ResolveToolItemMethod "resetRcStyles" o = Gtk.Widget.WidgetResetRcStylesMethodInfo
ResolveToolItemMethod "resetStyle" o = Gtk.Widget.WidgetResetStyleMethodInfo
ResolveToolItemMethod "resizeChildren" o = Gtk.Container.ContainerResizeChildrenMethodInfo
ResolveToolItemMethod "retrieveProxyMenuItem" o = ToolItemRetrieveProxyMenuItemMethodInfo
ResolveToolItemMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolveToolItemMethod "sendExpose" o = Gtk.Widget.WidgetSendExposeMethodInfo
ResolveToolItemMethod "sendFocusChange" o = Gtk.Widget.WidgetSendFocusChangeMethodInfo
ResolveToolItemMethod "shapeCombineRegion" o = Gtk.Widget.WidgetShapeCombineRegionMethodInfo
ResolveToolItemMethod "show" o = Gtk.Widget.WidgetShowMethodInfo
ResolveToolItemMethod "showAll" o = Gtk.Widget.WidgetShowAllMethodInfo
ResolveToolItemMethod "showNow" o = Gtk.Widget.WidgetShowNowMethodInfo
ResolveToolItemMethod "sizeAllocate" o = Gtk.Widget.WidgetSizeAllocateMethodInfo
ResolveToolItemMethod "sizeAllocateWithBaseline" o = Gtk.Widget.WidgetSizeAllocateWithBaselineMethodInfo
ResolveToolItemMethod "sizeRequest" o = Gtk.Widget.WidgetSizeRequestMethodInfo
ResolveToolItemMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolveToolItemMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolveToolItemMethod "styleAttach" o = Gtk.Widget.WidgetStyleAttachMethodInfo
ResolveToolItemMethod "styleGetProperty" o = Gtk.Widget.WidgetStyleGetPropertyMethodInfo
ResolveToolItemMethod "syncActionProperties" o = Gtk.Activatable.ActivatableSyncActionPropertiesMethodInfo
ResolveToolItemMethod "thawChildNotify" o = Gtk.Widget.WidgetThawChildNotifyMethodInfo
ResolveToolItemMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolveToolItemMethod "toolbarReconfigured" o = ToolItemToolbarReconfiguredMethodInfo
ResolveToolItemMethod "translateCoordinates" o = Gtk.Widget.WidgetTranslateCoordinatesMethodInfo
ResolveToolItemMethod "triggerTooltipQuery" o = Gtk.Widget.WidgetTriggerTooltipQueryMethodInfo
ResolveToolItemMethod "unmap" o = Gtk.Widget.WidgetUnmapMethodInfo
ResolveToolItemMethod "unparent" o = Gtk.Widget.WidgetUnparentMethodInfo
ResolveToolItemMethod "unrealize" o = Gtk.Widget.WidgetUnrealizeMethodInfo
ResolveToolItemMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolveToolItemMethod "unregisterWindow" o = Gtk.Widget.WidgetUnregisterWindowMethodInfo
ResolveToolItemMethod "unsetFocusChain" o = Gtk.Container.ContainerUnsetFocusChainMethodInfo
ResolveToolItemMethod "unsetStateFlags" o = Gtk.Widget.WidgetUnsetStateFlagsMethodInfo
ResolveToolItemMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolveToolItemMethod "getAccessible" o = Gtk.Widget.WidgetGetAccessibleMethodInfo
ResolveToolItemMethod "getActionGroup" o = Gtk.Widget.WidgetGetActionGroupMethodInfo
ResolveToolItemMethod "getAllocatedBaseline" o = Gtk.Widget.WidgetGetAllocatedBaselineMethodInfo
ResolveToolItemMethod "getAllocatedHeight" o = Gtk.Widget.WidgetGetAllocatedHeightMethodInfo
ResolveToolItemMethod "getAllocatedSize" o = Gtk.Widget.WidgetGetAllocatedSizeMethodInfo
ResolveToolItemMethod "getAllocatedWidth" o = Gtk.Widget.WidgetGetAllocatedWidthMethodInfo
ResolveToolItemMethod "getAllocation" o = Gtk.Widget.WidgetGetAllocationMethodInfo
ResolveToolItemMethod "getAncestor" o = Gtk.Widget.WidgetGetAncestorMethodInfo
ResolveToolItemMethod "getAppPaintable" o = Gtk.Widget.WidgetGetAppPaintableMethodInfo
ResolveToolItemMethod "getBorderWidth" o = Gtk.Container.ContainerGetBorderWidthMethodInfo
ResolveToolItemMethod "getCanDefault" o = Gtk.Widget.WidgetGetCanDefaultMethodInfo
ResolveToolItemMethod "getCanFocus" o = Gtk.Widget.WidgetGetCanFocusMethodInfo
ResolveToolItemMethod "getChild" o = Gtk.Bin.BinGetChildMethodInfo
ResolveToolItemMethod "getChildRequisition" o = Gtk.Widget.WidgetGetChildRequisitionMethodInfo
ResolveToolItemMethod "getChildVisible" o = Gtk.Widget.WidgetGetChildVisibleMethodInfo
ResolveToolItemMethod "getChildren" o = Gtk.Container.ContainerGetChildrenMethodInfo
ResolveToolItemMethod "getClip" o = Gtk.Widget.WidgetGetClipMethodInfo
ResolveToolItemMethod "getClipboard" o = Gtk.Widget.WidgetGetClipboardMethodInfo
ResolveToolItemMethod "getCompositeName" o = Gtk.Widget.WidgetGetCompositeNameMethodInfo
ResolveToolItemMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolveToolItemMethod "getDeviceEnabled" o = Gtk.Widget.WidgetGetDeviceEnabledMethodInfo
ResolveToolItemMethod "getDeviceEvents" o = Gtk.Widget.WidgetGetDeviceEventsMethodInfo
ResolveToolItemMethod "getDirection" o = Gtk.Widget.WidgetGetDirectionMethodInfo
ResolveToolItemMethod "getDisplay" o = Gtk.Widget.WidgetGetDisplayMethodInfo
ResolveToolItemMethod "getDoubleBuffered" o = Gtk.Widget.WidgetGetDoubleBufferedMethodInfo
ResolveToolItemMethod "getEllipsizeMode" o = ToolItemGetEllipsizeModeMethodInfo
ResolveToolItemMethod "getEvents" o = Gtk.Widget.WidgetGetEventsMethodInfo
ResolveToolItemMethod "getExpand" o = ToolItemGetExpandMethodInfo
ResolveToolItemMethod "getFocusChain" o = Gtk.Container.ContainerGetFocusChainMethodInfo
ResolveToolItemMethod "getFocusChild" o = Gtk.Container.ContainerGetFocusChildMethodInfo
ResolveToolItemMethod "getFocusHadjustment" o = Gtk.Container.ContainerGetFocusHadjustmentMethodInfo
ResolveToolItemMethod "getFocusOnClick" o = Gtk.Widget.WidgetGetFocusOnClickMethodInfo
ResolveToolItemMethod "getFocusVadjustment" o = Gtk.Container.ContainerGetFocusVadjustmentMethodInfo
ResolveToolItemMethod "getFontMap" o = Gtk.Widget.WidgetGetFontMapMethodInfo
ResolveToolItemMethod "getFontOptions" o = Gtk.Widget.WidgetGetFontOptionsMethodInfo
ResolveToolItemMethod "getFrameClock" o = Gtk.Widget.WidgetGetFrameClockMethodInfo
ResolveToolItemMethod "getHalign" o = Gtk.Widget.WidgetGetHalignMethodInfo
ResolveToolItemMethod "getHasTooltip" o = Gtk.Widget.WidgetGetHasTooltipMethodInfo
ResolveToolItemMethod "getHasWindow" o = Gtk.Widget.WidgetGetHasWindowMethodInfo
ResolveToolItemMethod "getHexpand" o = Gtk.Widget.WidgetGetHexpandMethodInfo
ResolveToolItemMethod "getHexpandSet" o = Gtk.Widget.WidgetGetHexpandSetMethodInfo
ResolveToolItemMethod "getHomogeneous" o = ToolItemGetHomogeneousMethodInfo
ResolveToolItemMethod "getIconSize" o = ToolItemGetIconSizeMethodInfo
ResolveToolItemMethod "getInternalChild" o = Gtk.Buildable.BuildableGetInternalChildMethodInfo
ResolveToolItemMethod "getIsImportant" o = ToolItemGetIsImportantMethodInfo
ResolveToolItemMethod "getMapped" o = Gtk.Widget.WidgetGetMappedMethodInfo
ResolveToolItemMethod "getMarginBottom" o = Gtk.Widget.WidgetGetMarginBottomMethodInfo
ResolveToolItemMethod "getMarginEnd" o = Gtk.Widget.WidgetGetMarginEndMethodInfo
ResolveToolItemMethod "getMarginLeft" o = Gtk.Widget.WidgetGetMarginLeftMethodInfo
ResolveToolItemMethod "getMarginRight" o = Gtk.Widget.WidgetGetMarginRightMethodInfo
ResolveToolItemMethod "getMarginStart" o = Gtk.Widget.WidgetGetMarginStartMethodInfo
ResolveToolItemMethod "getMarginTop" o = Gtk.Widget.WidgetGetMarginTopMethodInfo
ResolveToolItemMethod "getModifierMask" o = Gtk.Widget.WidgetGetModifierMaskMethodInfo
ResolveToolItemMethod "getModifierStyle" o = Gtk.Widget.WidgetGetModifierStyleMethodInfo
ResolveToolItemMethod "getName" o = Gtk.Widget.WidgetGetNameMethodInfo
ResolveToolItemMethod "getNoShowAll" o = Gtk.Widget.WidgetGetNoShowAllMethodInfo
ResolveToolItemMethod "getOpacity" o = Gtk.Widget.WidgetGetOpacityMethodInfo
ResolveToolItemMethod "getOrientation" o = ToolItemGetOrientationMethodInfo
ResolveToolItemMethod "getPangoContext" o = Gtk.Widget.WidgetGetPangoContextMethodInfo
ResolveToolItemMethod "getParent" o = Gtk.Widget.WidgetGetParentMethodInfo
ResolveToolItemMethod "getParentWindow" o = Gtk.Widget.WidgetGetParentWindowMethodInfo
ResolveToolItemMethod "getPath" o = Gtk.Widget.WidgetGetPathMethodInfo
ResolveToolItemMethod "getPathForChild" o = Gtk.Container.ContainerGetPathForChildMethodInfo
ResolveToolItemMethod "getPointer" o = Gtk.Widget.WidgetGetPointerMethodInfo
ResolveToolItemMethod "getPreferredHeight" o = Gtk.Widget.WidgetGetPreferredHeightMethodInfo
ResolveToolItemMethod "getPreferredHeightAndBaselineForWidth" o = Gtk.Widget.WidgetGetPreferredHeightAndBaselineForWidthMethodInfo
ResolveToolItemMethod "getPreferredHeightForWidth" o = Gtk.Widget.WidgetGetPreferredHeightForWidthMethodInfo
ResolveToolItemMethod "getPreferredSize" o = Gtk.Widget.WidgetGetPreferredSizeMethodInfo
ResolveToolItemMethod "getPreferredWidth" o = Gtk.Widget.WidgetGetPreferredWidthMethodInfo
ResolveToolItemMethod "getPreferredWidthForHeight" o = Gtk.Widget.WidgetGetPreferredWidthForHeightMethodInfo
ResolveToolItemMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolveToolItemMethod "getProxyMenuItem" o = ToolItemGetProxyMenuItemMethodInfo
ResolveToolItemMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolveToolItemMethod "getRealized" o = Gtk.Widget.WidgetGetRealizedMethodInfo
ResolveToolItemMethod "getReceivesDefault" o = Gtk.Widget.WidgetGetReceivesDefaultMethodInfo
ResolveToolItemMethod "getRelatedAction" o = Gtk.Activatable.ActivatableGetRelatedActionMethodInfo
ResolveToolItemMethod "getReliefStyle" o = ToolItemGetReliefStyleMethodInfo
ResolveToolItemMethod "getRequestMode" o = Gtk.Widget.WidgetGetRequestModeMethodInfo
ResolveToolItemMethod "getRequisition" o = Gtk.Widget.WidgetGetRequisitionMethodInfo
ResolveToolItemMethod "getResizeMode" o = Gtk.Container.ContainerGetResizeModeMethodInfo
ResolveToolItemMethod "getRootWindow" o = Gtk.Widget.WidgetGetRootWindowMethodInfo
ResolveToolItemMethod "getScaleFactor" o = Gtk.Widget.WidgetGetScaleFactorMethodInfo
ResolveToolItemMethod "getScreen" o = Gtk.Widget.WidgetGetScreenMethodInfo
ResolveToolItemMethod "getSensitive" o = Gtk.Widget.WidgetGetSensitiveMethodInfo
ResolveToolItemMethod "getSettings" o = Gtk.Widget.WidgetGetSettingsMethodInfo
ResolveToolItemMethod "getSizeRequest" o = Gtk.Widget.WidgetGetSizeRequestMethodInfo
ResolveToolItemMethod "getState" o = Gtk.Widget.WidgetGetStateMethodInfo
ResolveToolItemMethod "getStateFlags" o = Gtk.Widget.WidgetGetStateFlagsMethodInfo
ResolveToolItemMethod "getStyle" o = Gtk.Widget.WidgetGetStyleMethodInfo
ResolveToolItemMethod "getStyleContext" o = Gtk.Widget.WidgetGetStyleContextMethodInfo
ResolveToolItemMethod "getSupportMultidevice" o = Gtk.Widget.WidgetGetSupportMultideviceMethodInfo
ResolveToolItemMethod "getTemplateChild" o = Gtk.Widget.WidgetGetTemplateChildMethodInfo
ResolveToolItemMethod "getTextAlignment" o = ToolItemGetTextAlignmentMethodInfo
ResolveToolItemMethod "getTextOrientation" o = ToolItemGetTextOrientationMethodInfo
ResolveToolItemMethod "getTextSizeGroup" o = ToolItemGetTextSizeGroupMethodInfo
ResolveToolItemMethod "getToolbarStyle" o = ToolItemGetToolbarStyleMethodInfo
ResolveToolItemMethod "getTooltipMarkup" o = Gtk.Widget.WidgetGetTooltipMarkupMethodInfo
ResolveToolItemMethod "getTooltipText" o = Gtk.Widget.WidgetGetTooltipTextMethodInfo
ResolveToolItemMethod "getTooltipWindow" o = Gtk.Widget.WidgetGetTooltipWindowMethodInfo
ResolveToolItemMethod "getToplevel" o = Gtk.Widget.WidgetGetToplevelMethodInfo
ResolveToolItemMethod "getUseActionAppearance" o = Gtk.Activatable.ActivatableGetUseActionAppearanceMethodInfo
ResolveToolItemMethod "getUseDragWindow" o = ToolItemGetUseDragWindowMethodInfo
ResolveToolItemMethod "getValign" o = Gtk.Widget.WidgetGetValignMethodInfo
ResolveToolItemMethod "getValignWithBaseline" o = Gtk.Widget.WidgetGetValignWithBaselineMethodInfo
ResolveToolItemMethod "getVexpand" o = Gtk.Widget.WidgetGetVexpandMethodInfo
ResolveToolItemMethod "getVexpandSet" o = Gtk.Widget.WidgetGetVexpandSetMethodInfo
ResolveToolItemMethod "getVisible" o = Gtk.Widget.WidgetGetVisibleMethodInfo
ResolveToolItemMethod "getVisibleHorizontal" o = ToolItemGetVisibleHorizontalMethodInfo
ResolveToolItemMethod "getVisibleVertical" o = ToolItemGetVisibleVerticalMethodInfo
ResolveToolItemMethod "getVisual" o = Gtk.Widget.WidgetGetVisualMethodInfo
ResolveToolItemMethod "getWindow" o = Gtk.Widget.WidgetGetWindowMethodInfo
ResolveToolItemMethod "setAccelPath" o = Gtk.Widget.WidgetSetAccelPathMethodInfo
ResolveToolItemMethod "setAllocation" o = Gtk.Widget.WidgetSetAllocationMethodInfo
ResolveToolItemMethod "setAppPaintable" o = Gtk.Widget.WidgetSetAppPaintableMethodInfo
ResolveToolItemMethod "setBorderWidth" o = Gtk.Container.ContainerSetBorderWidthMethodInfo
ResolveToolItemMethod "setBuildableProperty" o = Gtk.Buildable.BuildableSetBuildablePropertyMethodInfo
ResolveToolItemMethod "setCanDefault" o = Gtk.Widget.WidgetSetCanDefaultMethodInfo
ResolveToolItemMethod "setCanFocus" o = Gtk.Widget.WidgetSetCanFocusMethodInfo
ResolveToolItemMethod "setChildVisible" o = Gtk.Widget.WidgetSetChildVisibleMethodInfo
ResolveToolItemMethod "setClip" o = Gtk.Widget.WidgetSetClipMethodInfo
ResolveToolItemMethod "setCompositeName" o = Gtk.Widget.WidgetSetCompositeNameMethodInfo
ResolveToolItemMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolveToolItemMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
ResolveToolItemMethod "setDeviceEnabled" o = Gtk.Widget.WidgetSetDeviceEnabledMethodInfo
ResolveToolItemMethod "setDeviceEvents" o = Gtk.Widget.WidgetSetDeviceEventsMethodInfo
ResolveToolItemMethod "setDirection" o = Gtk.Widget.WidgetSetDirectionMethodInfo
ResolveToolItemMethod "setDoubleBuffered" o = Gtk.Widget.WidgetSetDoubleBufferedMethodInfo
ResolveToolItemMethod "setEvents" o = Gtk.Widget.WidgetSetEventsMethodInfo
ResolveToolItemMethod "setExpand" o = ToolItemSetExpandMethodInfo
ResolveToolItemMethod "setFocusChain" o = Gtk.Container.ContainerSetFocusChainMethodInfo
ResolveToolItemMethod "setFocusChild" o = Gtk.Container.ContainerSetFocusChildMethodInfo
ResolveToolItemMethod "setFocusHadjustment" o = Gtk.Container.ContainerSetFocusHadjustmentMethodInfo
ResolveToolItemMethod "setFocusOnClick" o = Gtk.Widget.WidgetSetFocusOnClickMethodInfo
ResolveToolItemMethod "setFocusVadjustment" o = Gtk.Container.ContainerSetFocusVadjustmentMethodInfo
ResolveToolItemMethod "setFontMap" o = Gtk.Widget.WidgetSetFontMapMethodInfo
ResolveToolItemMethod "setFontOptions" o = Gtk.Widget.WidgetSetFontOptionsMethodInfo
ResolveToolItemMethod "setHalign" o = Gtk.Widget.WidgetSetHalignMethodInfo
ResolveToolItemMethod "setHasTooltip" o = Gtk.Widget.WidgetSetHasTooltipMethodInfo
ResolveToolItemMethod "setHasWindow" o = Gtk.Widget.WidgetSetHasWindowMethodInfo
ResolveToolItemMethod "setHexpand" o = Gtk.Widget.WidgetSetHexpandMethodInfo
ResolveToolItemMethod "setHexpandSet" o = Gtk.Widget.WidgetSetHexpandSetMethodInfo
ResolveToolItemMethod "setHomogeneous" o = ToolItemSetHomogeneousMethodInfo
ResolveToolItemMethod "setIsImportant" o = ToolItemSetIsImportantMethodInfo
ResolveToolItemMethod "setMapped" o = Gtk.Widget.WidgetSetMappedMethodInfo
ResolveToolItemMethod "setMarginBottom" o = Gtk.Widget.WidgetSetMarginBottomMethodInfo
ResolveToolItemMethod "setMarginEnd" o = Gtk.Widget.WidgetSetMarginEndMethodInfo
ResolveToolItemMethod "setMarginLeft" o = Gtk.Widget.WidgetSetMarginLeftMethodInfo
ResolveToolItemMethod "setMarginRight" o = Gtk.Widget.WidgetSetMarginRightMethodInfo
ResolveToolItemMethod "setMarginStart" o = Gtk.Widget.WidgetSetMarginStartMethodInfo
ResolveToolItemMethod "setMarginTop" o = Gtk.Widget.WidgetSetMarginTopMethodInfo
ResolveToolItemMethod "setName" o = Gtk.Widget.WidgetSetNameMethodInfo
ResolveToolItemMethod "setNoShowAll" o = Gtk.Widget.WidgetSetNoShowAllMethodInfo
ResolveToolItemMethod "setOpacity" o = Gtk.Widget.WidgetSetOpacityMethodInfo
ResolveToolItemMethod "setParent" o = Gtk.Widget.WidgetSetParentMethodInfo
ResolveToolItemMethod "setParentWindow" o = Gtk.Widget.WidgetSetParentWindowMethodInfo
ResolveToolItemMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolveToolItemMethod "setProxyMenuItem" o = ToolItemSetProxyMenuItemMethodInfo
ResolveToolItemMethod "setRealized" o = Gtk.Widget.WidgetSetRealizedMethodInfo
ResolveToolItemMethod "setReallocateRedraws" o = Gtk.Container.ContainerSetReallocateRedrawsMethodInfo
ResolveToolItemMethod "setReceivesDefault" o = Gtk.Widget.WidgetSetReceivesDefaultMethodInfo
ResolveToolItemMethod "setRedrawOnAllocate" o = Gtk.Widget.WidgetSetRedrawOnAllocateMethodInfo
ResolveToolItemMethod "setRelatedAction" o = Gtk.Activatable.ActivatableSetRelatedActionMethodInfo
ResolveToolItemMethod "setResizeMode" o = Gtk.Container.ContainerSetResizeModeMethodInfo
ResolveToolItemMethod "setSensitive" o = Gtk.Widget.WidgetSetSensitiveMethodInfo
ResolveToolItemMethod "setSizeRequest" o = Gtk.Widget.WidgetSetSizeRequestMethodInfo
ResolveToolItemMethod "setState" o = Gtk.Widget.WidgetSetStateMethodInfo
ResolveToolItemMethod "setStateFlags" o = Gtk.Widget.WidgetSetStateFlagsMethodInfo
ResolveToolItemMethod "setStyle" o = Gtk.Widget.WidgetSetStyleMethodInfo
ResolveToolItemMethod "setSupportMultidevice" o = Gtk.Widget.WidgetSetSupportMultideviceMethodInfo
ResolveToolItemMethod "setTooltipMarkup" o = ToolItemSetTooltipMarkupMethodInfo
ResolveToolItemMethod "setTooltipText" o = ToolItemSetTooltipTextMethodInfo
ResolveToolItemMethod "setTooltipWindow" o = Gtk.Widget.WidgetSetTooltipWindowMethodInfo
ResolveToolItemMethod "setUseActionAppearance" o = Gtk.Activatable.ActivatableSetUseActionAppearanceMethodInfo
ResolveToolItemMethod "setUseDragWindow" o = ToolItemSetUseDragWindowMethodInfo
ResolveToolItemMethod "setValign" o = Gtk.Widget.WidgetSetValignMethodInfo
ResolveToolItemMethod "setVexpand" o = Gtk.Widget.WidgetSetVexpandMethodInfo
ResolveToolItemMethod "setVexpandSet" o = Gtk.Widget.WidgetSetVexpandSetMethodInfo
ResolveToolItemMethod "setVisible" o = Gtk.Widget.WidgetSetVisibleMethodInfo
ResolveToolItemMethod "setVisibleHorizontal" o = ToolItemSetVisibleHorizontalMethodInfo
ResolveToolItemMethod "setVisibleVertical" o = ToolItemSetVisibleVerticalMethodInfo
ResolveToolItemMethod "setVisual" o = Gtk.Widget.WidgetSetVisualMethodInfo
ResolveToolItemMethod "setWindow" o = Gtk.Widget.WidgetSetWindowMethodInfo
ResolveToolItemMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveToolItemMethod t ToolItem, O.OverloadedMethod info ToolItem p) => OL.IsLabel t (ToolItem -> p) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.overloadedMethod @info
#else
fromLabel _ = O.overloadedMethod @info
#endif
#if MIN_VERSION_base(4,13,0)
instance (info ~ ResolveToolItemMethod t ToolItem, O.OverloadedMethod info ToolItem p, R.HasField t ToolItem p) => R.HasField t ToolItem p where
getField = O.overloadedMethod @info
#endif
instance (info ~ ResolveToolItemMethod t ToolItem, O.OverloadedMethodInfo info ToolItem) => OL.IsLabel t (O.MethodProxy info ToolItem) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.MethodProxy
#else
fromLabel _ = O.MethodProxy
#endif
#endif
type =
IO Bool
type =
Ptr ToolItem ->
Ptr () ->
IO CInt
foreign import ccall "wrapper"
:: C_ToolItemCreateMenuProxyCallback -> IO (FunPtr C_ToolItemCreateMenuProxyCallback)
wrap_ToolItemCreateMenuProxyCallback ::
GObject a => (a -> ToolItemCreateMenuProxyCallback) ->
C_ToolItemCreateMenuProxyCallback
a -> ToolItemCreateMenuProxyCallback
gi'cb Ptr ToolItem
gi'selfPtr Ptr ()
_ = do
Bool
result <- Ptr ToolItem
-> (ToolItem -> ToolItemCreateMenuProxyCallback)
-> ToolItemCreateMenuProxyCallback
forall a b.
(HasCallStack, ManagedPtrNewtype a) =>
Ptr a -> (a -> IO b) -> IO b
B.ManagedPtr.withTransient Ptr ToolItem
gi'selfPtr ((ToolItem -> ToolItemCreateMenuProxyCallback)
-> ToolItemCreateMenuProxyCallback)
-> (ToolItem -> ToolItemCreateMenuProxyCallback)
-> ToolItemCreateMenuProxyCallback
forall a b. (a -> b) -> a -> b
$ \ToolItem
gi'self -> a -> ToolItemCreateMenuProxyCallback
gi'cb (ToolItem -> a
forall a b. Coercible a b => a -> b
Coerce.coerce ToolItem
gi'self)
let result' :: CInt
result' = (Int -> CInt
forall a b. (Integral a, Num b) => a -> b
P.fromIntegral (Int -> CInt) -> (Bool -> Int) -> Bool -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Bool -> Int
forall a. Enum a => a -> Int
P.fromEnum) Bool
result
CInt -> IO CInt
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return CInt
result'
onToolItemCreateMenuProxy :: (IsToolItem a, MonadIO m) => a -> ((?self :: a) => ToolItemCreateMenuProxyCallback) -> m SignalHandlerId
a
obj (?self::a) => ToolItemCreateMenuProxyCallback
cb = IO SignalHandlerId -> m SignalHandlerId
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let wrapped :: a -> ToolItemCreateMenuProxyCallback
wrapped a
self = let ?self = a
?self::a
self in ToolItemCreateMenuProxyCallback
(?self::a) => ToolItemCreateMenuProxyCallback
cb
let wrapped' :: C_ToolItemCreateMenuProxyCallback
wrapped' = (a -> ToolItemCreateMenuProxyCallback)
-> C_ToolItemCreateMenuProxyCallback
forall a.
GObject a =>
(a -> ToolItemCreateMenuProxyCallback)
-> C_ToolItemCreateMenuProxyCallback
wrap_ToolItemCreateMenuProxyCallback a -> ToolItemCreateMenuProxyCallback
wrapped
FunPtr C_ToolItemCreateMenuProxyCallback
wrapped'' <- C_ToolItemCreateMenuProxyCallback
-> IO (FunPtr C_ToolItemCreateMenuProxyCallback)
mk_ToolItemCreateMenuProxyCallback C_ToolItemCreateMenuProxyCallback
wrapped'
a
-> Text
-> FunPtr C_ToolItemCreateMenuProxyCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"create-menu-proxy" FunPtr C_ToolItemCreateMenuProxyCallback
wrapped'' SignalConnectMode
SignalConnectBefore Maybe Text
forall a. Maybe a
Nothing
afterToolItemCreateMenuProxy :: (IsToolItem a, MonadIO m) => a -> ((?self :: a) => ToolItemCreateMenuProxyCallback) -> m SignalHandlerId
a
obj (?self::a) => ToolItemCreateMenuProxyCallback
cb = IO SignalHandlerId -> m SignalHandlerId
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let wrapped :: a -> ToolItemCreateMenuProxyCallback
wrapped a
self = let ?self = a
?self::a
self in ToolItemCreateMenuProxyCallback
(?self::a) => ToolItemCreateMenuProxyCallback
cb
let wrapped' :: C_ToolItemCreateMenuProxyCallback
wrapped' = (a -> ToolItemCreateMenuProxyCallback)
-> C_ToolItemCreateMenuProxyCallback
forall a.
GObject a =>
(a -> ToolItemCreateMenuProxyCallback)
-> C_ToolItemCreateMenuProxyCallback
wrap_ToolItemCreateMenuProxyCallback a -> ToolItemCreateMenuProxyCallback
wrapped
FunPtr C_ToolItemCreateMenuProxyCallback
wrapped'' <- C_ToolItemCreateMenuProxyCallback
-> IO (FunPtr C_ToolItemCreateMenuProxyCallback)
mk_ToolItemCreateMenuProxyCallback C_ToolItemCreateMenuProxyCallback
wrapped'
a
-> Text
-> FunPtr C_ToolItemCreateMenuProxyCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"create-menu-proxy" FunPtr C_ToolItemCreateMenuProxyCallback
wrapped'' SignalConnectMode
SignalConnectAfter Maybe Text
forall a. Maybe a
Nothing
#if defined(ENABLE_OVERLOADING)
data ToolItemCreateMenuProxySignalInfo
instance SignalInfo ToolItemCreateMenuProxySignalInfo where
type HaskellCallbackType ToolItemCreateMenuProxySignalInfo = ToolItemCreateMenuProxyCallback
connectSignal obj cb connectMode detail = do
let cb' = wrap_ToolItemCreateMenuProxyCallback cb
cb'' <- mk_ToolItemCreateMenuProxyCallback cb'
connectSignalFunPtr obj "create-menu-proxy" cb'' connectMode detail
dbgSignalInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.ToolItem::create-menu-proxy"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.41/docs/GI-Gtk-Objects-ToolItem.html#g:signal:createMenuProxy"})
#endif
type ToolItemToolbarReconfiguredCallback =
IO ()
type C_ToolItemToolbarReconfiguredCallback =
Ptr ToolItem ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_ToolItemToolbarReconfiguredCallback :: C_ToolItemToolbarReconfiguredCallback -> IO (FunPtr C_ToolItemToolbarReconfiguredCallback)
wrap_ToolItemToolbarReconfiguredCallback ::
GObject a => (a -> ToolItemToolbarReconfiguredCallback) ->
C_ToolItemToolbarReconfiguredCallback
wrap_ToolItemToolbarReconfiguredCallback :: forall a.
GObject a =>
(a -> IO ()) -> C_ToolItemToolbarReconfiguredCallback
wrap_ToolItemToolbarReconfiguredCallback a -> IO ()
gi'cb Ptr ToolItem
gi'selfPtr Ptr ()
_ = do
Ptr ToolItem -> (ToolItem -> IO ()) -> IO ()
forall a b.
(HasCallStack, ManagedPtrNewtype a) =>
Ptr a -> (a -> IO b) -> IO b
B.ManagedPtr.withTransient Ptr ToolItem
gi'selfPtr ((ToolItem -> IO ()) -> IO ()) -> (ToolItem -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \ToolItem
gi'self -> a -> IO ()
gi'cb (ToolItem -> a
forall a b. Coercible a b => a -> b
Coerce.coerce ToolItem
gi'self)
onToolItemToolbarReconfigured :: (IsToolItem a, MonadIO m) => a -> ((?self :: a) => ToolItemToolbarReconfiguredCallback) -> m SignalHandlerId
onToolItemToolbarReconfigured :: forall a (m :: * -> *).
(IsToolItem a, MonadIO m) =>
a -> ((?self::a) => IO ()) -> m SignalHandlerId
onToolItemToolbarReconfigured a
obj (?self::a) => IO ()
cb = IO SignalHandlerId -> m SignalHandlerId
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let wrapped :: a -> IO ()
wrapped a
self = let ?self = a
?self::a
self in IO ()
(?self::a) => IO ()
cb
let wrapped' :: C_ToolItemToolbarReconfiguredCallback
wrapped' = (a -> IO ()) -> C_ToolItemToolbarReconfiguredCallback
forall a.
GObject a =>
(a -> IO ()) -> C_ToolItemToolbarReconfiguredCallback
wrap_ToolItemToolbarReconfiguredCallback a -> IO ()
wrapped
FunPtr C_ToolItemToolbarReconfiguredCallback
wrapped'' <- C_ToolItemToolbarReconfiguredCallback
-> IO (FunPtr C_ToolItemToolbarReconfiguredCallback)
mk_ToolItemToolbarReconfiguredCallback C_ToolItemToolbarReconfiguredCallback
wrapped'
a
-> Text
-> FunPtr C_ToolItemToolbarReconfiguredCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"toolbar-reconfigured" FunPtr C_ToolItemToolbarReconfiguredCallback
wrapped'' SignalConnectMode
SignalConnectBefore Maybe Text
forall a. Maybe a
Nothing
afterToolItemToolbarReconfigured :: (IsToolItem a, MonadIO m) => a -> ((?self :: a) => ToolItemToolbarReconfiguredCallback) -> m SignalHandlerId
afterToolItemToolbarReconfigured :: forall a (m :: * -> *).
(IsToolItem a, MonadIO m) =>
a -> ((?self::a) => IO ()) -> m SignalHandlerId
afterToolItemToolbarReconfigured a
obj (?self::a) => IO ()
cb = IO SignalHandlerId -> m SignalHandlerId
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let wrapped :: a -> IO ()
wrapped a
self = let ?self = a
?self::a
self in IO ()
(?self::a) => IO ()
cb
let wrapped' :: C_ToolItemToolbarReconfiguredCallback
wrapped' = (a -> IO ()) -> C_ToolItemToolbarReconfiguredCallback
forall a.
GObject a =>
(a -> IO ()) -> C_ToolItemToolbarReconfiguredCallback
wrap_ToolItemToolbarReconfiguredCallback a -> IO ()
wrapped
FunPtr C_ToolItemToolbarReconfiguredCallback
wrapped'' <- C_ToolItemToolbarReconfiguredCallback
-> IO (FunPtr C_ToolItemToolbarReconfiguredCallback)
mk_ToolItemToolbarReconfiguredCallback C_ToolItemToolbarReconfiguredCallback
wrapped'
a
-> Text
-> FunPtr C_ToolItemToolbarReconfiguredCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"toolbar-reconfigured" FunPtr C_ToolItemToolbarReconfiguredCallback
wrapped'' SignalConnectMode
SignalConnectAfter Maybe Text
forall a. Maybe a
Nothing
#if defined(ENABLE_OVERLOADING)
data ToolItemToolbarReconfiguredSignalInfo
instance SignalInfo ToolItemToolbarReconfiguredSignalInfo where
type HaskellCallbackType ToolItemToolbarReconfiguredSignalInfo = ToolItemToolbarReconfiguredCallback
connectSignal obj cb connectMode detail = do
let cb' = wrap_ToolItemToolbarReconfiguredCallback cb
cb'' <- mk_ToolItemToolbarReconfiguredCallback cb'
connectSignalFunPtr obj "toolbar-reconfigured" cb'' connectMode detail
dbgSignalInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.ToolItem::toolbar-reconfigured"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.41/docs/GI-Gtk-Objects-ToolItem.html#g:signal:toolbarReconfigured"})
#endif
getToolItemIsImportant :: (MonadIO m, IsToolItem o) => o -> m Bool
getToolItemIsImportant :: forall (m :: * -> *) o. (MonadIO m, IsToolItem o) => o -> m Bool
getToolItemIsImportant o
obj = ToolItemCreateMenuProxyCallback -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (ToolItemCreateMenuProxyCallback -> m Bool)
-> ToolItemCreateMenuProxyCallback -> m Bool
forall a b. (a -> b) -> a -> b
$ o -> String -> ToolItemCreateMenuProxyCallback
forall a.
GObject a =>
a -> String -> ToolItemCreateMenuProxyCallback
B.Properties.getObjectPropertyBool o
obj String
"is-important"
setToolItemIsImportant :: (MonadIO m, IsToolItem o) => o -> Bool -> m ()
setToolItemIsImportant :: forall (m :: * -> *) o.
(MonadIO m, IsToolItem o) =>
o -> Bool -> m ()
setToolItemIsImportant o
obj Bool
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Bool -> IO ()
forall a. GObject a => a -> String -> Bool -> IO ()
B.Properties.setObjectPropertyBool o
obj String
"is-important" Bool
val
constructToolItemIsImportant :: (IsToolItem o, MIO.MonadIO m) => Bool -> m (GValueConstruct o)
constructToolItemIsImportant :: forall o (m :: * -> *).
(IsToolItem o, MonadIO m) =>
Bool -> m (GValueConstruct o)
constructToolItemIsImportant Bool
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Bool -> IO (GValueConstruct o)
forall o. String -> Bool -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyBool String
"is-important" Bool
val
#if defined(ENABLE_OVERLOADING)
data ToolItemIsImportantPropertyInfo
instance AttrInfo ToolItemIsImportantPropertyInfo where
type AttrAllowedOps ToolItemIsImportantPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint ToolItemIsImportantPropertyInfo = IsToolItem
type AttrSetTypeConstraint ToolItemIsImportantPropertyInfo = (~) Bool
type AttrTransferTypeConstraint ToolItemIsImportantPropertyInfo = (~) Bool
type AttrTransferType ToolItemIsImportantPropertyInfo = Bool
type AttrGetType ToolItemIsImportantPropertyInfo = Bool
type AttrLabel ToolItemIsImportantPropertyInfo = "is-important"
type AttrOrigin ToolItemIsImportantPropertyInfo = ToolItem
attrGet = getToolItemIsImportant
attrSet = setToolItemIsImportant
attrTransfer _ v = do
return v
attrConstruct = constructToolItemIsImportant
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.ToolItem.isImportant"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.41/docs/GI-Gtk-Objects-ToolItem.html#g:attr:isImportant"
})
#endif
getToolItemVisibleHorizontal :: (MonadIO m, IsToolItem o) => o -> m Bool
getToolItemVisibleHorizontal :: forall (m :: * -> *) o. (MonadIO m, IsToolItem o) => o -> m Bool
getToolItemVisibleHorizontal o
obj = ToolItemCreateMenuProxyCallback -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (ToolItemCreateMenuProxyCallback -> m Bool)
-> ToolItemCreateMenuProxyCallback -> m Bool
forall a b. (a -> b) -> a -> b
$ o -> String -> ToolItemCreateMenuProxyCallback
forall a.
GObject a =>
a -> String -> ToolItemCreateMenuProxyCallback
B.Properties.getObjectPropertyBool o
obj String
"visible-horizontal"
setToolItemVisibleHorizontal :: (MonadIO m, IsToolItem o) => o -> Bool -> m ()
setToolItemVisibleHorizontal :: forall (m :: * -> *) o.
(MonadIO m, IsToolItem o) =>
o -> Bool -> m ()
setToolItemVisibleHorizontal o
obj Bool
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Bool -> IO ()
forall a. GObject a => a -> String -> Bool -> IO ()
B.Properties.setObjectPropertyBool o
obj String
"visible-horizontal" Bool
val
constructToolItemVisibleHorizontal :: (IsToolItem o, MIO.MonadIO m) => Bool -> m (GValueConstruct o)
constructToolItemVisibleHorizontal :: forall o (m :: * -> *).
(IsToolItem o, MonadIO m) =>
Bool -> m (GValueConstruct o)
constructToolItemVisibleHorizontal Bool
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Bool -> IO (GValueConstruct o)
forall o. String -> Bool -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyBool String
"visible-horizontal" Bool
val
#if defined(ENABLE_OVERLOADING)
data ToolItemVisibleHorizontalPropertyInfo
instance AttrInfo ToolItemVisibleHorizontalPropertyInfo where
type AttrAllowedOps ToolItemVisibleHorizontalPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint ToolItemVisibleHorizontalPropertyInfo = IsToolItem
type AttrSetTypeConstraint ToolItemVisibleHorizontalPropertyInfo = (~) Bool
type AttrTransferTypeConstraint ToolItemVisibleHorizontalPropertyInfo = (~) Bool
type AttrTransferType ToolItemVisibleHorizontalPropertyInfo = Bool
type AttrGetType ToolItemVisibleHorizontalPropertyInfo = Bool
type AttrLabel ToolItemVisibleHorizontalPropertyInfo = "visible-horizontal"
type AttrOrigin ToolItemVisibleHorizontalPropertyInfo = ToolItem
attrGet = getToolItemVisibleHorizontal
attrSet = setToolItemVisibleHorizontal
attrTransfer _ v = do
return v
attrConstruct = constructToolItemVisibleHorizontal
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.ToolItem.visibleHorizontal"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.41/docs/GI-Gtk-Objects-ToolItem.html#g:attr:visibleHorizontal"
})
#endif
getToolItemVisibleVertical :: (MonadIO m, IsToolItem o) => o -> m Bool
getToolItemVisibleVertical :: forall (m :: * -> *) o. (MonadIO m, IsToolItem o) => o -> m Bool
getToolItemVisibleVertical o
obj = ToolItemCreateMenuProxyCallback -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (ToolItemCreateMenuProxyCallback -> m Bool)
-> ToolItemCreateMenuProxyCallback -> m Bool
forall a b. (a -> b) -> a -> b
$ o -> String -> ToolItemCreateMenuProxyCallback
forall a.
GObject a =>
a -> String -> ToolItemCreateMenuProxyCallback
B.Properties.getObjectPropertyBool o
obj String
"visible-vertical"
setToolItemVisibleVertical :: (MonadIO m, IsToolItem o) => o -> Bool -> m ()
setToolItemVisibleVertical :: forall (m :: * -> *) o.
(MonadIO m, IsToolItem o) =>
o -> Bool -> m ()
setToolItemVisibleVertical o
obj Bool
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Bool -> IO ()
forall a. GObject a => a -> String -> Bool -> IO ()
B.Properties.setObjectPropertyBool o
obj String
"visible-vertical" Bool
val
constructToolItemVisibleVertical :: (IsToolItem o, MIO.MonadIO m) => Bool -> m (GValueConstruct o)
constructToolItemVisibleVertical :: forall o (m :: * -> *).
(IsToolItem o, MonadIO m) =>
Bool -> m (GValueConstruct o)
constructToolItemVisibleVertical Bool
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Bool -> IO (GValueConstruct o)
forall o. String -> Bool -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyBool String
"visible-vertical" Bool
val
#if defined(ENABLE_OVERLOADING)
data ToolItemVisibleVerticalPropertyInfo
instance AttrInfo ToolItemVisibleVerticalPropertyInfo where
type AttrAllowedOps ToolItemVisibleVerticalPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint ToolItemVisibleVerticalPropertyInfo = IsToolItem
type AttrSetTypeConstraint ToolItemVisibleVerticalPropertyInfo = (~) Bool
type AttrTransferTypeConstraint ToolItemVisibleVerticalPropertyInfo = (~) Bool
type AttrTransferType ToolItemVisibleVerticalPropertyInfo = Bool
type AttrGetType ToolItemVisibleVerticalPropertyInfo = Bool
type AttrLabel ToolItemVisibleVerticalPropertyInfo = "visible-vertical"
type AttrOrigin ToolItemVisibleVerticalPropertyInfo = ToolItem
attrGet = getToolItemVisibleVertical
attrSet = setToolItemVisibleVertical
attrTransfer _ v = do
return v
attrConstruct = constructToolItemVisibleVertical
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.ToolItem.visibleVertical"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.41/docs/GI-Gtk-Objects-ToolItem.html#g:attr:visibleVertical"
})
#endif
#if defined(ENABLE_OVERLOADING)
instance O.HasAttributeList ToolItem
type instance O.AttributeList ToolItem = ToolItemAttributeList
type ToolItemAttributeList = ('[ '("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), '("isImportant", ToolItemIsImportantPropertyInfo), '("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), '("scaleFactor", Gtk.Widget.WidgetScaleFactorPropertyInfo), '("sensitive", Gtk.Widget.WidgetSensitivePropertyInfo), '("style", Gtk.Widget.WidgetStylePropertyInfo), '("tooltipMarkup", Gtk.Widget.WidgetTooltipMarkupPropertyInfo), '("tooltipText", Gtk.Widget.WidgetTooltipTextPropertyInfo), '("useActionAppearance", Gtk.Activatable.ActivatableUseActionAppearancePropertyInfo), '("valign", Gtk.Widget.WidgetValignPropertyInfo), '("vexpand", Gtk.Widget.WidgetVexpandPropertyInfo), '("vexpandSet", Gtk.Widget.WidgetVexpandSetPropertyInfo), '("visible", Gtk.Widget.WidgetVisiblePropertyInfo), '("visibleHorizontal", ToolItemVisibleHorizontalPropertyInfo), '("visibleVertical", ToolItemVisibleVerticalPropertyInfo), '("widthRequest", Gtk.Widget.WidgetWidthRequestPropertyInfo), '("window", Gtk.Widget.WidgetWindowPropertyInfo)] :: [(Symbol, DK.Type)])
#endif
#if defined(ENABLE_OVERLOADING)
toolItemIsImportant :: AttrLabelProxy "isImportant"
toolItemIsImportant = AttrLabelProxy
toolItemVisibleHorizontal :: AttrLabelProxy "visibleHorizontal"
toolItemVisibleHorizontal = AttrLabelProxy
toolItemVisibleVertical :: AttrLabelProxy "visibleVertical"
toolItemVisibleVertical = AttrLabelProxy
#endif
#if defined(ENABLE_OVERLOADING)
type instance O.SignalList ToolItem = ToolItemSignalList
type ToolItemSignalList = ('[ '("accelClosuresChanged", Gtk.Widget.WidgetAccelClosuresChangedSignalInfo), '("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), '("createMenuProxy", ToolItemCreateMenuProxySignalInfo), '("damageEvent", Gtk.Widget.WidgetDamageEventSignalInfo), '("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), '("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), '("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), '("toolbarReconfigured", ToolItemToolbarReconfiguredSignalInfo), '("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, DK.Type)])
#endif
foreign import ccall "gtk_tool_item_new" gtk_tool_item_new ::
IO (Ptr ToolItem)
toolItemNew ::
(B.CallStack.HasCallStack, MonadIO m) =>
m ToolItem
toolItemNew :: forall (m :: * -> *). (HasCallStack, MonadIO m) => m ToolItem
toolItemNew = IO ToolItem -> m ToolItem
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO ToolItem -> m ToolItem) -> IO ToolItem -> m ToolItem
forall a b. (a -> b) -> a -> b
$ do
Ptr ToolItem
result <- IO (Ptr ToolItem)
gtk_tool_item_new
Text -> Ptr ToolItem -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"toolItemNew" Ptr ToolItem
result
ToolItem
result' <- ((ManagedPtr ToolItem -> ToolItem) -> Ptr ToolItem -> IO ToolItem
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr ToolItem -> ToolItem
ToolItem) Ptr ToolItem
result
ToolItem -> IO ToolItem
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ToolItem
result'
#if defined(ENABLE_OVERLOADING)
#endif
foreign import ccall "gtk_tool_item_get_ellipsize_mode" gtk_tool_item_get_ellipsize_mode ::
Ptr ToolItem ->
IO CUInt
toolItemGetEllipsizeMode ::
(B.CallStack.HasCallStack, MonadIO m, IsToolItem a) =>
a
-> m Pango.Enums.EllipsizeMode
toolItemGetEllipsizeMode :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsToolItem a) =>
a -> m EllipsizeMode
toolItemGetEllipsizeMode a
toolItem = IO EllipsizeMode -> m EllipsizeMode
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO EllipsizeMode -> m EllipsizeMode)
-> IO EllipsizeMode -> m EllipsizeMode
forall a b. (a -> b) -> a -> b
$ do
Ptr ToolItem
toolItem' <- a -> IO (Ptr ToolItem)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
toolItem
CUInt
result <- Ptr ToolItem -> IO CUInt
gtk_tool_item_get_ellipsize_mode Ptr ToolItem
toolItem'
let result' :: EllipsizeMode
result' = (Int -> EllipsizeMode
forall a. Enum a => Int -> a
toEnum (Int -> EllipsizeMode) -> (CUInt -> Int) -> CUInt -> EllipsizeMode
forall b c a. (b -> c) -> (a -> b) -> a -> c
. CUInt -> Int
forall a b. (Integral a, Num b) => a -> b
fromIntegral) CUInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
toolItem
EllipsizeMode -> IO EllipsizeMode
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return EllipsizeMode
result'
#if defined(ENABLE_OVERLOADING)
data ToolItemGetEllipsizeModeMethodInfo
instance (signature ~ (m Pango.Enums.EllipsizeMode), MonadIO m, IsToolItem a) => O.OverloadedMethod ToolItemGetEllipsizeModeMethodInfo a signature where
overloadedMethod = toolItemGetEllipsizeMode
instance O.OverloadedMethodInfo ToolItemGetEllipsizeModeMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.ToolItem.toolItemGetEllipsizeMode",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.41/docs/GI-Gtk-Objects-ToolItem.html#v:toolItemGetEllipsizeMode"
})
#endif
foreign import ccall "gtk_tool_item_get_expand" gtk_tool_item_get_expand ::
Ptr ToolItem ->
IO CInt
toolItemGetExpand ::
(B.CallStack.HasCallStack, MonadIO m, IsToolItem a) =>
a
-> m Bool
toolItemGetExpand :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsToolItem a) =>
a -> m Bool
toolItemGetExpand a
toolItem = ToolItemCreateMenuProxyCallback -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (ToolItemCreateMenuProxyCallback -> m Bool)
-> ToolItemCreateMenuProxyCallback -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr ToolItem
toolItem' <- a -> IO (Ptr ToolItem)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
toolItem
CInt
result <- Ptr ToolItem -> IO CInt
gtk_tool_item_get_expand Ptr ToolItem
toolItem'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
toolItem
Bool -> ToolItemCreateMenuProxyCallback
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data ToolItemGetExpandMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsToolItem a) => O.OverloadedMethod ToolItemGetExpandMethodInfo a signature where
overloadedMethod = toolItemGetExpand
instance O.OverloadedMethodInfo ToolItemGetExpandMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.ToolItem.toolItemGetExpand",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.41/docs/GI-Gtk-Objects-ToolItem.html#v:toolItemGetExpand"
})
#endif
foreign import ccall "gtk_tool_item_get_homogeneous" gtk_tool_item_get_homogeneous ::
Ptr ToolItem ->
IO CInt
toolItemGetHomogeneous ::
(B.CallStack.HasCallStack, MonadIO m, IsToolItem a) =>
a
-> m Bool
toolItemGetHomogeneous :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsToolItem a) =>
a -> m Bool
toolItemGetHomogeneous a
toolItem = ToolItemCreateMenuProxyCallback -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (ToolItemCreateMenuProxyCallback -> m Bool)
-> ToolItemCreateMenuProxyCallback -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr ToolItem
toolItem' <- a -> IO (Ptr ToolItem)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
toolItem
CInt
result <- Ptr ToolItem -> IO CInt
gtk_tool_item_get_homogeneous Ptr ToolItem
toolItem'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
toolItem
Bool -> ToolItemCreateMenuProxyCallback
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data ToolItemGetHomogeneousMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsToolItem a) => O.OverloadedMethod ToolItemGetHomogeneousMethodInfo a signature where
overloadedMethod = toolItemGetHomogeneous
instance O.OverloadedMethodInfo ToolItemGetHomogeneousMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.ToolItem.toolItemGetHomogeneous",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.41/docs/GI-Gtk-Objects-ToolItem.html#v:toolItemGetHomogeneous"
})
#endif
foreign import ccall "gtk_tool_item_get_icon_size" gtk_tool_item_get_icon_size ::
Ptr ToolItem ->
IO Int32
toolItemGetIconSize ::
(B.CallStack.HasCallStack, MonadIO m, IsToolItem a) =>
a
-> m Int32
toolItemGetIconSize :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsToolItem a) =>
a -> m Int32
toolItemGetIconSize a
toolItem = IO Int32 -> m Int32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ do
Ptr ToolItem
toolItem' <- a -> IO (Ptr ToolItem)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
toolItem
Int32
result <- Ptr ToolItem -> IO Int32
gtk_tool_item_get_icon_size Ptr ToolItem
toolItem'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
toolItem
Int32 -> IO Int32
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Int32
result
#if defined(ENABLE_OVERLOADING)
data ToolItemGetIconSizeMethodInfo
instance (signature ~ (m Int32), MonadIO m, IsToolItem a) => O.OverloadedMethod ToolItemGetIconSizeMethodInfo a signature where
overloadedMethod = toolItemGetIconSize
instance O.OverloadedMethodInfo ToolItemGetIconSizeMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.ToolItem.toolItemGetIconSize",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.41/docs/GI-Gtk-Objects-ToolItem.html#v:toolItemGetIconSize"
})
#endif
foreign import ccall "gtk_tool_item_get_is_important" gtk_tool_item_get_is_important ::
Ptr ToolItem ->
IO CInt
toolItemGetIsImportant ::
(B.CallStack.HasCallStack, MonadIO m, IsToolItem a) =>
a
-> m Bool
toolItemGetIsImportant :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsToolItem a) =>
a -> m Bool
toolItemGetIsImportant a
toolItem = ToolItemCreateMenuProxyCallback -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (ToolItemCreateMenuProxyCallback -> m Bool)
-> ToolItemCreateMenuProxyCallback -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr ToolItem
toolItem' <- a -> IO (Ptr ToolItem)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
toolItem
CInt
result <- Ptr ToolItem -> IO CInt
gtk_tool_item_get_is_important Ptr ToolItem
toolItem'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
toolItem
Bool -> ToolItemCreateMenuProxyCallback
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data ToolItemGetIsImportantMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsToolItem a) => O.OverloadedMethod ToolItemGetIsImportantMethodInfo a signature where
overloadedMethod = toolItemGetIsImportant
instance O.OverloadedMethodInfo ToolItemGetIsImportantMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.ToolItem.toolItemGetIsImportant",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.41/docs/GI-Gtk-Objects-ToolItem.html#v:toolItemGetIsImportant"
})
#endif
foreign import ccall "gtk_tool_item_get_orientation" gtk_tool_item_get_orientation ::
Ptr ToolItem ->
IO CUInt
toolItemGetOrientation ::
(B.CallStack.HasCallStack, MonadIO m, IsToolItem a) =>
a
-> m Gtk.Enums.Orientation
toolItemGetOrientation :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsToolItem a) =>
a -> m Orientation
toolItemGetOrientation a
toolItem = IO Orientation -> m Orientation
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Orientation -> m Orientation)
-> IO Orientation -> m Orientation
forall a b. (a -> b) -> a -> b
$ do
Ptr ToolItem
toolItem' <- a -> IO (Ptr ToolItem)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
toolItem
CUInt
result <- Ptr ToolItem -> IO CUInt
gtk_tool_item_get_orientation Ptr ToolItem
toolItem'
let result' :: Orientation
result' = (Int -> Orientation
forall a. Enum a => Int -> a
toEnum (Int -> Orientation) -> (CUInt -> Int) -> CUInt -> Orientation
forall b c a. (b -> c) -> (a -> b) -> a -> c
. CUInt -> Int
forall a b. (Integral a, Num b) => a -> b
fromIntegral) CUInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
toolItem
Orientation -> IO Orientation
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Orientation
result'
#if defined(ENABLE_OVERLOADING)
data ToolItemGetOrientationMethodInfo
instance (signature ~ (m Gtk.Enums.Orientation), MonadIO m, IsToolItem a) => O.OverloadedMethod ToolItemGetOrientationMethodInfo a signature where
overloadedMethod = toolItemGetOrientation
instance O.OverloadedMethodInfo ToolItemGetOrientationMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.ToolItem.toolItemGetOrientation",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.41/docs/GI-Gtk-Objects-ToolItem.html#v:toolItemGetOrientation"
})
#endif
foreign import ccall "gtk_tool_item_get_proxy_menu_item" ::
Ptr ToolItem ->
CString ->
IO (Ptr Gtk.Widget.Widget)
toolItemGetProxyMenuItem ::
(B.CallStack.HasCallStack, MonadIO m, IsToolItem a) =>
a
-> T.Text
-> m (Maybe Gtk.Widget.Widget)
a
toolItem Text
menuItemId = IO (Maybe Widget) -> m (Maybe Widget)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (Maybe Widget) -> m (Maybe Widget))
-> IO (Maybe Widget) -> m (Maybe Widget)
forall a b. (a -> b) -> a -> b
$ do
Ptr ToolItem
toolItem' <- a -> IO (Ptr ToolItem)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
toolItem
CString
menuItemId' <- Text -> IO CString
textToCString Text
menuItemId
Ptr Widget
result <- Ptr ToolItem -> CString -> IO (Ptr Widget)
gtk_tool_item_get_proxy_menu_item Ptr ToolItem
toolItem' CString
menuItemId'
Maybe Widget
maybeResult <- Ptr Widget -> (Ptr Widget -> IO Widget) -> IO (Maybe Widget)
forall a b. Ptr a -> (Ptr a -> IO b) -> IO (Maybe b)
convertIfNonNull Ptr Widget
result ((Ptr Widget -> IO Widget) -> IO (Maybe Widget))
-> (Ptr Widget -> IO Widget) -> IO (Maybe Widget)
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
result' -> do
Widget
result'' <- ((ManagedPtr Widget -> Widget) -> Ptr Widget -> IO Widget
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr Widget -> Widget
Gtk.Widget.Widget) Ptr Widget
result'
Widget -> IO Widget
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Widget
result''
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
toolItem
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
menuItemId'
Maybe Widget -> IO (Maybe Widget)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe Widget
maybeResult
#if defined(ENABLE_OVERLOADING)
data ToolItemGetProxyMenuItemMethodInfo
instance (signature ~ (T.Text -> m (Maybe Gtk.Widget.Widget)), MonadIO m, IsToolItem a) => O.OverloadedMethod ToolItemGetProxyMenuItemMethodInfo a signature where
overloadedMethod = toolItemGetProxyMenuItem
instance O.OverloadedMethodInfo ToolItemGetProxyMenuItemMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.ToolItem.toolItemGetProxyMenuItem",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.41/docs/GI-Gtk-Objects-ToolItem.html#v:toolItemGetProxyMenuItem"
})
#endif
foreign import ccall "gtk_tool_item_get_relief_style" gtk_tool_item_get_relief_style ::
Ptr ToolItem ->
IO CUInt
toolItemGetReliefStyle ::
(B.CallStack.HasCallStack, MonadIO m, IsToolItem a) =>
a
-> m Gtk.Enums.ReliefStyle
toolItemGetReliefStyle :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsToolItem a) =>
a -> m ReliefStyle
toolItemGetReliefStyle a
toolItem = IO ReliefStyle -> m ReliefStyle
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO ReliefStyle -> m ReliefStyle)
-> IO ReliefStyle -> m ReliefStyle
forall a b. (a -> b) -> a -> b
$ do
Ptr ToolItem
toolItem' <- a -> IO (Ptr ToolItem)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
toolItem
CUInt
result <- Ptr ToolItem -> IO CUInt
gtk_tool_item_get_relief_style Ptr ToolItem
toolItem'
let result' :: ReliefStyle
result' = (Int -> ReliefStyle
forall a. Enum a => Int -> a
toEnum (Int -> ReliefStyle) -> (CUInt -> Int) -> CUInt -> ReliefStyle
forall b c a. (b -> c) -> (a -> b) -> a -> c
. CUInt -> Int
forall a b. (Integral a, Num b) => a -> b
fromIntegral) CUInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
toolItem
ReliefStyle -> IO ReliefStyle
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ReliefStyle
result'
#if defined(ENABLE_OVERLOADING)
data ToolItemGetReliefStyleMethodInfo
instance (signature ~ (m Gtk.Enums.ReliefStyle), MonadIO m, IsToolItem a) => O.OverloadedMethod ToolItemGetReliefStyleMethodInfo a signature where
overloadedMethod = toolItemGetReliefStyle
instance O.OverloadedMethodInfo ToolItemGetReliefStyleMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.ToolItem.toolItemGetReliefStyle",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.41/docs/GI-Gtk-Objects-ToolItem.html#v:toolItemGetReliefStyle"
})
#endif
foreign import ccall "gtk_tool_item_get_text_alignment" gtk_tool_item_get_text_alignment ::
Ptr ToolItem ->
IO CFloat
toolItemGetTextAlignment ::
(B.CallStack.HasCallStack, MonadIO m, IsToolItem a) =>
a
-> m Float
toolItemGetTextAlignment :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsToolItem a) =>
a -> m Float
toolItemGetTextAlignment a
toolItem = IO Float -> m Float
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Float -> m Float) -> IO Float -> m Float
forall a b. (a -> b) -> a -> b
$ do
Ptr ToolItem
toolItem' <- a -> IO (Ptr ToolItem)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
toolItem
CFloat
result <- Ptr ToolItem -> IO CFloat
gtk_tool_item_get_text_alignment Ptr ToolItem
toolItem'
let result' :: Float
result' = CFloat -> Float
forall a b. (Real a, Fractional b) => a -> b
realToFrac CFloat
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
toolItem
Float -> IO Float
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Float
result'
#if defined(ENABLE_OVERLOADING)
data ToolItemGetTextAlignmentMethodInfo
instance (signature ~ (m Float), MonadIO m, IsToolItem a) => O.OverloadedMethod ToolItemGetTextAlignmentMethodInfo a signature where
overloadedMethod = toolItemGetTextAlignment
instance O.OverloadedMethodInfo ToolItemGetTextAlignmentMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.ToolItem.toolItemGetTextAlignment",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.41/docs/GI-Gtk-Objects-ToolItem.html#v:toolItemGetTextAlignment"
})
#endif
foreign import ccall "gtk_tool_item_get_text_orientation" gtk_tool_item_get_text_orientation ::
Ptr ToolItem ->
IO CUInt
toolItemGetTextOrientation ::
(B.CallStack.HasCallStack, MonadIO m, IsToolItem a) =>
a
-> m Gtk.Enums.Orientation
toolItemGetTextOrientation :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsToolItem a) =>
a -> m Orientation
toolItemGetTextOrientation a
toolItem = IO Orientation -> m Orientation
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Orientation -> m Orientation)
-> IO Orientation -> m Orientation
forall a b. (a -> b) -> a -> b
$ do
Ptr ToolItem
toolItem' <- a -> IO (Ptr ToolItem)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
toolItem
CUInt
result <- Ptr ToolItem -> IO CUInt
gtk_tool_item_get_text_orientation Ptr ToolItem
toolItem'
let result' :: Orientation
result' = (Int -> Orientation
forall a. Enum a => Int -> a
toEnum (Int -> Orientation) -> (CUInt -> Int) -> CUInt -> Orientation
forall b c a. (b -> c) -> (a -> b) -> a -> c
. CUInt -> Int
forall a b. (Integral a, Num b) => a -> b
fromIntegral) CUInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
toolItem
Orientation -> IO Orientation
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Orientation
result'
#if defined(ENABLE_OVERLOADING)
data ToolItemGetTextOrientationMethodInfo
instance (signature ~ (m Gtk.Enums.Orientation), MonadIO m, IsToolItem a) => O.OverloadedMethod ToolItemGetTextOrientationMethodInfo a signature where
overloadedMethod = toolItemGetTextOrientation
instance O.OverloadedMethodInfo ToolItemGetTextOrientationMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.ToolItem.toolItemGetTextOrientation",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.41/docs/GI-Gtk-Objects-ToolItem.html#v:toolItemGetTextOrientation"
})
#endif
foreign import ccall "gtk_tool_item_get_text_size_group" gtk_tool_item_get_text_size_group ::
Ptr ToolItem ->
IO (Ptr Gtk.SizeGroup.SizeGroup)
toolItemGetTextSizeGroup ::
(B.CallStack.HasCallStack, MonadIO m, IsToolItem a) =>
a
-> m Gtk.SizeGroup.SizeGroup
toolItemGetTextSizeGroup :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsToolItem a) =>
a -> m SizeGroup
toolItemGetTextSizeGroup a
toolItem = IO SizeGroup -> m SizeGroup
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SizeGroup -> m SizeGroup) -> IO SizeGroup -> m SizeGroup
forall a b. (a -> b) -> a -> b
$ do
Ptr ToolItem
toolItem' <- a -> IO (Ptr ToolItem)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
toolItem
Ptr SizeGroup
result <- Ptr ToolItem -> IO (Ptr SizeGroup)
gtk_tool_item_get_text_size_group Ptr ToolItem
toolItem'
Text -> Ptr SizeGroup -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"toolItemGetTextSizeGroup" Ptr SizeGroup
result
SizeGroup
result' <- ((ManagedPtr SizeGroup -> SizeGroup)
-> Ptr SizeGroup -> IO SizeGroup
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr SizeGroup -> SizeGroup
Gtk.SizeGroup.SizeGroup) Ptr SizeGroup
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
toolItem
SizeGroup -> IO SizeGroup
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return SizeGroup
result'
#if defined(ENABLE_OVERLOADING)
data ToolItemGetTextSizeGroupMethodInfo
instance (signature ~ (m Gtk.SizeGroup.SizeGroup), MonadIO m, IsToolItem a) => O.OverloadedMethod ToolItemGetTextSizeGroupMethodInfo a signature where
overloadedMethod = toolItemGetTextSizeGroup
instance O.OverloadedMethodInfo ToolItemGetTextSizeGroupMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.ToolItem.toolItemGetTextSizeGroup",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.41/docs/GI-Gtk-Objects-ToolItem.html#v:toolItemGetTextSizeGroup"
})
#endif
foreign import ccall "gtk_tool_item_get_toolbar_style" gtk_tool_item_get_toolbar_style ::
Ptr ToolItem ->
IO CUInt
toolItemGetToolbarStyle ::
(B.CallStack.HasCallStack, MonadIO m, IsToolItem a) =>
a
-> m Gtk.Enums.ToolbarStyle
toolItemGetToolbarStyle :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsToolItem a) =>
a -> m ToolbarStyle
toolItemGetToolbarStyle a
toolItem = IO ToolbarStyle -> m ToolbarStyle
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO ToolbarStyle -> m ToolbarStyle)
-> IO ToolbarStyle -> m ToolbarStyle
forall a b. (a -> b) -> a -> b
$ do
Ptr ToolItem
toolItem' <- a -> IO (Ptr ToolItem)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
toolItem
CUInt
result <- Ptr ToolItem -> IO CUInt
gtk_tool_item_get_toolbar_style Ptr ToolItem
toolItem'
let result' :: ToolbarStyle
result' = (Int -> ToolbarStyle
forall a. Enum a => Int -> a
toEnum (Int -> ToolbarStyle) -> (CUInt -> Int) -> CUInt -> ToolbarStyle
forall b c a. (b -> c) -> (a -> b) -> a -> c
. CUInt -> Int
forall a b. (Integral a, Num b) => a -> b
fromIntegral) CUInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
toolItem
ToolbarStyle -> IO ToolbarStyle
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ToolbarStyle
result'
#if defined(ENABLE_OVERLOADING)
data ToolItemGetToolbarStyleMethodInfo
instance (signature ~ (m Gtk.Enums.ToolbarStyle), MonadIO m, IsToolItem a) => O.OverloadedMethod ToolItemGetToolbarStyleMethodInfo a signature where
overloadedMethod = toolItemGetToolbarStyle
instance O.OverloadedMethodInfo ToolItemGetToolbarStyleMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.ToolItem.toolItemGetToolbarStyle",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.41/docs/GI-Gtk-Objects-ToolItem.html#v:toolItemGetToolbarStyle"
})
#endif
foreign import ccall "gtk_tool_item_get_use_drag_window" gtk_tool_item_get_use_drag_window ::
Ptr ToolItem ->
IO CInt
toolItemGetUseDragWindow ::
(B.CallStack.HasCallStack, MonadIO m, IsToolItem a) =>
a
-> m Bool
toolItemGetUseDragWindow :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsToolItem a) =>
a -> m Bool
toolItemGetUseDragWindow a
toolItem = ToolItemCreateMenuProxyCallback -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (ToolItemCreateMenuProxyCallback -> m Bool)
-> ToolItemCreateMenuProxyCallback -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr ToolItem
toolItem' <- a -> IO (Ptr ToolItem)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
toolItem
CInt
result <- Ptr ToolItem -> IO CInt
gtk_tool_item_get_use_drag_window Ptr ToolItem
toolItem'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
toolItem
Bool -> ToolItemCreateMenuProxyCallback
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data ToolItemGetUseDragWindowMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsToolItem a) => O.OverloadedMethod ToolItemGetUseDragWindowMethodInfo a signature where
overloadedMethod = toolItemGetUseDragWindow
instance O.OverloadedMethodInfo ToolItemGetUseDragWindowMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.ToolItem.toolItemGetUseDragWindow",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.41/docs/GI-Gtk-Objects-ToolItem.html#v:toolItemGetUseDragWindow"
})
#endif
foreign import ccall "gtk_tool_item_get_visible_horizontal" gtk_tool_item_get_visible_horizontal ::
Ptr ToolItem ->
IO CInt
toolItemGetVisibleHorizontal ::
(B.CallStack.HasCallStack, MonadIO m, IsToolItem a) =>
a
-> m Bool
toolItemGetVisibleHorizontal :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsToolItem a) =>
a -> m Bool
toolItemGetVisibleHorizontal a
toolItem = ToolItemCreateMenuProxyCallback -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (ToolItemCreateMenuProxyCallback -> m Bool)
-> ToolItemCreateMenuProxyCallback -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr ToolItem
toolItem' <- a -> IO (Ptr ToolItem)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
toolItem
CInt
result <- Ptr ToolItem -> IO CInt
gtk_tool_item_get_visible_horizontal Ptr ToolItem
toolItem'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
toolItem
Bool -> ToolItemCreateMenuProxyCallback
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data ToolItemGetVisibleHorizontalMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsToolItem a) => O.OverloadedMethod ToolItemGetVisibleHorizontalMethodInfo a signature where
overloadedMethod = toolItemGetVisibleHorizontal
instance O.OverloadedMethodInfo ToolItemGetVisibleHorizontalMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.ToolItem.toolItemGetVisibleHorizontal",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.41/docs/GI-Gtk-Objects-ToolItem.html#v:toolItemGetVisibleHorizontal"
})
#endif
foreign import ccall "gtk_tool_item_get_visible_vertical" gtk_tool_item_get_visible_vertical ::
Ptr ToolItem ->
IO CInt
toolItemGetVisibleVertical ::
(B.CallStack.HasCallStack, MonadIO m, IsToolItem a) =>
a
-> m Bool
toolItemGetVisibleVertical :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsToolItem a) =>
a -> m Bool
toolItemGetVisibleVertical a
toolItem = ToolItemCreateMenuProxyCallback -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (ToolItemCreateMenuProxyCallback -> m Bool)
-> ToolItemCreateMenuProxyCallback -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr ToolItem
toolItem' <- a -> IO (Ptr ToolItem)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
toolItem
CInt
result <- Ptr ToolItem -> IO CInt
gtk_tool_item_get_visible_vertical Ptr ToolItem
toolItem'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
toolItem
Bool -> ToolItemCreateMenuProxyCallback
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data ToolItemGetVisibleVerticalMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsToolItem a) => O.OverloadedMethod ToolItemGetVisibleVerticalMethodInfo a signature where
overloadedMethod = toolItemGetVisibleVertical
instance O.OverloadedMethodInfo ToolItemGetVisibleVerticalMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.ToolItem.toolItemGetVisibleVertical",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.41/docs/GI-Gtk-Objects-ToolItem.html#v:toolItemGetVisibleVertical"
})
#endif
foreign import ccall "gtk_tool_item_rebuild_menu" ::
Ptr ToolItem ->
IO ()
toolItemRebuildMenu ::
(B.CallStack.HasCallStack, MonadIO m, IsToolItem a) =>
a
-> m ()
a
toolItem = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr ToolItem
toolItem' <- a -> IO (Ptr ToolItem)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
toolItem
Ptr ToolItem -> IO ()
gtk_tool_item_rebuild_menu Ptr ToolItem
toolItem'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
toolItem
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data ToolItemRebuildMenuMethodInfo
instance (signature ~ (m ()), MonadIO m, IsToolItem a) => O.OverloadedMethod ToolItemRebuildMenuMethodInfo a signature where
overloadedMethod = toolItemRebuildMenu
instance O.OverloadedMethodInfo ToolItemRebuildMenuMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.ToolItem.toolItemRebuildMenu",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.41/docs/GI-Gtk-Objects-ToolItem.html#v:toolItemRebuildMenu"
})
#endif
foreign import ccall "gtk_tool_item_retrieve_proxy_menu_item" ::
Ptr ToolItem ->
IO (Ptr Gtk.Widget.Widget)
toolItemRetrieveProxyMenuItem ::
(B.CallStack.HasCallStack, MonadIO m, IsToolItem a) =>
a
-> m Gtk.Widget.Widget
a
toolItem = IO Widget -> m Widget
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Widget -> m Widget) -> IO Widget -> m Widget
forall a b. (a -> b) -> a -> b
$ do
Ptr ToolItem
toolItem' <- a -> IO (Ptr ToolItem)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
toolItem
Ptr Widget
result <- Ptr ToolItem -> IO (Ptr Widget)
gtk_tool_item_retrieve_proxy_menu_item Ptr ToolItem
toolItem'
Text -> Ptr Widget -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"toolItemRetrieveProxyMenuItem" Ptr Widget
result
Widget
result' <- ((ManagedPtr Widget -> Widget) -> Ptr Widget -> IO Widget
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr Widget -> Widget
Gtk.Widget.Widget) Ptr Widget
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
toolItem
Widget -> IO Widget
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Widget
result'
#if defined(ENABLE_OVERLOADING)
data ToolItemRetrieveProxyMenuItemMethodInfo
instance (signature ~ (m Gtk.Widget.Widget), MonadIO m, IsToolItem a) => O.OverloadedMethod ToolItemRetrieveProxyMenuItemMethodInfo a signature where
overloadedMethod = toolItemRetrieveProxyMenuItem
instance O.OverloadedMethodInfo ToolItemRetrieveProxyMenuItemMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.ToolItem.toolItemRetrieveProxyMenuItem",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.41/docs/GI-Gtk-Objects-ToolItem.html#v:toolItemRetrieveProxyMenuItem"
})
#endif
foreign import ccall "gtk_tool_item_set_expand" gtk_tool_item_set_expand ::
Ptr ToolItem ->
CInt ->
IO ()
toolItemSetExpand ::
(B.CallStack.HasCallStack, MonadIO m, IsToolItem a) =>
a
-> Bool
-> m ()
toolItemSetExpand :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsToolItem a) =>
a -> Bool -> m ()
toolItemSetExpand a
toolItem Bool
expand = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr ToolItem
toolItem' <- a -> IO (Ptr ToolItem)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
toolItem
let expand' :: CInt
expand' = (Int -> CInt
forall a b. (Integral a, Num b) => a -> b
P.fromIntegral (Int -> CInt) -> (Bool -> Int) -> Bool -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Bool -> Int
forall a. Enum a => a -> Int
P.fromEnum) Bool
expand
Ptr ToolItem -> CInt -> IO ()
gtk_tool_item_set_expand Ptr ToolItem
toolItem' CInt
expand'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
toolItem
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data ToolItemSetExpandMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsToolItem a) => O.OverloadedMethod ToolItemSetExpandMethodInfo a signature where
overloadedMethod = toolItemSetExpand
instance O.OverloadedMethodInfo ToolItemSetExpandMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.ToolItem.toolItemSetExpand",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.41/docs/GI-Gtk-Objects-ToolItem.html#v:toolItemSetExpand"
})
#endif
foreign import ccall "gtk_tool_item_set_homogeneous" gtk_tool_item_set_homogeneous ::
Ptr ToolItem ->
CInt ->
IO ()
toolItemSetHomogeneous ::
(B.CallStack.HasCallStack, MonadIO m, IsToolItem a) =>
a
-> Bool
-> m ()
toolItemSetHomogeneous :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsToolItem a) =>
a -> Bool -> m ()
toolItemSetHomogeneous a
toolItem Bool
homogeneous = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr ToolItem
toolItem' <- a -> IO (Ptr ToolItem)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
toolItem
let homogeneous' :: CInt
homogeneous' = (Int -> CInt
forall a b. (Integral a, Num b) => a -> b
P.fromIntegral (Int -> CInt) -> (Bool -> Int) -> Bool -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Bool -> Int
forall a. Enum a => a -> Int
P.fromEnum) Bool
homogeneous
Ptr ToolItem -> CInt -> IO ()
gtk_tool_item_set_homogeneous Ptr ToolItem
toolItem' CInt
homogeneous'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
toolItem
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data ToolItemSetHomogeneousMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsToolItem a) => O.OverloadedMethod ToolItemSetHomogeneousMethodInfo a signature where
overloadedMethod = toolItemSetHomogeneous
instance O.OverloadedMethodInfo ToolItemSetHomogeneousMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.ToolItem.toolItemSetHomogeneous",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.41/docs/GI-Gtk-Objects-ToolItem.html#v:toolItemSetHomogeneous"
})
#endif
foreign import ccall "gtk_tool_item_set_is_important" gtk_tool_item_set_is_important ::
Ptr ToolItem ->
CInt ->
IO ()
toolItemSetIsImportant ::
(B.CallStack.HasCallStack, MonadIO m, IsToolItem a) =>
a
-> Bool
-> m ()
toolItemSetIsImportant :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsToolItem a) =>
a -> Bool -> m ()
toolItemSetIsImportant a
toolItem Bool
isImportant = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr ToolItem
toolItem' <- a -> IO (Ptr ToolItem)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
toolItem
let isImportant' :: CInt
isImportant' = (Int -> CInt
forall a b. (Integral a, Num b) => a -> b
P.fromIntegral (Int -> CInt) -> (Bool -> Int) -> Bool -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Bool -> Int
forall a. Enum a => a -> Int
P.fromEnum) Bool
isImportant
Ptr ToolItem -> CInt -> IO ()
gtk_tool_item_set_is_important Ptr ToolItem
toolItem' CInt
isImportant'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
toolItem
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data ToolItemSetIsImportantMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsToolItem a) => O.OverloadedMethod ToolItemSetIsImportantMethodInfo a signature where
overloadedMethod = toolItemSetIsImportant
instance O.OverloadedMethodInfo ToolItemSetIsImportantMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.ToolItem.toolItemSetIsImportant",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.41/docs/GI-Gtk-Objects-ToolItem.html#v:toolItemSetIsImportant"
})
#endif
foreign import ccall "gtk_tool_item_set_proxy_menu_item" ::
Ptr ToolItem ->
CString ->
Ptr Gtk.Widget.Widget ->
IO ()
toolItemSetProxyMenuItem ::
(B.CallStack.HasCallStack, MonadIO m, IsToolItem a, Gtk.Widget.IsWidget b) =>
a
-> T.Text
-> Maybe (b)
-> m ()
a
toolItem Text
menuItemId Maybe b
menuItem = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr ToolItem
toolItem' <- a -> IO (Ptr ToolItem)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
toolItem
CString
menuItemId' <- Text -> IO CString
textToCString Text
menuItemId
Ptr Widget
maybeMenuItem <- case Maybe b
menuItem of
Maybe b
Nothing -> Ptr Widget -> IO (Ptr Widget)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Ptr Widget
forall a. Ptr a
nullPtr
Just b
jMenuItem -> do
Ptr Widget
jMenuItem' <- b -> IO (Ptr Widget)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr b
jMenuItem
Ptr Widget -> IO (Ptr Widget)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Ptr Widget
jMenuItem'
Ptr ToolItem -> CString -> Ptr Widget -> IO ()
gtk_tool_item_set_proxy_menu_item Ptr ToolItem
toolItem' CString
menuItemId' Ptr Widget
maybeMenuItem
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
toolItem
Maybe b -> (b -> IO ()) -> IO ()
forall (m :: * -> *) a. Monad m => Maybe a -> (a -> m ()) -> m ()
whenJust Maybe b
menuItem b -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
menuItemId'
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data ToolItemSetProxyMenuItemMethodInfo
instance (signature ~ (T.Text -> Maybe (b) -> m ()), MonadIO m, IsToolItem a, Gtk.Widget.IsWidget b) => O.OverloadedMethod ToolItemSetProxyMenuItemMethodInfo a signature where
overloadedMethod = toolItemSetProxyMenuItem
instance O.OverloadedMethodInfo ToolItemSetProxyMenuItemMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.ToolItem.toolItemSetProxyMenuItem",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.41/docs/GI-Gtk-Objects-ToolItem.html#v:toolItemSetProxyMenuItem"
})
#endif
foreign import ccall "gtk_tool_item_set_tooltip_markup" gtk_tool_item_set_tooltip_markup ::
Ptr ToolItem ->
CString ->
IO ()
toolItemSetTooltipMarkup ::
(B.CallStack.HasCallStack, MonadIO m, IsToolItem a) =>
a
-> T.Text
-> m ()
toolItemSetTooltipMarkup :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsToolItem a) =>
a -> Text -> m ()
toolItemSetTooltipMarkup a
toolItem Text
markup = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr ToolItem
toolItem' <- a -> IO (Ptr ToolItem)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
toolItem
CString
markup' <- Text -> IO CString
textToCString Text
markup
Ptr ToolItem -> CString -> IO ()
gtk_tool_item_set_tooltip_markup Ptr ToolItem
toolItem' CString
markup'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
toolItem
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
markup'
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data ToolItemSetTooltipMarkupMethodInfo
instance (signature ~ (T.Text -> m ()), MonadIO m, IsToolItem a) => O.OverloadedMethod ToolItemSetTooltipMarkupMethodInfo a signature where
overloadedMethod = toolItemSetTooltipMarkup
instance O.OverloadedMethodInfo ToolItemSetTooltipMarkupMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.ToolItem.toolItemSetTooltipMarkup",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.41/docs/GI-Gtk-Objects-ToolItem.html#v:toolItemSetTooltipMarkup"
})
#endif
foreign import ccall "gtk_tool_item_set_tooltip_text" gtk_tool_item_set_tooltip_text ::
Ptr ToolItem ->
CString ->
IO ()
toolItemSetTooltipText ::
(B.CallStack.HasCallStack, MonadIO m, IsToolItem a) =>
a
-> T.Text
-> m ()
toolItemSetTooltipText :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsToolItem a) =>
a -> Text -> m ()
toolItemSetTooltipText a
toolItem Text
text = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr ToolItem
toolItem' <- a -> IO (Ptr ToolItem)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
toolItem
CString
text' <- Text -> IO CString
textToCString Text
text
Ptr ToolItem -> CString -> IO ()
gtk_tool_item_set_tooltip_text Ptr ToolItem
toolItem' CString
text'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
toolItem
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
text'
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data ToolItemSetTooltipTextMethodInfo
instance (signature ~ (T.Text -> m ()), MonadIO m, IsToolItem a) => O.OverloadedMethod ToolItemSetTooltipTextMethodInfo a signature where
overloadedMethod = toolItemSetTooltipText
instance O.OverloadedMethodInfo ToolItemSetTooltipTextMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.ToolItem.toolItemSetTooltipText",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.41/docs/GI-Gtk-Objects-ToolItem.html#v:toolItemSetTooltipText"
})
#endif
foreign import ccall "gtk_tool_item_set_use_drag_window" gtk_tool_item_set_use_drag_window ::
Ptr ToolItem ->
CInt ->
IO ()
toolItemSetUseDragWindow ::
(B.CallStack.HasCallStack, MonadIO m, IsToolItem a) =>
a
-> Bool
-> m ()
toolItemSetUseDragWindow :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsToolItem a) =>
a -> Bool -> m ()
toolItemSetUseDragWindow a
toolItem Bool
useDragWindow = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr ToolItem
toolItem' <- a -> IO (Ptr ToolItem)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
toolItem
let useDragWindow' :: CInt
useDragWindow' = (Int -> CInt
forall a b. (Integral a, Num b) => a -> b
P.fromIntegral (Int -> CInt) -> (Bool -> Int) -> Bool -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Bool -> Int
forall a. Enum a => a -> Int
P.fromEnum) Bool
useDragWindow
Ptr ToolItem -> CInt -> IO ()
gtk_tool_item_set_use_drag_window Ptr ToolItem
toolItem' CInt
useDragWindow'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
toolItem
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data ToolItemSetUseDragWindowMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsToolItem a) => O.OverloadedMethod ToolItemSetUseDragWindowMethodInfo a signature where
overloadedMethod = toolItemSetUseDragWindow
instance O.OverloadedMethodInfo ToolItemSetUseDragWindowMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.ToolItem.toolItemSetUseDragWindow",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.41/docs/GI-Gtk-Objects-ToolItem.html#v:toolItemSetUseDragWindow"
})
#endif
foreign import ccall "gtk_tool_item_set_visible_horizontal" gtk_tool_item_set_visible_horizontal ::
Ptr ToolItem ->
CInt ->
IO ()
toolItemSetVisibleHorizontal ::
(B.CallStack.HasCallStack, MonadIO m, IsToolItem a) =>
a
-> Bool
-> m ()
toolItemSetVisibleHorizontal :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsToolItem a) =>
a -> Bool -> m ()
toolItemSetVisibleHorizontal a
toolItem Bool
visibleHorizontal = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr ToolItem
toolItem' <- a -> IO (Ptr ToolItem)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
toolItem
let visibleHorizontal' :: CInt
visibleHorizontal' = (Int -> CInt
forall a b. (Integral a, Num b) => a -> b
P.fromIntegral (Int -> CInt) -> (Bool -> Int) -> Bool -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Bool -> Int
forall a. Enum a => a -> Int
P.fromEnum) Bool
visibleHorizontal
Ptr ToolItem -> CInt -> IO ()
gtk_tool_item_set_visible_horizontal Ptr ToolItem
toolItem' CInt
visibleHorizontal'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
toolItem
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data ToolItemSetVisibleHorizontalMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsToolItem a) => O.OverloadedMethod ToolItemSetVisibleHorizontalMethodInfo a signature where
overloadedMethod = toolItemSetVisibleHorizontal
instance O.OverloadedMethodInfo ToolItemSetVisibleHorizontalMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.ToolItem.toolItemSetVisibleHorizontal",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.41/docs/GI-Gtk-Objects-ToolItem.html#v:toolItemSetVisibleHorizontal"
})
#endif
foreign import ccall "gtk_tool_item_set_visible_vertical" gtk_tool_item_set_visible_vertical ::
Ptr ToolItem ->
CInt ->
IO ()
toolItemSetVisibleVertical ::
(B.CallStack.HasCallStack, MonadIO m, IsToolItem a) =>
a
-> Bool
-> m ()
toolItemSetVisibleVertical :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsToolItem a) =>
a -> Bool -> m ()
toolItemSetVisibleVertical a
toolItem Bool
visibleVertical = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr ToolItem
toolItem' <- a -> IO (Ptr ToolItem)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
toolItem
let visibleVertical' :: CInt
visibleVertical' = (Int -> CInt
forall a b. (Integral a, Num b) => a -> b
P.fromIntegral (Int -> CInt) -> (Bool -> Int) -> Bool -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Bool -> Int
forall a. Enum a => a -> Int
P.fromEnum) Bool
visibleVertical
Ptr ToolItem -> CInt -> IO ()
gtk_tool_item_set_visible_vertical Ptr ToolItem
toolItem' CInt
visibleVertical'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
toolItem
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data ToolItemSetVisibleVerticalMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsToolItem a) => O.OverloadedMethod ToolItemSetVisibleVerticalMethodInfo a signature where
overloadedMethod = toolItemSetVisibleVertical
instance O.OverloadedMethodInfo ToolItemSetVisibleVerticalMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.ToolItem.toolItemSetVisibleVertical",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.41/docs/GI-Gtk-Objects-ToolItem.html#v:toolItemSetVisibleVertical"
})
#endif
foreign import ccall "gtk_tool_item_toolbar_reconfigured" gtk_tool_item_toolbar_reconfigured ::
Ptr ToolItem ->
IO ()
toolItemToolbarReconfigured ::
(B.CallStack.HasCallStack, MonadIO m, IsToolItem a) =>
a
-> m ()
toolItemToolbarReconfigured :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsToolItem a) =>
a -> m ()
toolItemToolbarReconfigured a
toolItem = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr ToolItem
toolItem' <- a -> IO (Ptr ToolItem)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
toolItem
Ptr ToolItem -> IO ()
gtk_tool_item_toolbar_reconfigured Ptr ToolItem
toolItem'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
toolItem
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data ToolItemToolbarReconfiguredMethodInfo
instance (signature ~ (m ()), MonadIO m, IsToolItem a) => O.OverloadedMethod ToolItemToolbarReconfiguredMethodInfo a signature where
overloadedMethod = toolItemToolbarReconfigured
instance O.OverloadedMethodInfo ToolItemToolbarReconfiguredMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.ToolItem.toolItemToolbarReconfigured",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.41/docs/GI-Gtk-Objects-ToolItem.html#v:toolItemToolbarReconfigured"
})
#endif