{-# LANGUAGE TypeApplications #-}
#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.Gtk.Objects.Toolbar
(
Toolbar(..) ,
IsToolbar ,
toToolbar ,
#if defined(ENABLE_OVERLOADING)
ResolveToolbarMethod ,
#endif
#if defined(ENABLE_OVERLOADING)
ToolbarGetDropIndexMethodInfo ,
#endif
toolbarGetDropIndex ,
#if defined(ENABLE_OVERLOADING)
ToolbarGetIconSizeMethodInfo ,
#endif
toolbarGetIconSize ,
#if defined(ENABLE_OVERLOADING)
ToolbarGetItemIndexMethodInfo ,
#endif
toolbarGetItemIndex ,
#if defined(ENABLE_OVERLOADING)
ToolbarGetNItemsMethodInfo ,
#endif
toolbarGetNItems ,
#if defined(ENABLE_OVERLOADING)
ToolbarGetNthItemMethodInfo ,
#endif
toolbarGetNthItem ,
#if defined(ENABLE_OVERLOADING)
ToolbarGetReliefStyleMethodInfo ,
#endif
toolbarGetReliefStyle ,
#if defined(ENABLE_OVERLOADING)
ToolbarGetShowArrowMethodInfo ,
#endif
toolbarGetShowArrow ,
#if defined(ENABLE_OVERLOADING)
ToolbarGetStyleMethodInfo ,
#endif
toolbarGetStyle ,
#if defined(ENABLE_OVERLOADING)
ToolbarInsertMethodInfo ,
#endif
toolbarInsert ,
toolbarNew ,
#if defined(ENABLE_OVERLOADING)
ToolbarSetDropHighlightItemMethodInfo ,
#endif
toolbarSetDropHighlightItem ,
#if defined(ENABLE_OVERLOADING)
ToolbarSetIconSizeMethodInfo ,
#endif
toolbarSetIconSize ,
#if defined(ENABLE_OVERLOADING)
ToolbarSetShowArrowMethodInfo ,
#endif
toolbarSetShowArrow ,
#if defined(ENABLE_OVERLOADING)
ToolbarSetStyleMethodInfo ,
#endif
toolbarSetStyle ,
#if defined(ENABLE_OVERLOADING)
ToolbarUnsetIconSizeMethodInfo ,
#endif
toolbarUnsetIconSize ,
#if defined(ENABLE_OVERLOADING)
ToolbarUnsetStyleMethodInfo ,
#endif
toolbarUnsetStyle ,
#if defined(ENABLE_OVERLOADING)
ToolbarIconSizePropertyInfo ,
#endif
constructToolbarIconSize ,
getToolbarIconSize ,
setToolbarIconSize ,
#if defined(ENABLE_OVERLOADING)
toolbarIconSize ,
#endif
#if defined(ENABLE_OVERLOADING)
ToolbarIconSizeSetPropertyInfo ,
#endif
constructToolbarIconSizeSet ,
getToolbarIconSizeSet ,
setToolbarIconSizeSet ,
#if defined(ENABLE_OVERLOADING)
toolbarIconSizeSet ,
#endif
#if defined(ENABLE_OVERLOADING)
ToolbarShowArrowPropertyInfo ,
#endif
constructToolbarShowArrow ,
getToolbarShowArrow ,
setToolbarShowArrow ,
#if defined(ENABLE_OVERLOADING)
toolbarShowArrow ,
#endif
#if defined(ENABLE_OVERLOADING)
ToolbarToolbarStylePropertyInfo ,
#endif
constructToolbarToolbarStyle ,
getToolbarToolbarStyle ,
setToolbarToolbarStyle ,
#if defined(ENABLE_OVERLOADING)
toolbarToolbarStyle ,
#endif
C_ToolbarFocusHomeOrEndCallback ,
ToolbarFocusHomeOrEndCallback ,
#if defined(ENABLE_OVERLOADING)
ToolbarFocusHomeOrEndSignalInfo ,
#endif
afterToolbarFocusHomeOrEnd ,
genClosure_ToolbarFocusHomeOrEnd ,
mk_ToolbarFocusHomeOrEndCallback ,
noToolbarFocusHomeOrEndCallback ,
onToolbarFocusHomeOrEnd ,
wrap_ToolbarFocusHomeOrEndCallback ,
C_ToolbarOrientationChangedCallback ,
ToolbarOrientationChangedCallback ,
#if defined(ENABLE_OVERLOADING)
ToolbarOrientationChangedSignalInfo ,
#endif
afterToolbarOrientationChanged ,
genClosure_ToolbarOrientationChanged ,
mk_ToolbarOrientationChangedCallback ,
noToolbarOrientationChangedCallback ,
onToolbarOrientationChanged ,
wrap_ToolbarOrientationChangedCallback ,
C_ToolbarPopupContextMenuCallback ,
ToolbarPopupContextMenuCallback ,
#if defined(ENABLE_OVERLOADING)
ToolbarPopupContextMenuSignalInfo ,
#endif
afterToolbarPopupContextMenu ,
genClosure_ToolbarPopupContextMenu ,
mk_ToolbarPopupContextMenuCallback ,
noToolbarPopupContextMenuCallback ,
onToolbarPopupContextMenu ,
wrap_ToolbarPopupContextMenuCallback ,
C_ToolbarStyleChangedCallback ,
ToolbarStyleChangedCallback ,
#if defined(ENABLE_OVERLOADING)
ToolbarStyleChangedSignalInfo ,
#endif
afterToolbarStyleChanged ,
genClosure_ToolbarStyleChanged ,
mk_ToolbarStyleChangedCallback ,
noToolbarStyleChangedCallback ,
onToolbarStyleChanged ,
wrap_ToolbarStyleChangedCallback ,
) where
import Data.GI.Base.ShortPrelude
import qualified Data.GI.Base.ShortPrelude as SP
import qualified Data.GI.Base.Overloading as O
import qualified Prelude as P
import qualified Data.GI.Base.Attributes as GI.Attributes
import qualified Data.GI.Base.BasicTypes as B.Types
import qualified Data.GI.Base.ManagedPtr as B.ManagedPtr
import qualified Data.GI.Base.GArray as B.GArray
import qualified Data.GI.Base.GClosure as B.GClosure
import qualified Data.GI.Base.GError as B.GError
import qualified Data.GI.Base.GVariant as B.GVariant
import qualified Data.GI.Base.GValue as B.GValue
import qualified Data.GI.Base.GParamSpec as B.GParamSpec
import qualified Data.GI.Base.CallStack as B.CallStack
import qualified Data.GI.Base.Properties as B.Properties
import qualified Data.GI.Base.Signals as B.Signals
import qualified Control.Monad.IO.Class as MIO
import qualified Data.Text as T
import qualified Data.ByteString.Char8 as B
import qualified Data.Map as Map
import qualified Foreign.Ptr as FP
import qualified GHC.OverloadedLabels as OL
import qualified GI.Atk.Interfaces.ImplementorIface as Atk.ImplementorIface
import qualified GI.GObject.Objects.Object as GObject.Object
import {-# SOURCE #-} qualified GI.Gtk.Enums as Gtk.Enums
import {-# SOURCE #-} qualified GI.Gtk.Interfaces.Buildable as Gtk.Buildable
import {-# SOURCE #-} qualified GI.Gtk.Interfaces.Orientable as Gtk.Orientable
import {-# SOURCE #-} qualified GI.Gtk.Interfaces.ToolShell as Gtk.ToolShell
import {-# SOURCE #-} qualified GI.Gtk.Objects.Container as Gtk.Container
import {-# SOURCE #-} qualified GI.Gtk.Objects.ToolItem as Gtk.ToolItem
import {-# SOURCE #-} qualified GI.Gtk.Objects.Widget as Gtk.Widget
newtype Toolbar = Toolbar (SP.ManagedPtr Toolbar)
deriving (Toolbar -> Toolbar -> Bool
(Toolbar -> Toolbar -> Bool)
-> (Toolbar -> Toolbar -> Bool) -> Eq Toolbar
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Toolbar -> Toolbar -> Bool
$c/= :: Toolbar -> Toolbar -> Bool
== :: Toolbar -> Toolbar -> Bool
$c== :: Toolbar -> Toolbar -> Bool
Eq)
instance SP.ManagedPtrNewtype Toolbar where
toManagedPtr :: Toolbar -> ManagedPtr Toolbar
toManagedPtr (Toolbar ManagedPtr Toolbar
p) = ManagedPtr Toolbar
p
foreign import ccall "gtk_toolbar_get_type"
c_gtk_toolbar_get_type :: IO B.Types.GType
instance B.Types.TypedObject Toolbar where
glibType :: IO GType
glibType = IO GType
c_gtk_toolbar_get_type
instance B.Types.GObject Toolbar
instance B.GValue.IsGValue Toolbar where
toGValue :: Toolbar -> IO GValue
toGValue Toolbar
o = do
GType
gtype <- IO GType
c_gtk_toolbar_get_type
Toolbar -> (Ptr Toolbar -> IO GValue) -> IO GValue
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
B.ManagedPtr.withManagedPtr Toolbar
o (GType
-> (GValue -> Ptr Toolbar -> IO ()) -> Ptr Toolbar -> IO GValue
forall a. GType -> (GValue -> a -> IO ()) -> a -> IO GValue
B.GValue.buildGValue GType
gtype GValue -> Ptr Toolbar -> IO ()
forall a. GObject a => GValue -> Ptr a -> IO ()
B.GValue.set_object)
fromGValue :: GValue -> IO Toolbar
fromGValue GValue
gv = do
Ptr Toolbar
ptr <- GValue -> IO (Ptr Toolbar)
forall b. GObject b => GValue -> IO (Ptr b)
B.GValue.get_object GValue
gv :: IO (Ptr Toolbar)
(ManagedPtr Toolbar -> Toolbar) -> Ptr Toolbar -> IO Toolbar
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
B.ManagedPtr.newObject ManagedPtr Toolbar -> Toolbar
Toolbar Ptr Toolbar
ptr
class (SP.GObject o, O.IsDescendantOf Toolbar o) => IsToolbar o
instance (SP.GObject o, O.IsDescendantOf Toolbar o) => IsToolbar o
instance O.HasParentTypes Toolbar
type instance O.ParentTypes Toolbar = '[Gtk.Container.Container, Gtk.Widget.Widget, GObject.Object.Object, Atk.ImplementorIface.ImplementorIface, Gtk.Buildable.Buildable, Gtk.Orientable.Orientable, Gtk.ToolShell.ToolShell]
toToolbar :: (MonadIO m, IsToolbar o) => o -> m Toolbar
toToolbar :: o -> m Toolbar
toToolbar = IO Toolbar -> m Toolbar
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Toolbar -> m Toolbar) -> (o -> IO Toolbar) -> o -> m Toolbar
forall b c a. (b -> c) -> (a -> b) -> a -> c
. (ManagedPtr Toolbar -> Toolbar) -> o -> IO Toolbar
forall o o'.
(HasCallStack, ManagedPtrNewtype o, TypedObject o,
ManagedPtrNewtype o', TypedObject o') =>
(ManagedPtr o' -> o') -> o -> IO o'
unsafeCastTo ManagedPtr Toolbar -> Toolbar
Toolbar
#if defined(ENABLE_OVERLOADING)
type family ResolveToolbarMethod (t :: Symbol) (o :: *) :: * where
ResolveToolbarMethod "activate" o = Gtk.Widget.WidgetActivateMethodInfo
ResolveToolbarMethod "add" o = Gtk.Container.ContainerAddMethodInfo
ResolveToolbarMethod "addAccelerator" o = Gtk.Widget.WidgetAddAcceleratorMethodInfo
ResolveToolbarMethod "addChild" o = Gtk.Buildable.BuildableAddChildMethodInfo
ResolveToolbarMethod "addDeviceEvents" o = Gtk.Widget.WidgetAddDeviceEventsMethodInfo
ResolveToolbarMethod "addEvents" o = Gtk.Widget.WidgetAddEventsMethodInfo
ResolveToolbarMethod "addMnemonicLabel" o = Gtk.Widget.WidgetAddMnemonicLabelMethodInfo
ResolveToolbarMethod "addTickCallback" o = Gtk.Widget.WidgetAddTickCallbackMethodInfo
ResolveToolbarMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolveToolbarMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolveToolbarMethod "canActivateAccel" o = Gtk.Widget.WidgetCanActivateAccelMethodInfo
ResolveToolbarMethod "checkResize" o = Gtk.Container.ContainerCheckResizeMethodInfo
ResolveToolbarMethod "childFocus" o = Gtk.Widget.WidgetChildFocusMethodInfo
ResolveToolbarMethod "childGetProperty" o = Gtk.Container.ContainerChildGetPropertyMethodInfo
ResolveToolbarMethod "childNotify" o = Gtk.Container.ContainerChildNotifyMethodInfo
ResolveToolbarMethod "childNotifyByPspec" o = Gtk.Container.ContainerChildNotifyByPspecMethodInfo
ResolveToolbarMethod "childSetProperty" o = Gtk.Container.ContainerChildSetPropertyMethodInfo
ResolveToolbarMethod "childType" o = Gtk.Container.ContainerChildTypeMethodInfo
ResolveToolbarMethod "classPath" o = Gtk.Widget.WidgetClassPathMethodInfo
ResolveToolbarMethod "computeExpand" o = Gtk.Widget.WidgetComputeExpandMethodInfo
ResolveToolbarMethod "constructChild" o = Gtk.Buildable.BuildableConstructChildMethodInfo
ResolveToolbarMethod "createPangoContext" o = Gtk.Widget.WidgetCreatePangoContextMethodInfo
ResolveToolbarMethod "createPangoLayout" o = Gtk.Widget.WidgetCreatePangoLayoutMethodInfo
ResolveToolbarMethod "customFinished" o = Gtk.Buildable.BuildableCustomFinishedMethodInfo
ResolveToolbarMethod "customTagEnd" o = Gtk.Buildable.BuildableCustomTagEndMethodInfo
ResolveToolbarMethod "customTagStart" o = Gtk.Buildable.BuildableCustomTagStartMethodInfo
ResolveToolbarMethod "destroy" o = Gtk.Widget.WidgetDestroyMethodInfo
ResolveToolbarMethod "destroyed" o = Gtk.Widget.WidgetDestroyedMethodInfo
ResolveToolbarMethod "deviceIsShadowed" o = Gtk.Widget.WidgetDeviceIsShadowedMethodInfo
ResolveToolbarMethod "dragBegin" o = Gtk.Widget.WidgetDragBeginMethodInfo
ResolveToolbarMethod "dragBeginWithCoordinates" o = Gtk.Widget.WidgetDragBeginWithCoordinatesMethodInfo
ResolveToolbarMethod "dragCheckThreshold" o = Gtk.Widget.WidgetDragCheckThresholdMethodInfo
ResolveToolbarMethod "dragDestAddImageTargets" o = Gtk.Widget.WidgetDragDestAddImageTargetsMethodInfo
ResolveToolbarMethod "dragDestAddTextTargets" o = Gtk.Widget.WidgetDragDestAddTextTargetsMethodInfo
ResolveToolbarMethod "dragDestAddUriTargets" o = Gtk.Widget.WidgetDragDestAddUriTargetsMethodInfo
ResolveToolbarMethod "dragDestFindTarget" o = Gtk.Widget.WidgetDragDestFindTargetMethodInfo
ResolveToolbarMethod "dragDestGetTargetList" o = Gtk.Widget.WidgetDragDestGetTargetListMethodInfo
ResolveToolbarMethod "dragDestGetTrackMotion" o = Gtk.Widget.WidgetDragDestGetTrackMotionMethodInfo
ResolveToolbarMethod "dragDestSet" o = Gtk.Widget.WidgetDragDestSetMethodInfo
ResolveToolbarMethod "dragDestSetProxy" o = Gtk.Widget.WidgetDragDestSetProxyMethodInfo
ResolveToolbarMethod "dragDestSetTargetList" o = Gtk.Widget.WidgetDragDestSetTargetListMethodInfo
ResolveToolbarMethod "dragDestSetTrackMotion" o = Gtk.Widget.WidgetDragDestSetTrackMotionMethodInfo
ResolveToolbarMethod "dragDestUnset" o = Gtk.Widget.WidgetDragDestUnsetMethodInfo
ResolveToolbarMethod "dragGetData" o = Gtk.Widget.WidgetDragGetDataMethodInfo
ResolveToolbarMethod "dragHighlight" o = Gtk.Widget.WidgetDragHighlightMethodInfo
ResolveToolbarMethod "dragSourceAddImageTargets" o = Gtk.Widget.WidgetDragSourceAddImageTargetsMethodInfo
ResolveToolbarMethod "dragSourceAddTextTargets" o = Gtk.Widget.WidgetDragSourceAddTextTargetsMethodInfo
ResolveToolbarMethod "dragSourceAddUriTargets" o = Gtk.Widget.WidgetDragSourceAddUriTargetsMethodInfo
ResolveToolbarMethod "dragSourceGetTargetList" o = Gtk.Widget.WidgetDragSourceGetTargetListMethodInfo
ResolveToolbarMethod "dragSourceSet" o = Gtk.Widget.WidgetDragSourceSetMethodInfo
ResolveToolbarMethod "dragSourceSetIconGicon" o = Gtk.Widget.WidgetDragSourceSetIconGiconMethodInfo
ResolveToolbarMethod "dragSourceSetIconName" o = Gtk.Widget.WidgetDragSourceSetIconNameMethodInfo
ResolveToolbarMethod "dragSourceSetIconPixbuf" o = Gtk.Widget.WidgetDragSourceSetIconPixbufMethodInfo
ResolveToolbarMethod "dragSourceSetIconStock" o = Gtk.Widget.WidgetDragSourceSetIconStockMethodInfo
ResolveToolbarMethod "dragSourceSetTargetList" o = Gtk.Widget.WidgetDragSourceSetTargetListMethodInfo
ResolveToolbarMethod "dragSourceUnset" o = Gtk.Widget.WidgetDragSourceUnsetMethodInfo
ResolveToolbarMethod "dragUnhighlight" o = Gtk.Widget.WidgetDragUnhighlightMethodInfo
ResolveToolbarMethod "draw" o = Gtk.Widget.WidgetDrawMethodInfo
ResolveToolbarMethod "ensureStyle" o = Gtk.Widget.WidgetEnsureStyleMethodInfo
ResolveToolbarMethod "errorBell" o = Gtk.Widget.WidgetErrorBellMethodInfo
ResolveToolbarMethod "event" o = Gtk.Widget.WidgetEventMethodInfo
ResolveToolbarMethod "forall" o = Gtk.Container.ContainerForallMethodInfo
ResolveToolbarMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolveToolbarMethod "foreach" o = Gtk.Container.ContainerForeachMethodInfo
ResolveToolbarMethod "freezeChildNotify" o = Gtk.Widget.WidgetFreezeChildNotifyMethodInfo
ResolveToolbarMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolveToolbarMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
ResolveToolbarMethod "grabAdd" o = Gtk.Widget.WidgetGrabAddMethodInfo
ResolveToolbarMethod "grabDefault" o = Gtk.Widget.WidgetGrabDefaultMethodInfo
ResolveToolbarMethod "grabFocus" o = Gtk.Widget.WidgetGrabFocusMethodInfo
ResolveToolbarMethod "grabRemove" o = Gtk.Widget.WidgetGrabRemoveMethodInfo
ResolveToolbarMethod "hasDefault" o = Gtk.Widget.WidgetHasDefaultMethodInfo
ResolveToolbarMethod "hasFocus" o = Gtk.Widget.WidgetHasFocusMethodInfo
ResolveToolbarMethod "hasGrab" o = Gtk.Widget.WidgetHasGrabMethodInfo
ResolveToolbarMethod "hasRcStyle" o = Gtk.Widget.WidgetHasRcStyleMethodInfo
ResolveToolbarMethod "hasScreen" o = Gtk.Widget.WidgetHasScreenMethodInfo
ResolveToolbarMethod "hasVisibleFocus" o = Gtk.Widget.WidgetHasVisibleFocusMethodInfo
ResolveToolbarMethod "hide" o = Gtk.Widget.WidgetHideMethodInfo
ResolveToolbarMethod "hideOnDelete" o = Gtk.Widget.WidgetHideOnDeleteMethodInfo
ResolveToolbarMethod "inDestruction" o = Gtk.Widget.WidgetInDestructionMethodInfo
ResolveToolbarMethod "initTemplate" o = Gtk.Widget.WidgetInitTemplateMethodInfo
ResolveToolbarMethod "inputShapeCombineRegion" o = Gtk.Widget.WidgetInputShapeCombineRegionMethodInfo
ResolveToolbarMethod "insert" o = ToolbarInsertMethodInfo
ResolveToolbarMethod "insertActionGroup" o = Gtk.Widget.WidgetInsertActionGroupMethodInfo
ResolveToolbarMethod "intersect" o = Gtk.Widget.WidgetIntersectMethodInfo
ResolveToolbarMethod "isAncestor" o = Gtk.Widget.WidgetIsAncestorMethodInfo
ResolveToolbarMethod "isComposited" o = Gtk.Widget.WidgetIsCompositedMethodInfo
ResolveToolbarMethod "isDrawable" o = Gtk.Widget.WidgetIsDrawableMethodInfo
ResolveToolbarMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolveToolbarMethod "isFocus" o = Gtk.Widget.WidgetIsFocusMethodInfo
ResolveToolbarMethod "isSensitive" o = Gtk.Widget.WidgetIsSensitiveMethodInfo
ResolveToolbarMethod "isToplevel" o = Gtk.Widget.WidgetIsToplevelMethodInfo
ResolveToolbarMethod "isVisible" o = Gtk.Widget.WidgetIsVisibleMethodInfo
ResolveToolbarMethod "keynavFailed" o = Gtk.Widget.WidgetKeynavFailedMethodInfo
ResolveToolbarMethod "listAccelClosures" o = Gtk.Widget.WidgetListAccelClosuresMethodInfo
ResolveToolbarMethod "listActionPrefixes" o = Gtk.Widget.WidgetListActionPrefixesMethodInfo
ResolveToolbarMethod "listMnemonicLabels" o = Gtk.Widget.WidgetListMnemonicLabelsMethodInfo
ResolveToolbarMethod "map" o = Gtk.Widget.WidgetMapMethodInfo
ResolveToolbarMethod "mnemonicActivate" o = Gtk.Widget.WidgetMnemonicActivateMethodInfo
ResolveToolbarMethod "modifyBase" o = Gtk.Widget.WidgetModifyBaseMethodInfo
ResolveToolbarMethod "modifyBg" o = Gtk.Widget.WidgetModifyBgMethodInfo
ResolveToolbarMethod "modifyCursor" o = Gtk.Widget.WidgetModifyCursorMethodInfo
ResolveToolbarMethod "modifyFg" o = Gtk.Widget.WidgetModifyFgMethodInfo
ResolveToolbarMethod "modifyFont" o = Gtk.Widget.WidgetModifyFontMethodInfo
ResolveToolbarMethod "modifyStyle" o = Gtk.Widget.WidgetModifyStyleMethodInfo
ResolveToolbarMethod "modifyText" o = Gtk.Widget.WidgetModifyTextMethodInfo
ResolveToolbarMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolveToolbarMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolveToolbarMethod "overrideBackgroundColor" o = Gtk.Widget.WidgetOverrideBackgroundColorMethodInfo
ResolveToolbarMethod "overrideColor" o = Gtk.Widget.WidgetOverrideColorMethodInfo
ResolveToolbarMethod "overrideCursor" o = Gtk.Widget.WidgetOverrideCursorMethodInfo
ResolveToolbarMethod "overrideFont" o = Gtk.Widget.WidgetOverrideFontMethodInfo
ResolveToolbarMethod "overrideSymbolicColor" o = Gtk.Widget.WidgetOverrideSymbolicColorMethodInfo
ResolveToolbarMethod "parserFinished" o = Gtk.Buildable.BuildableParserFinishedMethodInfo
ResolveToolbarMethod "path" o = Gtk.Widget.WidgetPathMethodInfo
ResolveToolbarMethod "propagateDraw" o = Gtk.Container.ContainerPropagateDrawMethodInfo
ResolveToolbarMethod "queueAllocate" o = Gtk.Widget.WidgetQueueAllocateMethodInfo
ResolveToolbarMethod "queueComputeExpand" o = Gtk.Widget.WidgetQueueComputeExpandMethodInfo
ResolveToolbarMethod "queueDraw" o = Gtk.Widget.WidgetQueueDrawMethodInfo
ResolveToolbarMethod "queueDrawArea" o = Gtk.Widget.WidgetQueueDrawAreaMethodInfo
ResolveToolbarMethod "queueDrawRegion" o = Gtk.Widget.WidgetQueueDrawRegionMethodInfo
ResolveToolbarMethod "queueResize" o = Gtk.Widget.WidgetQueueResizeMethodInfo
ResolveToolbarMethod "queueResizeNoRedraw" o = Gtk.Widget.WidgetQueueResizeNoRedrawMethodInfo
ResolveToolbarMethod "realize" o = Gtk.Widget.WidgetRealizeMethodInfo
ResolveToolbarMethod "rebuildMenu" o = Gtk.ToolShell.ToolShellRebuildMenuMethodInfo
ResolveToolbarMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolveToolbarMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolveToolbarMethod "regionIntersect" o = Gtk.Widget.WidgetRegionIntersectMethodInfo
ResolveToolbarMethod "registerWindow" o = Gtk.Widget.WidgetRegisterWindowMethodInfo
ResolveToolbarMethod "remove" o = Gtk.Container.ContainerRemoveMethodInfo
ResolveToolbarMethod "removeAccelerator" o = Gtk.Widget.WidgetRemoveAcceleratorMethodInfo
ResolveToolbarMethod "removeMnemonicLabel" o = Gtk.Widget.WidgetRemoveMnemonicLabelMethodInfo
ResolveToolbarMethod "removeTickCallback" o = Gtk.Widget.WidgetRemoveTickCallbackMethodInfo
ResolveToolbarMethod "renderIcon" o = Gtk.Widget.WidgetRenderIconMethodInfo
ResolveToolbarMethod "renderIconPixbuf" o = Gtk.Widget.WidgetRenderIconPixbufMethodInfo
ResolveToolbarMethod "reparent" o = Gtk.Widget.WidgetReparentMethodInfo
ResolveToolbarMethod "resetRcStyles" o = Gtk.Widget.WidgetResetRcStylesMethodInfo
ResolveToolbarMethod "resetStyle" o = Gtk.Widget.WidgetResetStyleMethodInfo
ResolveToolbarMethod "resizeChildren" o = Gtk.Container.ContainerResizeChildrenMethodInfo
ResolveToolbarMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolveToolbarMethod "sendExpose" o = Gtk.Widget.WidgetSendExposeMethodInfo
ResolveToolbarMethod "sendFocusChange" o = Gtk.Widget.WidgetSendFocusChangeMethodInfo
ResolveToolbarMethod "shapeCombineRegion" o = Gtk.Widget.WidgetShapeCombineRegionMethodInfo
ResolveToolbarMethod "show" o = Gtk.Widget.WidgetShowMethodInfo
ResolveToolbarMethod "showAll" o = Gtk.Widget.WidgetShowAllMethodInfo
ResolveToolbarMethod "showNow" o = Gtk.Widget.WidgetShowNowMethodInfo
ResolveToolbarMethod "sizeAllocate" o = Gtk.Widget.WidgetSizeAllocateMethodInfo
ResolveToolbarMethod "sizeAllocateWithBaseline" o = Gtk.Widget.WidgetSizeAllocateWithBaselineMethodInfo
ResolveToolbarMethod "sizeRequest" o = Gtk.Widget.WidgetSizeRequestMethodInfo
ResolveToolbarMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolveToolbarMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolveToolbarMethod "styleAttach" o = Gtk.Widget.WidgetStyleAttachMethodInfo
ResolveToolbarMethod "styleGetProperty" o = Gtk.Widget.WidgetStyleGetPropertyMethodInfo
ResolveToolbarMethod "thawChildNotify" o = Gtk.Widget.WidgetThawChildNotifyMethodInfo
ResolveToolbarMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolveToolbarMethod "translateCoordinates" o = Gtk.Widget.WidgetTranslateCoordinatesMethodInfo
ResolveToolbarMethod "triggerTooltipQuery" o = Gtk.Widget.WidgetTriggerTooltipQueryMethodInfo
ResolveToolbarMethod "unmap" o = Gtk.Widget.WidgetUnmapMethodInfo
ResolveToolbarMethod "unparent" o = Gtk.Widget.WidgetUnparentMethodInfo
ResolveToolbarMethod "unrealize" o = Gtk.Widget.WidgetUnrealizeMethodInfo
ResolveToolbarMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolveToolbarMethod "unregisterWindow" o = Gtk.Widget.WidgetUnregisterWindowMethodInfo
ResolveToolbarMethod "unsetFocusChain" o = Gtk.Container.ContainerUnsetFocusChainMethodInfo
ResolveToolbarMethod "unsetIconSize" o = ToolbarUnsetIconSizeMethodInfo
ResolveToolbarMethod "unsetStateFlags" o = Gtk.Widget.WidgetUnsetStateFlagsMethodInfo
ResolveToolbarMethod "unsetStyle" o = ToolbarUnsetStyleMethodInfo
ResolveToolbarMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolveToolbarMethod "getAccessible" o = Gtk.Widget.WidgetGetAccessibleMethodInfo
ResolveToolbarMethod "getActionGroup" o = Gtk.Widget.WidgetGetActionGroupMethodInfo
ResolveToolbarMethod "getAllocatedBaseline" o = Gtk.Widget.WidgetGetAllocatedBaselineMethodInfo
ResolveToolbarMethod "getAllocatedHeight" o = Gtk.Widget.WidgetGetAllocatedHeightMethodInfo
ResolveToolbarMethod "getAllocatedSize" o = Gtk.Widget.WidgetGetAllocatedSizeMethodInfo
ResolveToolbarMethod "getAllocatedWidth" o = Gtk.Widget.WidgetGetAllocatedWidthMethodInfo
ResolveToolbarMethod "getAllocation" o = Gtk.Widget.WidgetGetAllocationMethodInfo
ResolveToolbarMethod "getAncestor" o = Gtk.Widget.WidgetGetAncestorMethodInfo
ResolveToolbarMethod "getAppPaintable" o = Gtk.Widget.WidgetGetAppPaintableMethodInfo
ResolveToolbarMethod "getBorderWidth" o = Gtk.Container.ContainerGetBorderWidthMethodInfo
ResolveToolbarMethod "getCanDefault" o = Gtk.Widget.WidgetGetCanDefaultMethodInfo
ResolveToolbarMethod "getCanFocus" o = Gtk.Widget.WidgetGetCanFocusMethodInfo
ResolveToolbarMethod "getChildRequisition" o = Gtk.Widget.WidgetGetChildRequisitionMethodInfo
ResolveToolbarMethod "getChildVisible" o = Gtk.Widget.WidgetGetChildVisibleMethodInfo
ResolveToolbarMethod "getChildren" o = Gtk.Container.ContainerGetChildrenMethodInfo
ResolveToolbarMethod "getClip" o = Gtk.Widget.WidgetGetClipMethodInfo
ResolveToolbarMethod "getClipboard" o = Gtk.Widget.WidgetGetClipboardMethodInfo
ResolveToolbarMethod "getCompositeName" o = Gtk.Widget.WidgetGetCompositeNameMethodInfo
ResolveToolbarMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolveToolbarMethod "getDeviceEnabled" o = Gtk.Widget.WidgetGetDeviceEnabledMethodInfo
ResolveToolbarMethod "getDeviceEvents" o = Gtk.Widget.WidgetGetDeviceEventsMethodInfo
ResolveToolbarMethod "getDirection" o = Gtk.Widget.WidgetGetDirectionMethodInfo
ResolveToolbarMethod "getDisplay" o = Gtk.Widget.WidgetGetDisplayMethodInfo
ResolveToolbarMethod "getDoubleBuffered" o = Gtk.Widget.WidgetGetDoubleBufferedMethodInfo
ResolveToolbarMethod "getDropIndex" o = ToolbarGetDropIndexMethodInfo
ResolveToolbarMethod "getEllipsizeMode" o = Gtk.ToolShell.ToolShellGetEllipsizeModeMethodInfo
ResolveToolbarMethod "getEvents" o = Gtk.Widget.WidgetGetEventsMethodInfo
ResolveToolbarMethod "getFocusChain" o = Gtk.Container.ContainerGetFocusChainMethodInfo
ResolveToolbarMethod "getFocusChild" o = Gtk.Container.ContainerGetFocusChildMethodInfo
ResolveToolbarMethod "getFocusHadjustment" o = Gtk.Container.ContainerGetFocusHadjustmentMethodInfo
ResolveToolbarMethod "getFocusOnClick" o = Gtk.Widget.WidgetGetFocusOnClickMethodInfo
ResolveToolbarMethod "getFocusVadjustment" o = Gtk.Container.ContainerGetFocusVadjustmentMethodInfo
ResolveToolbarMethod "getFontMap" o = Gtk.Widget.WidgetGetFontMapMethodInfo
ResolveToolbarMethod "getFontOptions" o = Gtk.Widget.WidgetGetFontOptionsMethodInfo
ResolveToolbarMethod "getFrameClock" o = Gtk.Widget.WidgetGetFrameClockMethodInfo
ResolveToolbarMethod "getHalign" o = Gtk.Widget.WidgetGetHalignMethodInfo
ResolveToolbarMethod "getHasTooltip" o = Gtk.Widget.WidgetGetHasTooltipMethodInfo
ResolveToolbarMethod "getHasWindow" o = Gtk.Widget.WidgetGetHasWindowMethodInfo
ResolveToolbarMethod "getHexpand" o = Gtk.Widget.WidgetGetHexpandMethodInfo
ResolveToolbarMethod "getHexpandSet" o = Gtk.Widget.WidgetGetHexpandSetMethodInfo
ResolveToolbarMethod "getIconSize" o = ToolbarGetIconSizeMethodInfo
ResolveToolbarMethod "getInternalChild" o = Gtk.Buildable.BuildableGetInternalChildMethodInfo
ResolveToolbarMethod "getItemIndex" o = ToolbarGetItemIndexMethodInfo
ResolveToolbarMethod "getMapped" o = Gtk.Widget.WidgetGetMappedMethodInfo
ResolveToolbarMethod "getMarginBottom" o = Gtk.Widget.WidgetGetMarginBottomMethodInfo
ResolveToolbarMethod "getMarginEnd" o = Gtk.Widget.WidgetGetMarginEndMethodInfo
ResolveToolbarMethod "getMarginLeft" o = Gtk.Widget.WidgetGetMarginLeftMethodInfo
ResolveToolbarMethod "getMarginRight" o = Gtk.Widget.WidgetGetMarginRightMethodInfo
ResolveToolbarMethod "getMarginStart" o = Gtk.Widget.WidgetGetMarginStartMethodInfo
ResolveToolbarMethod "getMarginTop" o = Gtk.Widget.WidgetGetMarginTopMethodInfo
ResolveToolbarMethod "getModifierMask" o = Gtk.Widget.WidgetGetModifierMaskMethodInfo
ResolveToolbarMethod "getModifierStyle" o = Gtk.Widget.WidgetGetModifierStyleMethodInfo
ResolveToolbarMethod "getNItems" o = ToolbarGetNItemsMethodInfo
ResolveToolbarMethod "getName" o = Gtk.Widget.WidgetGetNameMethodInfo
ResolveToolbarMethod "getNoShowAll" o = Gtk.Widget.WidgetGetNoShowAllMethodInfo
ResolveToolbarMethod "getNthItem" o = ToolbarGetNthItemMethodInfo
ResolveToolbarMethod "getOpacity" o = Gtk.Widget.WidgetGetOpacityMethodInfo
ResolveToolbarMethod "getOrientation" o = Gtk.Orientable.OrientableGetOrientationMethodInfo
ResolveToolbarMethod "getPangoContext" o = Gtk.Widget.WidgetGetPangoContextMethodInfo
ResolveToolbarMethod "getParent" o = Gtk.Widget.WidgetGetParentMethodInfo
ResolveToolbarMethod "getParentWindow" o = Gtk.Widget.WidgetGetParentWindowMethodInfo
ResolveToolbarMethod "getPath" o = Gtk.Widget.WidgetGetPathMethodInfo
ResolveToolbarMethod "getPathForChild" o = Gtk.Container.ContainerGetPathForChildMethodInfo
ResolveToolbarMethod "getPointer" o = Gtk.Widget.WidgetGetPointerMethodInfo
ResolveToolbarMethod "getPreferredHeight" o = Gtk.Widget.WidgetGetPreferredHeightMethodInfo
ResolveToolbarMethod "getPreferredHeightAndBaselineForWidth" o = Gtk.Widget.WidgetGetPreferredHeightAndBaselineForWidthMethodInfo
ResolveToolbarMethod "getPreferredHeightForWidth" o = Gtk.Widget.WidgetGetPreferredHeightForWidthMethodInfo
ResolveToolbarMethod "getPreferredSize" o = Gtk.Widget.WidgetGetPreferredSizeMethodInfo
ResolveToolbarMethod "getPreferredWidth" o = Gtk.Widget.WidgetGetPreferredWidthMethodInfo
ResolveToolbarMethod "getPreferredWidthForHeight" o = Gtk.Widget.WidgetGetPreferredWidthForHeightMethodInfo
ResolveToolbarMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolveToolbarMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolveToolbarMethod "getRealized" o = Gtk.Widget.WidgetGetRealizedMethodInfo
ResolveToolbarMethod "getReceivesDefault" o = Gtk.Widget.WidgetGetReceivesDefaultMethodInfo
ResolveToolbarMethod "getReliefStyle" o = ToolbarGetReliefStyleMethodInfo
ResolveToolbarMethod "getRequestMode" o = Gtk.Widget.WidgetGetRequestModeMethodInfo
ResolveToolbarMethod "getRequisition" o = Gtk.Widget.WidgetGetRequisitionMethodInfo
ResolveToolbarMethod "getResizeMode" o = Gtk.Container.ContainerGetResizeModeMethodInfo
ResolveToolbarMethod "getRootWindow" o = Gtk.Widget.WidgetGetRootWindowMethodInfo
ResolveToolbarMethod "getScaleFactor" o = Gtk.Widget.WidgetGetScaleFactorMethodInfo
ResolveToolbarMethod "getScreen" o = Gtk.Widget.WidgetGetScreenMethodInfo
ResolveToolbarMethod "getSensitive" o = Gtk.Widget.WidgetGetSensitiveMethodInfo
ResolveToolbarMethod "getSettings" o = Gtk.Widget.WidgetGetSettingsMethodInfo
ResolveToolbarMethod "getShowArrow" o = ToolbarGetShowArrowMethodInfo
ResolveToolbarMethod "getSizeRequest" o = Gtk.Widget.WidgetGetSizeRequestMethodInfo
ResolveToolbarMethod "getState" o = Gtk.Widget.WidgetGetStateMethodInfo
ResolveToolbarMethod "getStateFlags" o = Gtk.Widget.WidgetGetStateFlagsMethodInfo
ResolveToolbarMethod "getStyle" o = ToolbarGetStyleMethodInfo
ResolveToolbarMethod "getStyleContext" o = Gtk.Widget.WidgetGetStyleContextMethodInfo
ResolveToolbarMethod "getSupportMultidevice" o = Gtk.Widget.WidgetGetSupportMultideviceMethodInfo
ResolveToolbarMethod "getTemplateChild" o = Gtk.Widget.WidgetGetTemplateChildMethodInfo
ResolveToolbarMethod "getTextAlignment" o = Gtk.ToolShell.ToolShellGetTextAlignmentMethodInfo
ResolveToolbarMethod "getTextOrientation" o = Gtk.ToolShell.ToolShellGetTextOrientationMethodInfo
ResolveToolbarMethod "getTextSizeGroup" o = Gtk.ToolShell.ToolShellGetTextSizeGroupMethodInfo
ResolveToolbarMethod "getTooltipMarkup" o = Gtk.Widget.WidgetGetTooltipMarkupMethodInfo
ResolveToolbarMethod "getTooltipText" o = Gtk.Widget.WidgetGetTooltipTextMethodInfo
ResolveToolbarMethod "getTooltipWindow" o = Gtk.Widget.WidgetGetTooltipWindowMethodInfo
ResolveToolbarMethod "getToplevel" o = Gtk.Widget.WidgetGetToplevelMethodInfo
ResolveToolbarMethod "getValign" o = Gtk.Widget.WidgetGetValignMethodInfo
ResolveToolbarMethod "getValignWithBaseline" o = Gtk.Widget.WidgetGetValignWithBaselineMethodInfo
ResolveToolbarMethod "getVexpand" o = Gtk.Widget.WidgetGetVexpandMethodInfo
ResolveToolbarMethod "getVexpandSet" o = Gtk.Widget.WidgetGetVexpandSetMethodInfo
ResolveToolbarMethod "getVisible" o = Gtk.Widget.WidgetGetVisibleMethodInfo
ResolveToolbarMethod "getVisual" o = Gtk.Widget.WidgetGetVisualMethodInfo
ResolveToolbarMethod "getWindow" o = Gtk.Widget.WidgetGetWindowMethodInfo
ResolveToolbarMethod "setAccelPath" o = Gtk.Widget.WidgetSetAccelPathMethodInfo
ResolveToolbarMethod "setAllocation" o = Gtk.Widget.WidgetSetAllocationMethodInfo
ResolveToolbarMethod "setAppPaintable" o = Gtk.Widget.WidgetSetAppPaintableMethodInfo
ResolveToolbarMethod "setBorderWidth" o = Gtk.Container.ContainerSetBorderWidthMethodInfo
ResolveToolbarMethod "setBuildableProperty" o = Gtk.Buildable.BuildableSetBuildablePropertyMethodInfo
ResolveToolbarMethod "setCanDefault" o = Gtk.Widget.WidgetSetCanDefaultMethodInfo
ResolveToolbarMethod "setCanFocus" o = Gtk.Widget.WidgetSetCanFocusMethodInfo
ResolveToolbarMethod "setChildVisible" o = Gtk.Widget.WidgetSetChildVisibleMethodInfo
ResolveToolbarMethod "setClip" o = Gtk.Widget.WidgetSetClipMethodInfo
ResolveToolbarMethod "setCompositeName" o = Gtk.Widget.WidgetSetCompositeNameMethodInfo
ResolveToolbarMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolveToolbarMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
ResolveToolbarMethod "setDeviceEnabled" o = Gtk.Widget.WidgetSetDeviceEnabledMethodInfo
ResolveToolbarMethod "setDeviceEvents" o = Gtk.Widget.WidgetSetDeviceEventsMethodInfo
ResolveToolbarMethod "setDirection" o = Gtk.Widget.WidgetSetDirectionMethodInfo
ResolveToolbarMethod "setDoubleBuffered" o = Gtk.Widget.WidgetSetDoubleBufferedMethodInfo
ResolveToolbarMethod "setDropHighlightItem" o = ToolbarSetDropHighlightItemMethodInfo
ResolveToolbarMethod "setEvents" o = Gtk.Widget.WidgetSetEventsMethodInfo
ResolveToolbarMethod "setFocusChain" o = Gtk.Container.ContainerSetFocusChainMethodInfo
ResolveToolbarMethod "setFocusChild" o = Gtk.Container.ContainerSetFocusChildMethodInfo
ResolveToolbarMethod "setFocusHadjustment" o = Gtk.Container.ContainerSetFocusHadjustmentMethodInfo
ResolveToolbarMethod "setFocusOnClick" o = Gtk.Widget.WidgetSetFocusOnClickMethodInfo
ResolveToolbarMethod "setFocusVadjustment" o = Gtk.Container.ContainerSetFocusVadjustmentMethodInfo
ResolveToolbarMethod "setFontMap" o = Gtk.Widget.WidgetSetFontMapMethodInfo
ResolveToolbarMethod "setFontOptions" o = Gtk.Widget.WidgetSetFontOptionsMethodInfo
ResolveToolbarMethod "setHalign" o = Gtk.Widget.WidgetSetHalignMethodInfo
ResolveToolbarMethod "setHasTooltip" o = Gtk.Widget.WidgetSetHasTooltipMethodInfo
ResolveToolbarMethod "setHasWindow" o = Gtk.Widget.WidgetSetHasWindowMethodInfo
ResolveToolbarMethod "setHexpand" o = Gtk.Widget.WidgetSetHexpandMethodInfo
ResolveToolbarMethod "setHexpandSet" o = Gtk.Widget.WidgetSetHexpandSetMethodInfo
ResolveToolbarMethod "setIconSize" o = ToolbarSetIconSizeMethodInfo
ResolveToolbarMethod "setMapped" o = Gtk.Widget.WidgetSetMappedMethodInfo
ResolveToolbarMethod "setMarginBottom" o = Gtk.Widget.WidgetSetMarginBottomMethodInfo
ResolveToolbarMethod "setMarginEnd" o = Gtk.Widget.WidgetSetMarginEndMethodInfo
ResolveToolbarMethod "setMarginLeft" o = Gtk.Widget.WidgetSetMarginLeftMethodInfo
ResolveToolbarMethod "setMarginRight" o = Gtk.Widget.WidgetSetMarginRightMethodInfo
ResolveToolbarMethod "setMarginStart" o = Gtk.Widget.WidgetSetMarginStartMethodInfo
ResolveToolbarMethod "setMarginTop" o = Gtk.Widget.WidgetSetMarginTopMethodInfo
ResolveToolbarMethod "setName" o = Gtk.Widget.WidgetSetNameMethodInfo
ResolveToolbarMethod "setNoShowAll" o = Gtk.Widget.WidgetSetNoShowAllMethodInfo
ResolveToolbarMethod "setOpacity" o = Gtk.Widget.WidgetSetOpacityMethodInfo
ResolveToolbarMethod "setOrientation" o = Gtk.Orientable.OrientableSetOrientationMethodInfo
ResolveToolbarMethod "setParent" o = Gtk.Widget.WidgetSetParentMethodInfo
ResolveToolbarMethod "setParentWindow" o = Gtk.Widget.WidgetSetParentWindowMethodInfo
ResolveToolbarMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolveToolbarMethod "setRealized" o = Gtk.Widget.WidgetSetRealizedMethodInfo
ResolveToolbarMethod "setReallocateRedraws" o = Gtk.Container.ContainerSetReallocateRedrawsMethodInfo
ResolveToolbarMethod "setReceivesDefault" o = Gtk.Widget.WidgetSetReceivesDefaultMethodInfo
ResolveToolbarMethod "setRedrawOnAllocate" o = Gtk.Widget.WidgetSetRedrawOnAllocateMethodInfo
ResolveToolbarMethod "setResizeMode" o = Gtk.Container.ContainerSetResizeModeMethodInfo
ResolveToolbarMethod "setSensitive" o = Gtk.Widget.WidgetSetSensitiveMethodInfo
ResolveToolbarMethod "setShowArrow" o = ToolbarSetShowArrowMethodInfo
ResolveToolbarMethod "setSizeRequest" o = Gtk.Widget.WidgetSetSizeRequestMethodInfo
ResolveToolbarMethod "setState" o = Gtk.Widget.WidgetSetStateMethodInfo
ResolveToolbarMethod "setStateFlags" o = Gtk.Widget.WidgetSetStateFlagsMethodInfo
ResolveToolbarMethod "setStyle" o = ToolbarSetStyleMethodInfo
ResolveToolbarMethod "setSupportMultidevice" o = Gtk.Widget.WidgetSetSupportMultideviceMethodInfo
ResolveToolbarMethod "setTooltipMarkup" o = Gtk.Widget.WidgetSetTooltipMarkupMethodInfo
ResolveToolbarMethod "setTooltipText" o = Gtk.Widget.WidgetSetTooltipTextMethodInfo
ResolveToolbarMethod "setTooltipWindow" o = Gtk.Widget.WidgetSetTooltipWindowMethodInfo
ResolveToolbarMethod "setValign" o = Gtk.Widget.WidgetSetValignMethodInfo
ResolveToolbarMethod "setVexpand" o = Gtk.Widget.WidgetSetVexpandMethodInfo
ResolveToolbarMethod "setVexpandSet" o = Gtk.Widget.WidgetSetVexpandSetMethodInfo
ResolveToolbarMethod "setVisible" o = Gtk.Widget.WidgetSetVisibleMethodInfo
ResolveToolbarMethod "setVisual" o = Gtk.Widget.WidgetSetVisualMethodInfo
ResolveToolbarMethod "setWindow" o = Gtk.Widget.WidgetSetWindowMethodInfo
ResolveToolbarMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveToolbarMethod t Toolbar, O.MethodInfo info Toolbar p) => OL.IsLabel t (Toolbar -> p) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.overloadedMethod @info
#else
fromLabel _ = O.overloadedMethod @info
#endif
#endif
type ToolbarFocusHomeOrEndCallback =
Bool
-> IO Bool
noToolbarFocusHomeOrEndCallback :: Maybe ToolbarFocusHomeOrEndCallback
noToolbarFocusHomeOrEndCallback :: Maybe ToolbarFocusHomeOrEndCallback
noToolbarFocusHomeOrEndCallback = Maybe ToolbarFocusHomeOrEndCallback
forall a. Maybe a
Nothing
type C_ToolbarFocusHomeOrEndCallback =
Ptr () ->
CInt ->
Ptr () ->
IO CInt
foreign import ccall "wrapper"
mk_ToolbarFocusHomeOrEndCallback :: C_ToolbarFocusHomeOrEndCallback -> IO (FunPtr C_ToolbarFocusHomeOrEndCallback)
genClosure_ToolbarFocusHomeOrEnd :: MonadIO m => ToolbarFocusHomeOrEndCallback -> m (GClosure C_ToolbarFocusHomeOrEndCallback)
genClosure_ToolbarFocusHomeOrEnd :: ToolbarFocusHomeOrEndCallback
-> m (GClosure C_ToolbarFocusHomeOrEndCallback)
genClosure_ToolbarFocusHomeOrEnd ToolbarFocusHomeOrEndCallback
cb = IO (GClosure C_ToolbarFocusHomeOrEndCallback)
-> m (GClosure C_ToolbarFocusHomeOrEndCallback)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (GClosure C_ToolbarFocusHomeOrEndCallback)
-> m (GClosure C_ToolbarFocusHomeOrEndCallback))
-> IO (GClosure C_ToolbarFocusHomeOrEndCallback)
-> m (GClosure C_ToolbarFocusHomeOrEndCallback)
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_ToolbarFocusHomeOrEndCallback
cb' = ToolbarFocusHomeOrEndCallback -> C_ToolbarFocusHomeOrEndCallback
wrap_ToolbarFocusHomeOrEndCallback ToolbarFocusHomeOrEndCallback
cb
C_ToolbarFocusHomeOrEndCallback
-> IO (FunPtr C_ToolbarFocusHomeOrEndCallback)
mk_ToolbarFocusHomeOrEndCallback C_ToolbarFocusHomeOrEndCallback
cb' IO (FunPtr C_ToolbarFocusHomeOrEndCallback)
-> (FunPtr C_ToolbarFocusHomeOrEndCallback
-> IO (GClosure C_ToolbarFocusHomeOrEndCallback))
-> IO (GClosure C_ToolbarFocusHomeOrEndCallback)
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= FunPtr C_ToolbarFocusHomeOrEndCallback
-> IO (GClosure C_ToolbarFocusHomeOrEndCallback)
forall (m :: * -> *) a. MonadIO m => FunPtr a -> m (GClosure a)
B.GClosure.newGClosure
wrap_ToolbarFocusHomeOrEndCallback ::
ToolbarFocusHomeOrEndCallback ->
C_ToolbarFocusHomeOrEndCallback
wrap_ToolbarFocusHomeOrEndCallback :: ToolbarFocusHomeOrEndCallback -> C_ToolbarFocusHomeOrEndCallback
wrap_ToolbarFocusHomeOrEndCallback ToolbarFocusHomeOrEndCallback
_cb Ptr ()
_ CInt
focusHome Ptr ()
_ = do
let focusHome' :: Bool
focusHome' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
focusHome
Bool
result <- ToolbarFocusHomeOrEndCallback
_cb Bool
focusHome'
let result' :: CInt
result' = (Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CInt) -> (Bool -> Int) -> Bool -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Bool -> Int
forall a. Enum a => a -> Int
fromEnum) Bool
result
CInt -> IO CInt
forall (m :: * -> *) a. Monad m => a -> m a
return CInt
result'
onToolbarFocusHomeOrEnd :: (IsToolbar a, MonadIO m) => a -> ToolbarFocusHomeOrEndCallback -> m SignalHandlerId
onToolbarFocusHomeOrEnd :: a -> ToolbarFocusHomeOrEndCallback -> m SignalHandlerId
onToolbarFocusHomeOrEnd a
obj ToolbarFocusHomeOrEndCallback
cb = IO SignalHandlerId -> m SignalHandlerId
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_ToolbarFocusHomeOrEndCallback
cb' = ToolbarFocusHomeOrEndCallback -> C_ToolbarFocusHomeOrEndCallback
wrap_ToolbarFocusHomeOrEndCallback ToolbarFocusHomeOrEndCallback
cb
FunPtr C_ToolbarFocusHomeOrEndCallback
cb'' <- C_ToolbarFocusHomeOrEndCallback
-> IO (FunPtr C_ToolbarFocusHomeOrEndCallback)
mk_ToolbarFocusHomeOrEndCallback C_ToolbarFocusHomeOrEndCallback
cb'
a
-> Text
-> FunPtr C_ToolbarFocusHomeOrEndCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"focus-home-or-end" FunPtr C_ToolbarFocusHomeOrEndCallback
cb'' SignalConnectMode
SignalConnectBefore Maybe Text
forall a. Maybe a
Nothing
afterToolbarFocusHomeOrEnd :: (IsToolbar a, MonadIO m) => a -> ToolbarFocusHomeOrEndCallback -> m SignalHandlerId
afterToolbarFocusHomeOrEnd :: a -> ToolbarFocusHomeOrEndCallback -> m SignalHandlerId
afterToolbarFocusHomeOrEnd a
obj ToolbarFocusHomeOrEndCallback
cb = IO SignalHandlerId -> m SignalHandlerId
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_ToolbarFocusHomeOrEndCallback
cb' = ToolbarFocusHomeOrEndCallback -> C_ToolbarFocusHomeOrEndCallback
wrap_ToolbarFocusHomeOrEndCallback ToolbarFocusHomeOrEndCallback
cb
FunPtr C_ToolbarFocusHomeOrEndCallback
cb'' <- C_ToolbarFocusHomeOrEndCallback
-> IO (FunPtr C_ToolbarFocusHomeOrEndCallback)
mk_ToolbarFocusHomeOrEndCallback C_ToolbarFocusHomeOrEndCallback
cb'
a
-> Text
-> FunPtr C_ToolbarFocusHomeOrEndCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"focus-home-or-end" FunPtr C_ToolbarFocusHomeOrEndCallback
cb'' SignalConnectMode
SignalConnectAfter Maybe Text
forall a. Maybe a
Nothing
#if defined(ENABLE_OVERLOADING)
data ToolbarFocusHomeOrEndSignalInfo
instance SignalInfo ToolbarFocusHomeOrEndSignalInfo where
type HaskellCallbackType ToolbarFocusHomeOrEndSignalInfo = ToolbarFocusHomeOrEndCallback
connectSignal obj cb connectMode detail = do
let cb' = wrap_ToolbarFocusHomeOrEndCallback cb
cb'' <- mk_ToolbarFocusHomeOrEndCallback cb'
connectSignalFunPtr obj "focus-home-or-end" cb'' connectMode detail
#endif
type ToolbarOrientationChangedCallback =
Gtk.Enums.Orientation
-> IO ()
noToolbarOrientationChangedCallback :: Maybe ToolbarOrientationChangedCallback
noToolbarOrientationChangedCallback :: Maybe ToolbarOrientationChangedCallback
noToolbarOrientationChangedCallback = Maybe ToolbarOrientationChangedCallback
forall a. Maybe a
Nothing
type C_ToolbarOrientationChangedCallback =
Ptr () ->
CUInt ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_ToolbarOrientationChangedCallback :: C_ToolbarOrientationChangedCallback -> IO (FunPtr C_ToolbarOrientationChangedCallback)
genClosure_ToolbarOrientationChanged :: MonadIO m => ToolbarOrientationChangedCallback -> m (GClosure C_ToolbarOrientationChangedCallback)
genClosure_ToolbarOrientationChanged :: ToolbarOrientationChangedCallback
-> m (GClosure C_ToolbarOrientationChangedCallback)
genClosure_ToolbarOrientationChanged ToolbarOrientationChangedCallback
cb = IO (GClosure C_ToolbarOrientationChangedCallback)
-> m (GClosure C_ToolbarOrientationChangedCallback)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (GClosure C_ToolbarOrientationChangedCallback)
-> m (GClosure C_ToolbarOrientationChangedCallback))
-> IO (GClosure C_ToolbarOrientationChangedCallback)
-> m (GClosure C_ToolbarOrientationChangedCallback)
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_ToolbarOrientationChangedCallback
cb' = ToolbarOrientationChangedCallback
-> C_ToolbarOrientationChangedCallback
wrap_ToolbarOrientationChangedCallback ToolbarOrientationChangedCallback
cb
C_ToolbarOrientationChangedCallback
-> IO (FunPtr C_ToolbarOrientationChangedCallback)
mk_ToolbarOrientationChangedCallback C_ToolbarOrientationChangedCallback
cb' IO (FunPtr C_ToolbarOrientationChangedCallback)
-> (FunPtr C_ToolbarOrientationChangedCallback
-> IO (GClosure C_ToolbarOrientationChangedCallback))
-> IO (GClosure C_ToolbarOrientationChangedCallback)
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= FunPtr C_ToolbarOrientationChangedCallback
-> IO (GClosure C_ToolbarOrientationChangedCallback)
forall (m :: * -> *) a. MonadIO m => FunPtr a -> m (GClosure a)
B.GClosure.newGClosure
wrap_ToolbarOrientationChangedCallback ::
ToolbarOrientationChangedCallback ->
C_ToolbarOrientationChangedCallback
wrap_ToolbarOrientationChangedCallback :: ToolbarOrientationChangedCallback
-> C_ToolbarOrientationChangedCallback
wrap_ToolbarOrientationChangedCallback ToolbarOrientationChangedCallback
_cb Ptr ()
_ CUInt
orientation Ptr ()
_ = do
let orientation' :: Orientation
orientation' = (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
orientation
ToolbarOrientationChangedCallback
_cb Orientation
orientation'
onToolbarOrientationChanged :: (IsToolbar a, MonadIO m) => a -> ToolbarOrientationChangedCallback -> m SignalHandlerId
onToolbarOrientationChanged :: a -> ToolbarOrientationChangedCallback -> m SignalHandlerId
onToolbarOrientationChanged a
obj ToolbarOrientationChangedCallback
cb = IO SignalHandlerId -> m SignalHandlerId
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_ToolbarOrientationChangedCallback
cb' = ToolbarOrientationChangedCallback
-> C_ToolbarOrientationChangedCallback
wrap_ToolbarOrientationChangedCallback ToolbarOrientationChangedCallback
cb
FunPtr C_ToolbarOrientationChangedCallback
cb'' <- C_ToolbarOrientationChangedCallback
-> IO (FunPtr C_ToolbarOrientationChangedCallback)
mk_ToolbarOrientationChangedCallback C_ToolbarOrientationChangedCallback
cb'
a
-> Text
-> FunPtr C_ToolbarOrientationChangedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"orientation-changed" FunPtr C_ToolbarOrientationChangedCallback
cb'' SignalConnectMode
SignalConnectBefore Maybe Text
forall a. Maybe a
Nothing
afterToolbarOrientationChanged :: (IsToolbar a, MonadIO m) => a -> ToolbarOrientationChangedCallback -> m SignalHandlerId
afterToolbarOrientationChanged :: a -> ToolbarOrientationChangedCallback -> m SignalHandlerId
afterToolbarOrientationChanged a
obj ToolbarOrientationChangedCallback
cb = IO SignalHandlerId -> m SignalHandlerId
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_ToolbarOrientationChangedCallback
cb' = ToolbarOrientationChangedCallback
-> C_ToolbarOrientationChangedCallback
wrap_ToolbarOrientationChangedCallback ToolbarOrientationChangedCallback
cb
FunPtr C_ToolbarOrientationChangedCallback
cb'' <- C_ToolbarOrientationChangedCallback
-> IO (FunPtr C_ToolbarOrientationChangedCallback)
mk_ToolbarOrientationChangedCallback C_ToolbarOrientationChangedCallback
cb'
a
-> Text
-> FunPtr C_ToolbarOrientationChangedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"orientation-changed" FunPtr C_ToolbarOrientationChangedCallback
cb'' SignalConnectMode
SignalConnectAfter Maybe Text
forall a. Maybe a
Nothing
#if defined(ENABLE_OVERLOADING)
data ToolbarOrientationChangedSignalInfo
instance SignalInfo ToolbarOrientationChangedSignalInfo where
type HaskellCallbackType ToolbarOrientationChangedSignalInfo = ToolbarOrientationChangedCallback
connectSignal obj cb connectMode detail = do
let cb' = wrap_ToolbarOrientationChangedCallback cb
cb'' <- mk_ToolbarOrientationChangedCallback cb'
connectSignalFunPtr obj "orientation-changed" cb'' connectMode detail
#endif
type =
Int32
-> Int32
-> Int32
-> IO Bool
noToolbarPopupContextMenuCallback :: Maybe ToolbarPopupContextMenuCallback
= Maybe ToolbarPopupContextMenuCallback
forall a. Maybe a
Nothing
type =
Ptr () ->
Int32 ->
Int32 ->
Int32 ->
Ptr () ->
IO CInt
foreign import ccall "wrapper"
:: C_ToolbarPopupContextMenuCallback -> IO (FunPtr C_ToolbarPopupContextMenuCallback)
genClosure_ToolbarPopupContextMenu :: MonadIO m => ToolbarPopupContextMenuCallback -> m (GClosure C_ToolbarPopupContextMenuCallback)
ToolbarPopupContextMenuCallback
cb = IO (GClosure C_ToolbarPopupContextMenuCallback)
-> m (GClosure C_ToolbarPopupContextMenuCallback)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (GClosure C_ToolbarPopupContextMenuCallback)
-> m (GClosure C_ToolbarPopupContextMenuCallback))
-> IO (GClosure C_ToolbarPopupContextMenuCallback)
-> m (GClosure C_ToolbarPopupContextMenuCallback)
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_ToolbarPopupContextMenuCallback
cb' = ToolbarPopupContextMenuCallback
-> C_ToolbarPopupContextMenuCallback
wrap_ToolbarPopupContextMenuCallback ToolbarPopupContextMenuCallback
cb
C_ToolbarPopupContextMenuCallback
-> IO (FunPtr C_ToolbarPopupContextMenuCallback)
mk_ToolbarPopupContextMenuCallback C_ToolbarPopupContextMenuCallback
cb' IO (FunPtr C_ToolbarPopupContextMenuCallback)
-> (FunPtr C_ToolbarPopupContextMenuCallback
-> IO (GClosure C_ToolbarPopupContextMenuCallback))
-> IO (GClosure C_ToolbarPopupContextMenuCallback)
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= FunPtr C_ToolbarPopupContextMenuCallback
-> IO (GClosure C_ToolbarPopupContextMenuCallback)
forall (m :: * -> *) a. MonadIO m => FunPtr a -> m (GClosure a)
B.GClosure.newGClosure
wrap_ToolbarPopupContextMenuCallback ::
ToolbarPopupContextMenuCallback ->
C_ToolbarPopupContextMenuCallback
ToolbarPopupContextMenuCallback
_cb Ptr ()
_ Int32
x Int32
y Int32
button Ptr ()
_ = do
Bool
result <- ToolbarPopupContextMenuCallback
_cb Int32
x Int32
y Int32
button
let result' :: CInt
result' = (Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CInt) -> (Bool -> Int) -> Bool -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Bool -> Int
forall a. Enum a => a -> Int
fromEnum) Bool
result
CInt -> IO CInt
forall (m :: * -> *) a. Monad m => a -> m a
return CInt
result'
onToolbarPopupContextMenu :: (IsToolbar a, MonadIO m) => a -> ToolbarPopupContextMenuCallback -> m SignalHandlerId
a
obj ToolbarPopupContextMenuCallback
cb = IO SignalHandlerId -> m SignalHandlerId
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_ToolbarPopupContextMenuCallback
cb' = ToolbarPopupContextMenuCallback
-> C_ToolbarPopupContextMenuCallback
wrap_ToolbarPopupContextMenuCallback ToolbarPopupContextMenuCallback
cb
FunPtr C_ToolbarPopupContextMenuCallback
cb'' <- C_ToolbarPopupContextMenuCallback
-> IO (FunPtr C_ToolbarPopupContextMenuCallback)
mk_ToolbarPopupContextMenuCallback C_ToolbarPopupContextMenuCallback
cb'
a
-> Text
-> FunPtr C_ToolbarPopupContextMenuCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"popup-context-menu" FunPtr C_ToolbarPopupContextMenuCallback
cb'' SignalConnectMode
SignalConnectBefore Maybe Text
forall a. Maybe a
Nothing
afterToolbarPopupContextMenu :: (IsToolbar a, MonadIO m) => a -> ToolbarPopupContextMenuCallback -> m SignalHandlerId
a
obj ToolbarPopupContextMenuCallback
cb = IO SignalHandlerId -> m SignalHandlerId
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_ToolbarPopupContextMenuCallback
cb' = ToolbarPopupContextMenuCallback
-> C_ToolbarPopupContextMenuCallback
wrap_ToolbarPopupContextMenuCallback ToolbarPopupContextMenuCallback
cb
FunPtr C_ToolbarPopupContextMenuCallback
cb'' <- C_ToolbarPopupContextMenuCallback
-> IO (FunPtr C_ToolbarPopupContextMenuCallback)
mk_ToolbarPopupContextMenuCallback C_ToolbarPopupContextMenuCallback
cb'
a
-> Text
-> FunPtr C_ToolbarPopupContextMenuCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"popup-context-menu" FunPtr C_ToolbarPopupContextMenuCallback
cb'' SignalConnectMode
SignalConnectAfter Maybe Text
forall a. Maybe a
Nothing
#if defined(ENABLE_OVERLOADING)
data ToolbarPopupContextMenuSignalInfo
instance SignalInfo ToolbarPopupContextMenuSignalInfo where
type HaskellCallbackType ToolbarPopupContextMenuSignalInfo = ToolbarPopupContextMenuCallback
connectSignal obj cb connectMode detail = do
let cb' = wrap_ToolbarPopupContextMenuCallback cb
cb'' <- mk_ToolbarPopupContextMenuCallback cb'
connectSignalFunPtr obj "popup-context-menu" cb'' connectMode detail
#endif
type ToolbarStyleChangedCallback =
Gtk.Enums.ToolbarStyle
-> IO ()
noToolbarStyleChangedCallback :: Maybe ToolbarStyleChangedCallback
noToolbarStyleChangedCallback :: Maybe ToolbarStyleChangedCallback
noToolbarStyleChangedCallback = Maybe ToolbarStyleChangedCallback
forall a. Maybe a
Nothing
type C_ToolbarStyleChangedCallback =
Ptr () ->
CUInt ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_ToolbarStyleChangedCallback :: C_ToolbarStyleChangedCallback -> IO (FunPtr C_ToolbarStyleChangedCallback)
genClosure_ToolbarStyleChanged :: MonadIO m => ToolbarStyleChangedCallback -> m (GClosure C_ToolbarStyleChangedCallback)
genClosure_ToolbarStyleChanged :: ToolbarStyleChangedCallback
-> m (GClosure C_ToolbarOrientationChangedCallback)
genClosure_ToolbarStyleChanged ToolbarStyleChangedCallback
cb = IO (GClosure C_ToolbarOrientationChangedCallback)
-> m (GClosure C_ToolbarOrientationChangedCallback)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (GClosure C_ToolbarOrientationChangedCallback)
-> m (GClosure C_ToolbarOrientationChangedCallback))
-> IO (GClosure C_ToolbarOrientationChangedCallback)
-> m (GClosure C_ToolbarOrientationChangedCallback)
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_ToolbarOrientationChangedCallback
cb' = ToolbarStyleChangedCallback -> C_ToolbarOrientationChangedCallback
wrap_ToolbarStyleChangedCallback ToolbarStyleChangedCallback
cb
C_ToolbarOrientationChangedCallback
-> IO (FunPtr C_ToolbarOrientationChangedCallback)
mk_ToolbarStyleChangedCallback C_ToolbarOrientationChangedCallback
cb' IO (FunPtr C_ToolbarOrientationChangedCallback)
-> (FunPtr C_ToolbarOrientationChangedCallback
-> IO (GClosure C_ToolbarOrientationChangedCallback))
-> IO (GClosure C_ToolbarOrientationChangedCallback)
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= FunPtr C_ToolbarOrientationChangedCallback
-> IO (GClosure C_ToolbarOrientationChangedCallback)
forall (m :: * -> *) a. MonadIO m => FunPtr a -> m (GClosure a)
B.GClosure.newGClosure
wrap_ToolbarStyleChangedCallback ::
ToolbarStyleChangedCallback ->
C_ToolbarStyleChangedCallback
wrap_ToolbarStyleChangedCallback :: ToolbarStyleChangedCallback -> C_ToolbarOrientationChangedCallback
wrap_ToolbarStyleChangedCallback ToolbarStyleChangedCallback
_cb Ptr ()
_ CUInt
style Ptr ()
_ = do
let style' :: ToolbarStyle
style' = (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
style
ToolbarStyleChangedCallback
_cb ToolbarStyle
style'
onToolbarStyleChanged :: (IsToolbar a, MonadIO m) => a -> ToolbarStyleChangedCallback -> m SignalHandlerId
onToolbarStyleChanged :: a -> ToolbarStyleChangedCallback -> m SignalHandlerId
onToolbarStyleChanged a
obj ToolbarStyleChangedCallback
cb = IO SignalHandlerId -> m SignalHandlerId
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_ToolbarOrientationChangedCallback
cb' = ToolbarStyleChangedCallback -> C_ToolbarOrientationChangedCallback
wrap_ToolbarStyleChangedCallback ToolbarStyleChangedCallback
cb
FunPtr C_ToolbarOrientationChangedCallback
cb'' <- C_ToolbarOrientationChangedCallback
-> IO (FunPtr C_ToolbarOrientationChangedCallback)
mk_ToolbarStyleChangedCallback C_ToolbarOrientationChangedCallback
cb'
a
-> Text
-> FunPtr C_ToolbarOrientationChangedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"style-changed" FunPtr C_ToolbarOrientationChangedCallback
cb'' SignalConnectMode
SignalConnectBefore Maybe Text
forall a. Maybe a
Nothing
afterToolbarStyleChanged :: (IsToolbar a, MonadIO m) => a -> ToolbarStyleChangedCallback -> m SignalHandlerId
afterToolbarStyleChanged :: a -> ToolbarStyleChangedCallback -> m SignalHandlerId
afterToolbarStyleChanged a
obj ToolbarStyleChangedCallback
cb = IO SignalHandlerId -> m SignalHandlerId
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_ToolbarOrientationChangedCallback
cb' = ToolbarStyleChangedCallback -> C_ToolbarOrientationChangedCallback
wrap_ToolbarStyleChangedCallback ToolbarStyleChangedCallback
cb
FunPtr C_ToolbarOrientationChangedCallback
cb'' <- C_ToolbarOrientationChangedCallback
-> IO (FunPtr C_ToolbarOrientationChangedCallback)
mk_ToolbarStyleChangedCallback C_ToolbarOrientationChangedCallback
cb'
a
-> Text
-> FunPtr C_ToolbarOrientationChangedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"style-changed" FunPtr C_ToolbarOrientationChangedCallback
cb'' SignalConnectMode
SignalConnectAfter Maybe Text
forall a. Maybe a
Nothing
#if defined(ENABLE_OVERLOADING)
data ToolbarStyleChangedSignalInfo
instance SignalInfo ToolbarStyleChangedSignalInfo where
type HaskellCallbackType ToolbarStyleChangedSignalInfo = ToolbarStyleChangedCallback
connectSignal obj cb connectMode detail = do
let cb' = wrap_ToolbarStyleChangedCallback cb
cb'' <- mk_ToolbarStyleChangedCallback cb'
connectSignalFunPtr obj "style-changed" cb'' connectMode detail
#endif
getToolbarIconSize :: (MonadIO m, IsToolbar o) => o -> m Gtk.Enums.IconSize
getToolbarIconSize :: o -> m IconSize
getToolbarIconSize o
obj = IO IconSize -> m IconSize
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO IconSize -> m IconSize) -> IO IconSize -> m IconSize
forall a b. (a -> b) -> a -> b
$ o -> String -> IO IconSize
forall a b. (GObject a, Enum b, BoxedEnum b) => a -> String -> IO b
B.Properties.getObjectPropertyEnum o
obj String
"icon-size"
setToolbarIconSize :: (MonadIO m, IsToolbar o) => o -> Gtk.Enums.IconSize -> m ()
setToolbarIconSize :: o -> IconSize -> m ()
setToolbarIconSize o
obj IconSize
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> IconSize -> IO ()
forall a b.
(GObject a, Enum b, BoxedEnum b) =>
a -> String -> b -> IO ()
B.Properties.setObjectPropertyEnum o
obj String
"icon-size" IconSize
val
constructToolbarIconSize :: (IsToolbar o, MIO.MonadIO m) => Gtk.Enums.IconSize -> m (GValueConstruct o)
constructToolbarIconSize :: IconSize -> m (GValueConstruct o)
constructToolbarIconSize IconSize
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> IconSize -> IO (GValueConstruct o)
forall a o.
(Enum a, BoxedEnum a) =>
String -> a -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyEnum String
"icon-size" IconSize
val
#if defined(ENABLE_OVERLOADING)
data ToolbarIconSizePropertyInfo
instance AttrInfo ToolbarIconSizePropertyInfo where
type AttrAllowedOps ToolbarIconSizePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint ToolbarIconSizePropertyInfo = IsToolbar
type AttrSetTypeConstraint ToolbarIconSizePropertyInfo = (~) Gtk.Enums.IconSize
type AttrTransferTypeConstraint ToolbarIconSizePropertyInfo = (~) Gtk.Enums.IconSize
type AttrTransferType ToolbarIconSizePropertyInfo = Gtk.Enums.IconSize
type AttrGetType ToolbarIconSizePropertyInfo = Gtk.Enums.IconSize
type AttrLabel ToolbarIconSizePropertyInfo = "icon-size"
type AttrOrigin ToolbarIconSizePropertyInfo = Toolbar
attrGet = getToolbarIconSize
attrSet = setToolbarIconSize
attrTransfer _ v = do
return v
attrConstruct = constructToolbarIconSize
attrClear = undefined
#endif
getToolbarIconSizeSet :: (MonadIO m, IsToolbar o) => o -> m Bool
getToolbarIconSizeSet :: o -> m Bool
getToolbarIconSizeSet o
obj = IO Bool -> m Bool
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Bool
forall a. GObject a => a -> String -> IO Bool
B.Properties.getObjectPropertyBool o
obj String
"icon-size-set"
setToolbarIconSizeSet :: (MonadIO m, IsToolbar o) => o -> Bool -> m ()
setToolbarIconSizeSet :: o -> Bool -> m ()
setToolbarIconSizeSet o
obj Bool
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Bool -> IO ()
forall a. GObject a => a -> String -> Bool -> IO ()
B.Properties.setObjectPropertyBool o
obj String
"icon-size-set" Bool
val
constructToolbarIconSizeSet :: (IsToolbar o, MIO.MonadIO m) => Bool -> m (GValueConstruct o)
constructToolbarIconSizeSet :: Bool -> m (GValueConstruct o)
constructToolbarIconSizeSet Bool
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Bool -> IO (GValueConstruct o)
forall o. String -> Bool -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyBool String
"icon-size-set" Bool
val
#if defined(ENABLE_OVERLOADING)
data ToolbarIconSizeSetPropertyInfo
instance AttrInfo ToolbarIconSizeSetPropertyInfo where
type AttrAllowedOps ToolbarIconSizeSetPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint ToolbarIconSizeSetPropertyInfo = IsToolbar
type AttrSetTypeConstraint ToolbarIconSizeSetPropertyInfo = (~) Bool
type AttrTransferTypeConstraint ToolbarIconSizeSetPropertyInfo = (~) Bool
type AttrTransferType ToolbarIconSizeSetPropertyInfo = Bool
type AttrGetType ToolbarIconSizeSetPropertyInfo = Bool
type AttrLabel ToolbarIconSizeSetPropertyInfo = "icon-size-set"
type AttrOrigin ToolbarIconSizeSetPropertyInfo = Toolbar
attrGet = getToolbarIconSizeSet
attrSet = setToolbarIconSizeSet
attrTransfer _ v = do
return v
attrConstruct = constructToolbarIconSizeSet
attrClear = undefined
#endif
getToolbarShowArrow :: (MonadIO m, IsToolbar o) => o -> m Bool
getToolbarShowArrow :: o -> m Bool
getToolbarShowArrow o
obj = IO Bool -> m Bool
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Bool
forall a. GObject a => a -> String -> IO Bool
B.Properties.getObjectPropertyBool o
obj String
"show-arrow"
setToolbarShowArrow :: (MonadIO m, IsToolbar o) => o -> Bool -> m ()
setToolbarShowArrow :: o -> Bool -> m ()
setToolbarShowArrow o
obj Bool
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Bool -> IO ()
forall a. GObject a => a -> String -> Bool -> IO ()
B.Properties.setObjectPropertyBool o
obj String
"show-arrow" Bool
val
constructToolbarShowArrow :: (IsToolbar o, MIO.MonadIO m) => Bool -> m (GValueConstruct o)
constructToolbarShowArrow :: Bool -> m (GValueConstruct o)
constructToolbarShowArrow Bool
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Bool -> IO (GValueConstruct o)
forall o. String -> Bool -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyBool String
"show-arrow" Bool
val
#if defined(ENABLE_OVERLOADING)
data ToolbarShowArrowPropertyInfo
instance AttrInfo ToolbarShowArrowPropertyInfo where
type AttrAllowedOps ToolbarShowArrowPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint ToolbarShowArrowPropertyInfo = IsToolbar
type AttrSetTypeConstraint ToolbarShowArrowPropertyInfo = (~) Bool
type AttrTransferTypeConstraint ToolbarShowArrowPropertyInfo = (~) Bool
type AttrTransferType ToolbarShowArrowPropertyInfo = Bool
type AttrGetType ToolbarShowArrowPropertyInfo = Bool
type AttrLabel ToolbarShowArrowPropertyInfo = "show-arrow"
type AttrOrigin ToolbarShowArrowPropertyInfo = Toolbar
attrGet = getToolbarShowArrow
attrSet = setToolbarShowArrow
attrTransfer _ v = do
return v
attrConstruct = constructToolbarShowArrow
attrClear = undefined
#endif
getToolbarToolbarStyle :: (MonadIO m, IsToolbar o) => o -> m Gtk.Enums.ToolbarStyle
getToolbarToolbarStyle :: o -> m ToolbarStyle
getToolbarToolbarStyle o
obj = IO ToolbarStyle -> m ToolbarStyle
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
$ o -> String -> IO ToolbarStyle
forall a b. (GObject a, Enum b, BoxedEnum b) => a -> String -> IO b
B.Properties.getObjectPropertyEnum o
obj String
"toolbar-style"
setToolbarToolbarStyle :: (MonadIO m, IsToolbar o) => o -> Gtk.Enums.ToolbarStyle -> m ()
setToolbarToolbarStyle :: o -> ToolbarStyle -> m ()
setToolbarToolbarStyle o
obj ToolbarStyle
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> ToolbarStyleChangedCallback
forall a b.
(GObject a, Enum b, BoxedEnum b) =>
a -> String -> b -> IO ()
B.Properties.setObjectPropertyEnum o
obj String
"toolbar-style" ToolbarStyle
val
constructToolbarToolbarStyle :: (IsToolbar o, MIO.MonadIO m) => Gtk.Enums.ToolbarStyle -> m (GValueConstruct o)
constructToolbarToolbarStyle :: ToolbarStyle -> m (GValueConstruct o)
constructToolbarToolbarStyle ToolbarStyle
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> ToolbarStyle -> IO (GValueConstruct o)
forall a o.
(Enum a, BoxedEnum a) =>
String -> a -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyEnum String
"toolbar-style" ToolbarStyle
val
#if defined(ENABLE_OVERLOADING)
data ToolbarToolbarStylePropertyInfo
instance AttrInfo ToolbarToolbarStylePropertyInfo where
type AttrAllowedOps ToolbarToolbarStylePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint ToolbarToolbarStylePropertyInfo = IsToolbar
type AttrSetTypeConstraint ToolbarToolbarStylePropertyInfo = (~) Gtk.Enums.ToolbarStyle
type AttrTransferTypeConstraint ToolbarToolbarStylePropertyInfo = (~) Gtk.Enums.ToolbarStyle
type AttrTransferType ToolbarToolbarStylePropertyInfo = Gtk.Enums.ToolbarStyle
type AttrGetType ToolbarToolbarStylePropertyInfo = Gtk.Enums.ToolbarStyle
type AttrLabel ToolbarToolbarStylePropertyInfo = "toolbar-style"
type AttrOrigin ToolbarToolbarStylePropertyInfo = Toolbar
attrGet = getToolbarToolbarStyle
attrSet = setToolbarToolbarStyle
attrTransfer _ v = do
return v
attrConstruct = constructToolbarToolbarStyle
attrClear = undefined
#endif
#if defined(ENABLE_OVERLOADING)
instance O.HasAttributeList Toolbar
type instance O.AttributeList Toolbar = ToolbarAttributeList
type ToolbarAttributeList = ('[ '("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), '("iconSize", ToolbarIconSizePropertyInfo), '("iconSizeSet", ToolbarIconSizeSetPropertyInfo), '("isFocus", Gtk.Widget.WidgetIsFocusPropertyInfo), '("margin", Gtk.Widget.WidgetMarginPropertyInfo), '("marginBottom", Gtk.Widget.WidgetMarginBottomPropertyInfo), '("marginEnd", Gtk.Widget.WidgetMarginEndPropertyInfo), '("marginLeft", Gtk.Widget.WidgetMarginLeftPropertyInfo), '("marginRight", Gtk.Widget.WidgetMarginRightPropertyInfo), '("marginStart", Gtk.Widget.WidgetMarginStartPropertyInfo), '("marginTop", Gtk.Widget.WidgetMarginTopPropertyInfo), '("name", Gtk.Widget.WidgetNamePropertyInfo), '("noShowAll", Gtk.Widget.WidgetNoShowAllPropertyInfo), '("opacity", Gtk.Widget.WidgetOpacityPropertyInfo), '("orientation", Gtk.Orientable.OrientableOrientationPropertyInfo), '("parent", Gtk.Widget.WidgetParentPropertyInfo), '("receivesDefault", Gtk.Widget.WidgetReceivesDefaultPropertyInfo), '("resizeMode", Gtk.Container.ContainerResizeModePropertyInfo), '("scaleFactor", Gtk.Widget.WidgetScaleFactorPropertyInfo), '("sensitive", Gtk.Widget.WidgetSensitivePropertyInfo), '("showArrow", ToolbarShowArrowPropertyInfo), '("style", Gtk.Widget.WidgetStylePropertyInfo), '("toolbarStyle", ToolbarToolbarStylePropertyInfo), '("tooltipMarkup", Gtk.Widget.WidgetTooltipMarkupPropertyInfo), '("tooltipText", Gtk.Widget.WidgetTooltipTextPropertyInfo), '("valign", Gtk.Widget.WidgetValignPropertyInfo), '("vexpand", Gtk.Widget.WidgetVexpandPropertyInfo), '("vexpandSet", Gtk.Widget.WidgetVexpandSetPropertyInfo), '("visible", Gtk.Widget.WidgetVisiblePropertyInfo), '("widthRequest", Gtk.Widget.WidgetWidthRequestPropertyInfo), '("window", Gtk.Widget.WidgetWindowPropertyInfo)] :: [(Symbol, *)])
#endif
#if defined(ENABLE_OVERLOADING)
toolbarIconSize :: AttrLabelProxy "iconSize"
toolbarIconSize = AttrLabelProxy
toolbarIconSizeSet :: AttrLabelProxy "iconSizeSet"
toolbarIconSizeSet = AttrLabelProxy
toolbarShowArrow :: AttrLabelProxy "showArrow"
toolbarShowArrow = AttrLabelProxy
toolbarToolbarStyle :: AttrLabelProxy "toolbarStyle"
toolbarToolbarStyle = AttrLabelProxy
#endif
#if defined(ENABLE_OVERLOADING)
type instance O.SignalList Toolbar = ToolbarSignalList
type ToolbarSignalList = ('[ '("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), '("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), '("focusHomeOrEnd", ToolbarFocusHomeOrEndSignalInfo), '("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), '("orientationChanged", ToolbarOrientationChangedSignalInfo), '("parentSet", Gtk.Widget.WidgetParentSetSignalInfo), '("popupContextMenu", ToolbarPopupContextMenuSignalInfo), '("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), '("styleChanged", ToolbarStyleChangedSignalInfo), '("styleSet", Gtk.Widget.WidgetStyleSetSignalInfo), '("styleUpdated", Gtk.Widget.WidgetStyleUpdatedSignalInfo), '("touchEvent", Gtk.Widget.WidgetTouchEventSignalInfo), '("unmap", Gtk.Widget.WidgetUnmapSignalInfo), '("unmapEvent", Gtk.Widget.WidgetUnmapEventSignalInfo), '("unrealize", Gtk.Widget.WidgetUnrealizeSignalInfo), '("visibilityNotifyEvent", Gtk.Widget.WidgetVisibilityNotifyEventSignalInfo), '("windowStateEvent", Gtk.Widget.WidgetWindowStateEventSignalInfo)] :: [(Symbol, *)])
#endif
foreign import ccall "gtk_toolbar_new" gtk_toolbar_new ::
IO (Ptr Toolbar)
toolbarNew ::
(B.CallStack.HasCallStack, MonadIO m) =>
m Toolbar
toolbarNew :: m Toolbar
toolbarNew = IO Toolbar -> m Toolbar
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Toolbar -> m Toolbar) -> IO Toolbar -> m Toolbar
forall a b. (a -> b) -> a -> b
$ do
Ptr Toolbar
result <- IO (Ptr Toolbar)
gtk_toolbar_new
Text -> Ptr Toolbar -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"toolbarNew" Ptr Toolbar
result
Toolbar
result' <- ((ManagedPtr Toolbar -> Toolbar) -> Ptr Toolbar -> IO Toolbar
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr Toolbar -> Toolbar
Toolbar) Ptr Toolbar
result
Toolbar -> IO Toolbar
forall (m :: * -> *) a. Monad m => a -> m a
return Toolbar
result'
#if defined(ENABLE_OVERLOADING)
#endif
foreign import ccall "gtk_toolbar_get_drop_index" gtk_toolbar_get_drop_index ::
Ptr Toolbar ->
Int32 ->
Int32 ->
IO Int32
toolbarGetDropIndex ::
(B.CallStack.HasCallStack, MonadIO m, IsToolbar a) =>
a
-> Int32
-> Int32
-> m Int32
toolbarGetDropIndex :: a -> Int32 -> Int32 -> m Int32
toolbarGetDropIndex a
toolbar Int32
x Int32
y = IO Int32 -> m Int32
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 Toolbar
toolbar' <- a -> IO (Ptr Toolbar)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
toolbar
Int32
result <- Ptr Toolbar -> Int32 -> Int32 -> IO Int32
gtk_toolbar_get_drop_index Ptr Toolbar
toolbar' Int32
x Int32
y
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
toolbar
Int32 -> IO Int32
forall (m :: * -> *) a. Monad m => a -> m a
return Int32
result
#if defined(ENABLE_OVERLOADING)
data ToolbarGetDropIndexMethodInfo
instance (signature ~ (Int32 -> Int32 -> m Int32), MonadIO m, IsToolbar a) => O.MethodInfo ToolbarGetDropIndexMethodInfo a signature where
overloadedMethod = toolbarGetDropIndex
#endif
foreign import ccall "gtk_toolbar_get_icon_size" gtk_toolbar_get_icon_size ::
Ptr Toolbar ->
IO CUInt
toolbarGetIconSize ::
(B.CallStack.HasCallStack, MonadIO m, IsToolbar a) =>
a
-> m Gtk.Enums.IconSize
toolbarGetIconSize :: a -> m IconSize
toolbarGetIconSize a
toolbar = IO IconSize -> m IconSize
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO IconSize -> m IconSize) -> IO IconSize -> m IconSize
forall a b. (a -> b) -> a -> b
$ do
Ptr Toolbar
toolbar' <- a -> IO (Ptr Toolbar)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
toolbar
CUInt
result <- Ptr Toolbar -> IO CUInt
gtk_toolbar_get_icon_size Ptr Toolbar
toolbar'
let result' :: IconSize
result' = (Int -> IconSize
forall a. Enum a => Int -> a
toEnum (Int -> IconSize) -> (CUInt -> Int) -> CUInt -> IconSize
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
toolbar
IconSize -> IO IconSize
forall (m :: * -> *) a. Monad m => a -> m a
return IconSize
result'
#if defined(ENABLE_OVERLOADING)
data ToolbarGetIconSizeMethodInfo
instance (signature ~ (m Gtk.Enums.IconSize), MonadIO m, IsToolbar a) => O.MethodInfo ToolbarGetIconSizeMethodInfo a signature where
overloadedMethod = toolbarGetIconSize
#endif
foreign import ccall "gtk_toolbar_get_item_index" gtk_toolbar_get_item_index ::
Ptr Toolbar ->
Ptr Gtk.ToolItem.ToolItem ->
IO Int32
toolbarGetItemIndex ::
(B.CallStack.HasCallStack, MonadIO m, IsToolbar a, Gtk.ToolItem.IsToolItem b) =>
a
-> b
-> m Int32
toolbarGetItemIndex :: a -> b -> m Int32
toolbarGetItemIndex a
toolbar b
item = IO Int32 -> m Int32
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 Toolbar
toolbar' <- a -> IO (Ptr Toolbar)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
toolbar
Ptr ToolItem
item' <- b -> IO (Ptr ToolItem)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr b
item
Int32
result <- Ptr Toolbar -> Ptr ToolItem -> IO Int32
gtk_toolbar_get_item_index Ptr Toolbar
toolbar' Ptr ToolItem
item'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
toolbar
b -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr b
item
Int32 -> IO Int32
forall (m :: * -> *) a. Monad m => a -> m a
return Int32
result
#if defined(ENABLE_OVERLOADING)
data ToolbarGetItemIndexMethodInfo
instance (signature ~ (b -> m Int32), MonadIO m, IsToolbar a, Gtk.ToolItem.IsToolItem b) => O.MethodInfo ToolbarGetItemIndexMethodInfo a signature where
overloadedMethod = toolbarGetItemIndex
#endif
foreign import ccall "gtk_toolbar_get_n_items" gtk_toolbar_get_n_items ::
Ptr Toolbar ->
IO Int32
toolbarGetNItems ::
(B.CallStack.HasCallStack, MonadIO m, IsToolbar a) =>
a
-> m Int32
toolbarGetNItems :: a -> m Int32
toolbarGetNItems a
toolbar = IO Int32 -> m Int32
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 Toolbar
toolbar' <- a -> IO (Ptr Toolbar)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
toolbar
Int32
result <- Ptr Toolbar -> IO Int32
gtk_toolbar_get_n_items Ptr Toolbar
toolbar'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
toolbar
Int32 -> IO Int32
forall (m :: * -> *) a. Monad m => a -> m a
return Int32
result
#if defined(ENABLE_OVERLOADING)
data ToolbarGetNItemsMethodInfo
instance (signature ~ (m Int32), MonadIO m, IsToolbar a) => O.MethodInfo ToolbarGetNItemsMethodInfo a signature where
overloadedMethod = toolbarGetNItems
#endif
foreign import ccall "gtk_toolbar_get_nth_item" gtk_toolbar_get_nth_item ::
Ptr Toolbar ->
Int32 ->
IO (Ptr Gtk.ToolItem.ToolItem)
toolbarGetNthItem ::
(B.CallStack.HasCallStack, MonadIO m, IsToolbar a) =>
a
-> Int32
-> m (Maybe Gtk.ToolItem.ToolItem)
toolbarGetNthItem :: a -> Int32 -> m (Maybe ToolItem)
toolbarGetNthItem a
toolbar Int32
n = IO (Maybe ToolItem) -> m (Maybe ToolItem)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (Maybe ToolItem) -> m (Maybe ToolItem))
-> IO (Maybe ToolItem) -> m (Maybe ToolItem)
forall a b. (a -> b) -> a -> b
$ do
Ptr Toolbar
toolbar' <- a -> IO (Ptr Toolbar)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
toolbar
Ptr ToolItem
result <- Ptr Toolbar -> Int32 -> IO (Ptr ToolItem)
gtk_toolbar_get_nth_item Ptr Toolbar
toolbar' Int32
n
Maybe ToolItem
maybeResult <- Ptr ToolItem
-> (Ptr ToolItem -> IO ToolItem) -> IO (Maybe ToolItem)
forall a b. Ptr a -> (Ptr a -> IO b) -> IO (Maybe b)
convertIfNonNull Ptr ToolItem
result ((Ptr ToolItem -> IO ToolItem) -> IO (Maybe ToolItem))
-> (Ptr ToolItem -> IO ToolItem) -> IO (Maybe ToolItem)
forall a b. (a -> b) -> a -> b
$ \Ptr ToolItem
result' -> do
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
Gtk.ToolItem.ToolItem) Ptr ToolItem
result'
ToolItem -> IO ToolItem
forall (m :: * -> *) a. Monad m => a -> m a
return ToolItem
result''
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
toolbar
Maybe ToolItem -> IO (Maybe ToolItem)
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe ToolItem
maybeResult
#if defined(ENABLE_OVERLOADING)
data ToolbarGetNthItemMethodInfo
instance (signature ~ (Int32 -> m (Maybe Gtk.ToolItem.ToolItem)), MonadIO m, IsToolbar a) => O.MethodInfo ToolbarGetNthItemMethodInfo a signature where
overloadedMethod = toolbarGetNthItem
#endif
foreign import ccall "gtk_toolbar_get_relief_style" gtk_toolbar_get_relief_style ::
Ptr Toolbar ->
IO CUInt
toolbarGetReliefStyle ::
(B.CallStack.HasCallStack, MonadIO m, IsToolbar a) =>
a
-> m Gtk.Enums.ReliefStyle
toolbarGetReliefStyle :: a -> m ReliefStyle
toolbarGetReliefStyle a
toolbar = IO ReliefStyle -> m ReliefStyle
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 Toolbar
toolbar' <- a -> IO (Ptr Toolbar)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
toolbar
CUInt
result <- Ptr Toolbar -> IO CUInt
gtk_toolbar_get_relief_style Ptr Toolbar
toolbar'
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
toolbar
ReliefStyle -> IO ReliefStyle
forall (m :: * -> *) a. Monad m => a -> m a
return ReliefStyle
result'
#if defined(ENABLE_OVERLOADING)
data ToolbarGetReliefStyleMethodInfo
instance (signature ~ (m Gtk.Enums.ReliefStyle), MonadIO m, IsToolbar a) => O.MethodInfo ToolbarGetReliefStyleMethodInfo a signature where
overloadedMethod = toolbarGetReliefStyle
#endif
foreign import ccall "gtk_toolbar_get_show_arrow" gtk_toolbar_get_show_arrow ::
Ptr Toolbar ->
IO CInt
toolbarGetShowArrow ::
(B.CallStack.HasCallStack, MonadIO m, IsToolbar a) =>
a
-> m Bool
toolbarGetShowArrow :: a -> m Bool
toolbarGetShowArrow a
toolbar = IO Bool -> m Bool
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr Toolbar
toolbar' <- a -> IO (Ptr Toolbar)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
toolbar
CInt
result <- Ptr Toolbar -> IO CInt
gtk_toolbar_get_show_arrow Ptr Toolbar
toolbar'
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
toolbar
ToolbarFocusHomeOrEndCallback
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data ToolbarGetShowArrowMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsToolbar a) => O.MethodInfo ToolbarGetShowArrowMethodInfo a signature where
overloadedMethod = toolbarGetShowArrow
#endif
foreign import ccall "gtk_toolbar_get_style" gtk_toolbar_get_style ::
Ptr Toolbar ->
IO CUInt
toolbarGetStyle ::
(B.CallStack.HasCallStack, MonadIO m, IsToolbar a) =>
a
-> m Gtk.Enums.ToolbarStyle
toolbarGetStyle :: a -> m ToolbarStyle
toolbarGetStyle a
toolbar = IO ToolbarStyle -> m ToolbarStyle
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 Toolbar
toolbar' <- a -> IO (Ptr Toolbar)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
toolbar
CUInt
result <- Ptr Toolbar -> IO CUInt
gtk_toolbar_get_style Ptr Toolbar
toolbar'
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
toolbar
ToolbarStyle -> IO ToolbarStyle
forall (m :: * -> *) a. Monad m => a -> m a
return ToolbarStyle
result'
#if defined(ENABLE_OVERLOADING)
data ToolbarGetStyleMethodInfo
instance (signature ~ (m Gtk.Enums.ToolbarStyle), MonadIO m, IsToolbar a) => O.MethodInfo ToolbarGetStyleMethodInfo a signature where
overloadedMethod = toolbarGetStyle
#endif
foreign import ccall "gtk_toolbar_insert" gtk_toolbar_insert ::
Ptr Toolbar ->
Ptr Gtk.ToolItem.ToolItem ->
Int32 ->
IO ()
toolbarInsert ::
(B.CallStack.HasCallStack, MonadIO m, IsToolbar a, Gtk.ToolItem.IsToolItem b) =>
a
-> b
-> Int32
-> m ()
toolbarInsert :: a -> b -> Int32 -> m ()
toolbarInsert a
toolbar b
item Int32
pos = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr Toolbar
toolbar' <- a -> IO (Ptr Toolbar)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
toolbar
Ptr ToolItem
item' <- b -> IO (Ptr ToolItem)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr b
item
Ptr Toolbar -> Ptr ToolItem -> Int32 -> IO ()
gtk_toolbar_insert Ptr Toolbar
toolbar' Ptr ToolItem
item' Int32
pos
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
toolbar
b -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr b
item
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data ToolbarInsertMethodInfo
instance (signature ~ (b -> Int32 -> m ()), MonadIO m, IsToolbar a, Gtk.ToolItem.IsToolItem b) => O.MethodInfo ToolbarInsertMethodInfo a signature where
overloadedMethod = toolbarInsert
#endif
foreign import ccall "gtk_toolbar_set_drop_highlight_item" gtk_toolbar_set_drop_highlight_item ::
Ptr Toolbar ->
Ptr Gtk.ToolItem.ToolItem ->
Int32 ->
IO ()
toolbarSetDropHighlightItem ::
(B.CallStack.HasCallStack, MonadIO m, IsToolbar a, Gtk.ToolItem.IsToolItem b) =>
a
-> Maybe (b)
-> Int32
-> m ()
toolbarSetDropHighlightItem :: a -> Maybe b -> Int32 -> m ()
toolbarSetDropHighlightItem a
toolbar Maybe b
toolItem Int32
index_ = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr Toolbar
toolbar' <- a -> IO (Ptr Toolbar)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
toolbar
Ptr ToolItem
maybeToolItem <- case Maybe b
toolItem of
Maybe b
Nothing -> Ptr ToolItem -> IO (Ptr ToolItem)
forall (m :: * -> *) a. Monad m => a -> m a
return Ptr ToolItem
forall a. Ptr a
nullPtr
Just b
jToolItem -> do
Ptr ToolItem
jToolItem' <- b -> IO (Ptr ToolItem)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr b
jToolItem
Ptr ToolItem -> IO (Ptr ToolItem)
forall (m :: * -> *) a. Monad m => a -> m a
return Ptr ToolItem
jToolItem'
Ptr Toolbar -> Ptr ToolItem -> Int32 -> IO ()
gtk_toolbar_set_drop_highlight_item Ptr Toolbar
toolbar' Ptr ToolItem
maybeToolItem Int32
index_
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
toolbar
Maybe b -> (b -> IO ()) -> IO ()
forall (m :: * -> *) a. Monad m => Maybe a -> (a -> m ()) -> m ()
whenJust Maybe b
toolItem b -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data ToolbarSetDropHighlightItemMethodInfo
instance (signature ~ (Maybe (b) -> Int32 -> m ()), MonadIO m, IsToolbar a, Gtk.ToolItem.IsToolItem b) => O.MethodInfo ToolbarSetDropHighlightItemMethodInfo a signature where
overloadedMethod = toolbarSetDropHighlightItem
#endif
foreign import ccall "gtk_toolbar_set_icon_size" gtk_toolbar_set_icon_size ::
Ptr Toolbar ->
CUInt ->
IO ()
toolbarSetIconSize ::
(B.CallStack.HasCallStack, MonadIO m, IsToolbar a) =>
a
-> Gtk.Enums.IconSize
-> m ()
toolbarSetIconSize :: a -> IconSize -> m ()
toolbarSetIconSize a
toolbar IconSize
iconSize = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr Toolbar
toolbar' <- a -> IO (Ptr Toolbar)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
toolbar
let iconSize' :: CUInt
iconSize' = (Int -> CUInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CUInt) -> (IconSize -> Int) -> IconSize -> CUInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. IconSize -> Int
forall a. Enum a => a -> Int
fromEnum) IconSize
iconSize
Ptr Toolbar -> CUInt -> IO ()
gtk_toolbar_set_icon_size Ptr Toolbar
toolbar' CUInt
iconSize'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
toolbar
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data ToolbarSetIconSizeMethodInfo
instance (signature ~ (Gtk.Enums.IconSize -> m ()), MonadIO m, IsToolbar a) => O.MethodInfo ToolbarSetIconSizeMethodInfo a signature where
overloadedMethod = toolbarSetIconSize
#endif
foreign import ccall "gtk_toolbar_set_show_arrow" gtk_toolbar_set_show_arrow ::
Ptr Toolbar ->
CInt ->
IO ()
toolbarSetShowArrow ::
(B.CallStack.HasCallStack, MonadIO m, IsToolbar a) =>
a
-> Bool
-> m ()
toolbarSetShowArrow :: a -> Bool -> m ()
toolbarSetShowArrow a
toolbar Bool
showArrow = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr Toolbar
toolbar' <- a -> IO (Ptr Toolbar)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
toolbar
let showArrow' :: CInt
showArrow' = (Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CInt) -> (Bool -> Int) -> Bool -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Bool -> Int
forall a. Enum a => a -> Int
fromEnum) Bool
showArrow
Ptr Toolbar -> CInt -> IO ()
gtk_toolbar_set_show_arrow Ptr Toolbar
toolbar' CInt
showArrow'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
toolbar
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data ToolbarSetShowArrowMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsToolbar a) => O.MethodInfo ToolbarSetShowArrowMethodInfo a signature where
overloadedMethod = toolbarSetShowArrow
#endif
foreign import ccall "gtk_toolbar_set_style" gtk_toolbar_set_style ::
Ptr Toolbar ->
CUInt ->
IO ()
toolbarSetStyle ::
(B.CallStack.HasCallStack, MonadIO m, IsToolbar a) =>
a
-> Gtk.Enums.ToolbarStyle
-> m ()
toolbarSetStyle :: a -> ToolbarStyle -> m ()
toolbarSetStyle a
toolbar ToolbarStyle
style = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr Toolbar
toolbar' <- a -> IO (Ptr Toolbar)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
toolbar
let style' :: CUInt
style' = (Int -> CUInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CUInt) -> (ToolbarStyle -> Int) -> ToolbarStyle -> CUInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. ToolbarStyle -> Int
forall a. Enum a => a -> Int
fromEnum) ToolbarStyle
style
Ptr Toolbar -> CUInt -> IO ()
gtk_toolbar_set_style Ptr Toolbar
toolbar' CUInt
style'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
toolbar
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data ToolbarSetStyleMethodInfo
instance (signature ~ (Gtk.Enums.ToolbarStyle -> m ()), MonadIO m, IsToolbar a) => O.MethodInfo ToolbarSetStyleMethodInfo a signature where
overloadedMethod = toolbarSetStyle
#endif
foreign import ccall "gtk_toolbar_unset_icon_size" gtk_toolbar_unset_icon_size ::
Ptr Toolbar ->
IO ()
toolbarUnsetIconSize ::
(B.CallStack.HasCallStack, MonadIO m, IsToolbar a) =>
a
-> m ()
toolbarUnsetIconSize :: a -> m ()
toolbarUnsetIconSize a
toolbar = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr Toolbar
toolbar' <- a -> IO (Ptr Toolbar)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
toolbar
Ptr Toolbar -> IO ()
gtk_toolbar_unset_icon_size Ptr Toolbar
toolbar'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
toolbar
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data ToolbarUnsetIconSizeMethodInfo
instance (signature ~ (m ()), MonadIO m, IsToolbar a) => O.MethodInfo ToolbarUnsetIconSizeMethodInfo a signature where
overloadedMethod = toolbarUnsetIconSize
#endif
foreign import ccall "gtk_toolbar_unset_style" gtk_toolbar_unset_style ::
Ptr Toolbar ->
IO ()
toolbarUnsetStyle ::
(B.CallStack.HasCallStack, MonadIO m, IsToolbar a) =>
a
-> m ()
toolbarUnsetStyle :: a -> m ()
toolbarUnsetStyle a
toolbar = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr Toolbar
toolbar' <- a -> IO (Ptr Toolbar)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
toolbar
Ptr Toolbar -> IO ()
gtk_toolbar_unset_style Ptr Toolbar
toolbar'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
toolbar
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data ToolbarUnsetStyleMethodInfo
instance (signature ~ (m ()), MonadIO m, IsToolbar a) => O.MethodInfo ToolbarUnsetStyleMethodInfo a signature where
overloadedMethod = toolbarUnsetStyle
#endif