{-# LANGUAGE TypeApplications #-}
#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.Gtk.Objects.AppChooserButton
(
AppChooserButton(..) ,
IsAppChooserButton ,
toAppChooserButton ,
noAppChooserButton ,
#if defined(ENABLE_OVERLOADING)
ResolveAppChooserButtonMethod ,
#endif
#if defined(ENABLE_OVERLOADING)
AppChooserButtonAppendCustomItemMethodInfo,
#endif
appChooserButtonAppendCustomItem ,
#if defined(ENABLE_OVERLOADING)
AppChooserButtonAppendSeparatorMethodInfo,
#endif
appChooserButtonAppendSeparator ,
#if defined(ENABLE_OVERLOADING)
AppChooserButtonGetHeadingMethodInfo ,
#endif
appChooserButtonGetHeading ,
#if defined(ENABLE_OVERLOADING)
AppChooserButtonGetShowDefaultItemMethodInfo,
#endif
appChooserButtonGetShowDefaultItem ,
#if defined(ENABLE_OVERLOADING)
AppChooserButtonGetShowDialogItemMethodInfo,
#endif
appChooserButtonGetShowDialogItem ,
appChooserButtonNew ,
#if defined(ENABLE_OVERLOADING)
AppChooserButtonSetActiveCustomItemMethodInfo,
#endif
appChooserButtonSetActiveCustomItem ,
#if defined(ENABLE_OVERLOADING)
AppChooserButtonSetHeadingMethodInfo ,
#endif
appChooserButtonSetHeading ,
#if defined(ENABLE_OVERLOADING)
AppChooserButtonSetShowDefaultItemMethodInfo,
#endif
appChooserButtonSetShowDefaultItem ,
#if defined(ENABLE_OVERLOADING)
AppChooserButtonSetShowDialogItemMethodInfo,
#endif
appChooserButtonSetShowDialogItem ,
#if defined(ENABLE_OVERLOADING)
AppChooserButtonHeadingPropertyInfo ,
#endif
#if defined(ENABLE_OVERLOADING)
appChooserButtonHeading ,
#endif
constructAppChooserButtonHeading ,
getAppChooserButtonHeading ,
setAppChooserButtonHeading ,
#if defined(ENABLE_OVERLOADING)
AppChooserButtonShowDefaultItemPropertyInfo,
#endif
#if defined(ENABLE_OVERLOADING)
appChooserButtonShowDefaultItem ,
#endif
constructAppChooserButtonShowDefaultItem,
getAppChooserButtonShowDefaultItem ,
setAppChooserButtonShowDefaultItem ,
#if defined(ENABLE_OVERLOADING)
AppChooserButtonShowDialogItemPropertyInfo,
#endif
#if defined(ENABLE_OVERLOADING)
appChooserButtonShowDialogItem ,
#endif
constructAppChooserButtonShowDialogItem ,
getAppChooserButtonShowDialogItem ,
setAppChooserButtonShowDialogItem ,
AppChooserButtonChangedCallback ,
#if defined(ENABLE_OVERLOADING)
AppChooserButtonChangedSignalInfo ,
#endif
C_AppChooserButtonChangedCallback ,
afterAppChooserButtonChanged ,
genClosure_AppChooserButtonChanged ,
mk_AppChooserButtonChangedCallback ,
noAppChooserButtonChangedCallback ,
onAppChooserButtonChanged ,
wrap_AppChooserButtonChangedCallback ,
AppChooserButtonCustomItemActivatedCallback,
#if defined(ENABLE_OVERLOADING)
AppChooserButtonCustomItemActivatedSignalInfo,
#endif
C_AppChooserButtonCustomItemActivatedCallback,
afterAppChooserButtonCustomItemActivated,
genClosure_AppChooserButtonCustomItemActivated,
mk_AppChooserButtonCustomItemActivatedCallback,
noAppChooserButtonCustomItemActivatedCallback,
onAppChooserButtonCustomItemActivated ,
wrap_AppChooserButtonCustomItemActivatedCallback,
) where
import Data.GI.Base.ShortPrelude
import qualified Data.GI.Base.ShortPrelude as SP
import qualified Data.GI.Base.Overloading as O
import qualified Prelude as P
import qualified Data.GI.Base.Attributes as GI.Attributes
import qualified Data.GI.Base.ManagedPtr as B.ManagedPtr
import qualified Data.GI.Base.GClosure as B.GClosure
import qualified Data.GI.Base.GError as B.GError
import qualified Data.GI.Base.GVariant as B.GVariant
import qualified Data.GI.Base.GValue as B.GValue
import qualified Data.GI.Base.GParamSpec as B.GParamSpec
import qualified Data.GI.Base.CallStack as B.CallStack
import qualified Data.GI.Base.Properties as B.Properties
import qualified Data.GI.Base.Signals as B.Signals
import qualified Data.Text as T
import qualified Data.ByteString.Char8 as B
import qualified Data.Map as Map
import qualified Foreign.Ptr as FP
import qualified GHC.OverloadedLabels as OL
import qualified GI.Atk.Interfaces.ImplementorIface as Atk.ImplementorIface
import qualified GI.GObject.Objects.Object as GObject.Object
import qualified GI.Gio.Interfaces.Icon as Gio.Icon
import {-# SOURCE #-} qualified GI.Gtk.Interfaces.AppChooser as Gtk.AppChooser
import {-# SOURCE #-} qualified GI.Gtk.Interfaces.Buildable as Gtk.Buildable
import {-# SOURCE #-} qualified GI.Gtk.Objects.Widget as Gtk.Widget
newtype AppChooserButton = AppChooserButton (ManagedPtr AppChooserButton)
deriving (AppChooserButton -> AppChooserButton -> Bool
(AppChooserButton -> AppChooserButton -> Bool)
-> (AppChooserButton -> AppChooserButton -> Bool)
-> Eq AppChooserButton
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AppChooserButton -> AppChooserButton -> Bool
$c/= :: AppChooserButton -> AppChooserButton -> Bool
== :: AppChooserButton -> AppChooserButton -> Bool
$c== :: AppChooserButton -> AppChooserButton -> Bool
Eq)
foreign import ccall "gtk_app_chooser_button_get_type"
c_gtk_app_chooser_button_get_type :: IO GType
instance GObject AppChooserButton where
gobjectType :: IO GType
gobjectType = IO GType
c_gtk_app_chooser_button_get_type
instance B.GValue.IsGValue AppChooserButton where
toGValue :: AppChooserButton -> IO GValue
toGValue o :: AppChooserButton
o = do
GType
gtype <- IO GType
c_gtk_app_chooser_button_get_type
AppChooserButton
-> (Ptr AppChooserButton -> IO GValue) -> IO GValue
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
B.ManagedPtr.withManagedPtr AppChooserButton
o (GType
-> (GValue -> Ptr AppChooserButton -> IO ())
-> Ptr AppChooserButton
-> IO GValue
forall a. GType -> (GValue -> a -> IO ()) -> a -> IO GValue
B.GValue.buildGValue GType
gtype GValue -> Ptr AppChooserButton -> IO ()
forall a. GObject a => GValue -> Ptr a -> IO ()
B.GValue.set_object)
fromGValue :: GValue -> IO AppChooserButton
fromGValue gv :: GValue
gv = do
Ptr AppChooserButton
ptr <- GValue -> IO (Ptr AppChooserButton)
forall b. GObject b => GValue -> IO (Ptr b)
B.GValue.get_object GValue
gv :: IO (Ptr AppChooserButton)
(ManagedPtr AppChooserButton -> AppChooserButton)
-> Ptr AppChooserButton -> IO AppChooserButton
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
B.ManagedPtr.newObject ManagedPtr AppChooserButton -> AppChooserButton
AppChooserButton Ptr AppChooserButton
ptr
class (GObject o, O.IsDescendantOf AppChooserButton o) => IsAppChooserButton o
instance (GObject o, O.IsDescendantOf AppChooserButton o) => IsAppChooserButton o
instance O.HasParentTypes AppChooserButton
type instance O.ParentTypes AppChooserButton = '[Gtk.Widget.Widget, GObject.Object.Object, Atk.ImplementorIface.ImplementorIface, Gtk.AppChooser.AppChooser, Gtk.Buildable.Buildable]
toAppChooserButton :: (MonadIO m, IsAppChooserButton o) => o -> m AppChooserButton
toAppChooserButton :: o -> m AppChooserButton
toAppChooserButton = IO AppChooserButton -> m AppChooserButton
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO AppChooserButton -> m AppChooserButton)
-> (o -> IO AppChooserButton) -> o -> m AppChooserButton
forall b c a. (b -> c) -> (a -> b) -> a -> c
. (ManagedPtr AppChooserButton -> AppChooserButton)
-> o -> IO AppChooserButton
forall o o'.
(HasCallStack, GObject o, GObject o') =>
(ManagedPtr o' -> o') -> o -> IO o'
unsafeCastTo ManagedPtr AppChooserButton -> AppChooserButton
AppChooserButton
noAppChooserButton :: Maybe AppChooserButton
noAppChooserButton :: Maybe AppChooserButton
noAppChooserButton = Maybe AppChooserButton
forall a. Maybe a
Nothing
#if defined(ENABLE_OVERLOADING)
type family ResolveAppChooserButtonMethod (t :: Symbol) (o :: *) :: * where
ResolveAppChooserButtonMethod "activate" o = Gtk.Widget.WidgetActivateMethodInfo
ResolveAppChooserButtonMethod "activateAction" o = Gtk.Widget.WidgetActivateActionMethodInfo
ResolveAppChooserButtonMethod "activateDefault" o = Gtk.Widget.WidgetActivateDefaultMethodInfo
ResolveAppChooserButtonMethod "addAccelerator" o = Gtk.Widget.WidgetAddAcceleratorMethodInfo
ResolveAppChooserButtonMethod "addChild" o = Gtk.Buildable.BuildableAddChildMethodInfo
ResolveAppChooserButtonMethod "addController" o = Gtk.Widget.WidgetAddControllerMethodInfo
ResolveAppChooserButtonMethod "addMnemonicLabel" o = Gtk.Widget.WidgetAddMnemonicLabelMethodInfo
ResolveAppChooserButtonMethod "addTickCallback" o = Gtk.Widget.WidgetAddTickCallbackMethodInfo
ResolveAppChooserButtonMethod "allocate" o = Gtk.Widget.WidgetAllocateMethodInfo
ResolveAppChooserButtonMethod "appendCustomItem" o = AppChooserButtonAppendCustomItemMethodInfo
ResolveAppChooserButtonMethod "appendSeparator" o = AppChooserButtonAppendSeparatorMethodInfo
ResolveAppChooserButtonMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolveAppChooserButtonMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolveAppChooserButtonMethod "canActivateAccel" o = Gtk.Widget.WidgetCanActivateAccelMethodInfo
ResolveAppChooserButtonMethod "childFocus" o = Gtk.Widget.WidgetChildFocusMethodInfo
ResolveAppChooserButtonMethod "computeBounds" o = Gtk.Widget.WidgetComputeBoundsMethodInfo
ResolveAppChooserButtonMethod "computeExpand" o = Gtk.Widget.WidgetComputeExpandMethodInfo
ResolveAppChooserButtonMethod "computePoint" o = Gtk.Widget.WidgetComputePointMethodInfo
ResolveAppChooserButtonMethod "computeTransform" o = Gtk.Widget.WidgetComputeTransformMethodInfo
ResolveAppChooserButtonMethod "constructChild" o = Gtk.Buildable.BuildableConstructChildMethodInfo
ResolveAppChooserButtonMethod "contains" o = Gtk.Widget.WidgetContainsMethodInfo
ResolveAppChooserButtonMethod "createPangoContext" o = Gtk.Widget.WidgetCreatePangoContextMethodInfo
ResolveAppChooserButtonMethod "createPangoLayout" o = Gtk.Widget.WidgetCreatePangoLayoutMethodInfo
ResolveAppChooserButtonMethod "customFinished" o = Gtk.Buildable.BuildableCustomFinishedMethodInfo
ResolveAppChooserButtonMethod "customTagEnd" o = Gtk.Buildable.BuildableCustomTagEndMethodInfo
ResolveAppChooserButtonMethod "customTagStart" o = Gtk.Buildable.BuildableCustomTagStartMethodInfo
ResolveAppChooserButtonMethod "destroy" o = Gtk.Widget.WidgetDestroyMethodInfo
ResolveAppChooserButtonMethod "destroyed" o = Gtk.Widget.WidgetDestroyedMethodInfo
ResolveAppChooserButtonMethod "deviceIsShadowed" o = Gtk.Widget.WidgetDeviceIsShadowedMethodInfo
ResolveAppChooserButtonMethod "dragBegin" o = Gtk.Widget.WidgetDragBeginMethodInfo
ResolveAppChooserButtonMethod "dragCheckThreshold" o = Gtk.Widget.WidgetDragCheckThresholdMethodInfo
ResolveAppChooserButtonMethod "dragDestAddImageTargets" o = Gtk.Widget.WidgetDragDestAddImageTargetsMethodInfo
ResolveAppChooserButtonMethod "dragDestAddTextTargets" o = Gtk.Widget.WidgetDragDestAddTextTargetsMethodInfo
ResolveAppChooserButtonMethod "dragDestAddUriTargets" o = Gtk.Widget.WidgetDragDestAddUriTargetsMethodInfo
ResolveAppChooserButtonMethod "dragDestFindTarget" o = Gtk.Widget.WidgetDragDestFindTargetMethodInfo
ResolveAppChooserButtonMethod "dragDestGetTargetList" o = Gtk.Widget.WidgetDragDestGetTargetListMethodInfo
ResolveAppChooserButtonMethod "dragDestGetTrackMotion" o = Gtk.Widget.WidgetDragDestGetTrackMotionMethodInfo
ResolveAppChooserButtonMethod "dragDestSet" o = Gtk.Widget.WidgetDragDestSetMethodInfo
ResolveAppChooserButtonMethod "dragDestSetTargetList" o = Gtk.Widget.WidgetDragDestSetTargetListMethodInfo
ResolveAppChooserButtonMethod "dragDestSetTrackMotion" o = Gtk.Widget.WidgetDragDestSetTrackMotionMethodInfo
ResolveAppChooserButtonMethod "dragDestUnset" o = Gtk.Widget.WidgetDragDestUnsetMethodInfo
ResolveAppChooserButtonMethod "dragGetData" o = Gtk.Widget.WidgetDragGetDataMethodInfo
ResolveAppChooserButtonMethod "dragHighlight" o = Gtk.Widget.WidgetDragHighlightMethodInfo
ResolveAppChooserButtonMethod "dragSourceAddImageTargets" o = Gtk.Widget.WidgetDragSourceAddImageTargetsMethodInfo
ResolveAppChooserButtonMethod "dragSourceAddTextTargets" o = Gtk.Widget.WidgetDragSourceAddTextTargetsMethodInfo
ResolveAppChooserButtonMethod "dragSourceAddUriTargets" o = Gtk.Widget.WidgetDragSourceAddUriTargetsMethodInfo
ResolveAppChooserButtonMethod "dragSourceGetTargetList" o = Gtk.Widget.WidgetDragSourceGetTargetListMethodInfo
ResolveAppChooserButtonMethod "dragSourceSet" o = Gtk.Widget.WidgetDragSourceSetMethodInfo
ResolveAppChooserButtonMethod "dragSourceSetIconGicon" o = Gtk.Widget.WidgetDragSourceSetIconGiconMethodInfo
ResolveAppChooserButtonMethod "dragSourceSetIconName" o = Gtk.Widget.WidgetDragSourceSetIconNameMethodInfo
ResolveAppChooserButtonMethod "dragSourceSetIconPaintable" o = Gtk.Widget.WidgetDragSourceSetIconPaintableMethodInfo
ResolveAppChooserButtonMethod "dragSourceSetTargetList" o = Gtk.Widget.WidgetDragSourceSetTargetListMethodInfo
ResolveAppChooserButtonMethod "dragSourceUnset" o = Gtk.Widget.WidgetDragSourceUnsetMethodInfo
ResolveAppChooserButtonMethod "dragUnhighlight" o = Gtk.Widget.WidgetDragUnhighlightMethodInfo
ResolveAppChooserButtonMethod "errorBell" o = Gtk.Widget.WidgetErrorBellMethodInfo
ResolveAppChooserButtonMethod "event" o = Gtk.Widget.WidgetEventMethodInfo
ResolveAppChooserButtonMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolveAppChooserButtonMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolveAppChooserButtonMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
ResolveAppChooserButtonMethod "grabAdd" o = Gtk.Widget.WidgetGrabAddMethodInfo
ResolveAppChooserButtonMethod "grabFocus" o = Gtk.Widget.WidgetGrabFocusMethodInfo
ResolveAppChooserButtonMethod "grabRemove" o = Gtk.Widget.WidgetGrabRemoveMethodInfo
ResolveAppChooserButtonMethod "hasDefault" o = Gtk.Widget.WidgetHasDefaultMethodInfo
ResolveAppChooserButtonMethod "hasFocus" o = Gtk.Widget.WidgetHasFocusMethodInfo
ResolveAppChooserButtonMethod "hasGrab" o = Gtk.Widget.WidgetHasGrabMethodInfo
ResolveAppChooserButtonMethod "hasVisibleFocus" o = Gtk.Widget.WidgetHasVisibleFocusMethodInfo
ResolveAppChooserButtonMethod "hide" o = Gtk.Widget.WidgetHideMethodInfo
ResolveAppChooserButtonMethod "inDestruction" o = Gtk.Widget.WidgetInDestructionMethodInfo
ResolveAppChooserButtonMethod "initTemplate" o = Gtk.Widget.WidgetInitTemplateMethodInfo
ResolveAppChooserButtonMethod "inputShapeCombineRegion" o = Gtk.Widget.WidgetInputShapeCombineRegionMethodInfo
ResolveAppChooserButtonMethod "insertActionGroup" o = Gtk.Widget.WidgetInsertActionGroupMethodInfo
ResolveAppChooserButtonMethod "insertAfter" o = Gtk.Widget.WidgetInsertAfterMethodInfo
ResolveAppChooserButtonMethod "insertBefore" o = Gtk.Widget.WidgetInsertBeforeMethodInfo
ResolveAppChooserButtonMethod "isAncestor" o = Gtk.Widget.WidgetIsAncestorMethodInfo
ResolveAppChooserButtonMethod "isDrawable" o = Gtk.Widget.WidgetIsDrawableMethodInfo
ResolveAppChooserButtonMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolveAppChooserButtonMethod "isFocus" o = Gtk.Widget.WidgetIsFocusMethodInfo
ResolveAppChooserButtonMethod "isSensitive" o = Gtk.Widget.WidgetIsSensitiveMethodInfo
ResolveAppChooserButtonMethod "isToplevel" o = Gtk.Widget.WidgetIsToplevelMethodInfo
ResolveAppChooserButtonMethod "isVisible" o = Gtk.Widget.WidgetIsVisibleMethodInfo
ResolveAppChooserButtonMethod "keynavFailed" o = Gtk.Widget.WidgetKeynavFailedMethodInfo
ResolveAppChooserButtonMethod "listAccelClosures" o = Gtk.Widget.WidgetListAccelClosuresMethodInfo
ResolveAppChooserButtonMethod "listActionPrefixes" o = Gtk.Widget.WidgetListActionPrefixesMethodInfo
ResolveAppChooserButtonMethod "listMnemonicLabels" o = Gtk.Widget.WidgetListMnemonicLabelsMethodInfo
ResolveAppChooserButtonMethod "map" o = Gtk.Widget.WidgetMapMethodInfo
ResolveAppChooserButtonMethod "measure" o = Gtk.Widget.WidgetMeasureMethodInfo
ResolveAppChooserButtonMethod "mnemonicActivate" o = Gtk.Widget.WidgetMnemonicActivateMethodInfo
ResolveAppChooserButtonMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolveAppChooserButtonMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolveAppChooserButtonMethod "observeChildren" o = Gtk.Widget.WidgetObserveChildrenMethodInfo
ResolveAppChooserButtonMethod "observeControllers" o = Gtk.Widget.WidgetObserveControllersMethodInfo
ResolveAppChooserButtonMethod "parserFinished" o = Gtk.Buildable.BuildableParserFinishedMethodInfo
ResolveAppChooserButtonMethod "pick" o = Gtk.Widget.WidgetPickMethodInfo
ResolveAppChooserButtonMethod "queueAllocate" o = Gtk.Widget.WidgetQueueAllocateMethodInfo
ResolveAppChooserButtonMethod "queueComputeExpand" o = Gtk.Widget.WidgetQueueComputeExpandMethodInfo
ResolveAppChooserButtonMethod "queueDraw" o = Gtk.Widget.WidgetQueueDrawMethodInfo
ResolveAppChooserButtonMethod "queueResize" o = Gtk.Widget.WidgetQueueResizeMethodInfo
ResolveAppChooserButtonMethod "queueResizeNoRedraw" o = Gtk.Widget.WidgetQueueResizeNoRedrawMethodInfo
ResolveAppChooserButtonMethod "realize" o = Gtk.Widget.WidgetRealizeMethodInfo
ResolveAppChooserButtonMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolveAppChooserButtonMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolveAppChooserButtonMethod "refresh" o = Gtk.AppChooser.AppChooserRefreshMethodInfo
ResolveAppChooserButtonMethod "registerSurface" o = Gtk.Widget.WidgetRegisterSurfaceMethodInfo
ResolveAppChooserButtonMethod "removeAccelerator" o = Gtk.Widget.WidgetRemoveAcceleratorMethodInfo
ResolveAppChooserButtonMethod "removeController" o = Gtk.Widget.WidgetRemoveControllerMethodInfo
ResolveAppChooserButtonMethod "removeMnemonicLabel" o = Gtk.Widget.WidgetRemoveMnemonicLabelMethodInfo
ResolveAppChooserButtonMethod "removeTickCallback" o = Gtk.Widget.WidgetRemoveTickCallbackMethodInfo
ResolveAppChooserButtonMethod "resetStyle" o = Gtk.Widget.WidgetResetStyleMethodInfo
ResolveAppChooserButtonMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolveAppChooserButtonMethod "show" o = Gtk.Widget.WidgetShowMethodInfo
ResolveAppChooserButtonMethod "sizeAllocate" o = Gtk.Widget.WidgetSizeAllocateMethodInfo
ResolveAppChooserButtonMethod "snapshotChild" o = Gtk.Widget.WidgetSnapshotChildMethodInfo
ResolveAppChooserButtonMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolveAppChooserButtonMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolveAppChooserButtonMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolveAppChooserButtonMethod "translateCoordinates" o = Gtk.Widget.WidgetTranslateCoordinatesMethodInfo
ResolveAppChooserButtonMethod "triggerTooltipQuery" o = Gtk.Widget.WidgetTriggerTooltipQueryMethodInfo
ResolveAppChooserButtonMethod "unmap" o = Gtk.Widget.WidgetUnmapMethodInfo
ResolveAppChooserButtonMethod "unparent" o = Gtk.Widget.WidgetUnparentMethodInfo
ResolveAppChooserButtonMethod "unrealize" o = Gtk.Widget.WidgetUnrealizeMethodInfo
ResolveAppChooserButtonMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolveAppChooserButtonMethod "unregisterSurface" o = Gtk.Widget.WidgetUnregisterSurfaceMethodInfo
ResolveAppChooserButtonMethod "unsetStateFlags" o = Gtk.Widget.WidgetUnsetStateFlagsMethodInfo
ResolveAppChooserButtonMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolveAppChooserButtonMethod "getAccessible" o = Gtk.Widget.WidgetGetAccessibleMethodInfo
ResolveAppChooserButtonMethod "getActionGroup" o = Gtk.Widget.WidgetGetActionGroupMethodInfo
ResolveAppChooserButtonMethod "getAllocatedBaseline" o = Gtk.Widget.WidgetGetAllocatedBaselineMethodInfo
ResolveAppChooserButtonMethod "getAllocatedHeight" o = Gtk.Widget.WidgetGetAllocatedHeightMethodInfo
ResolveAppChooserButtonMethod "getAllocatedWidth" o = Gtk.Widget.WidgetGetAllocatedWidthMethodInfo
ResolveAppChooserButtonMethod "getAllocation" o = Gtk.Widget.WidgetGetAllocationMethodInfo
ResolveAppChooserButtonMethod "getAncestor" o = Gtk.Widget.WidgetGetAncestorMethodInfo
ResolveAppChooserButtonMethod "getAppInfo" o = Gtk.AppChooser.AppChooserGetAppInfoMethodInfo
ResolveAppChooserButtonMethod "getCanFocus" o = Gtk.Widget.WidgetGetCanFocusMethodInfo
ResolveAppChooserButtonMethod "getCanTarget" o = Gtk.Widget.WidgetGetCanTargetMethodInfo
ResolveAppChooserButtonMethod "getChildVisible" o = Gtk.Widget.WidgetGetChildVisibleMethodInfo
ResolveAppChooserButtonMethod "getClipboard" o = Gtk.Widget.WidgetGetClipboardMethodInfo
ResolveAppChooserButtonMethod "getContentType" o = Gtk.AppChooser.AppChooserGetContentTypeMethodInfo
ResolveAppChooserButtonMethod "getCursor" o = Gtk.Widget.WidgetGetCursorMethodInfo
ResolveAppChooserButtonMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolveAppChooserButtonMethod "getDirection" o = Gtk.Widget.WidgetGetDirectionMethodInfo
ResolveAppChooserButtonMethod "getDisplay" o = Gtk.Widget.WidgetGetDisplayMethodInfo
ResolveAppChooserButtonMethod "getFirstChild" o = Gtk.Widget.WidgetGetFirstChildMethodInfo
ResolveAppChooserButtonMethod "getFocusChild" o = Gtk.Widget.WidgetGetFocusChildMethodInfo
ResolveAppChooserButtonMethod "getFocusOnClick" o = Gtk.Widget.WidgetGetFocusOnClickMethodInfo
ResolveAppChooserButtonMethod "getFontMap" o = Gtk.Widget.WidgetGetFontMapMethodInfo
ResolveAppChooserButtonMethod "getFontOptions" o = Gtk.Widget.WidgetGetFontOptionsMethodInfo
ResolveAppChooserButtonMethod "getFrameClock" o = Gtk.Widget.WidgetGetFrameClockMethodInfo
ResolveAppChooserButtonMethod "getHalign" o = Gtk.Widget.WidgetGetHalignMethodInfo
ResolveAppChooserButtonMethod "getHasSurface" o = Gtk.Widget.WidgetGetHasSurfaceMethodInfo
ResolveAppChooserButtonMethod "getHasTooltip" o = Gtk.Widget.WidgetGetHasTooltipMethodInfo
ResolveAppChooserButtonMethod "getHeading" o = AppChooserButtonGetHeadingMethodInfo
ResolveAppChooserButtonMethod "getHeight" o = Gtk.Widget.WidgetGetHeightMethodInfo
ResolveAppChooserButtonMethod "getHexpand" o = Gtk.Widget.WidgetGetHexpandMethodInfo
ResolveAppChooserButtonMethod "getHexpandSet" o = Gtk.Widget.WidgetGetHexpandSetMethodInfo
ResolveAppChooserButtonMethod "getInternalChild" o = Gtk.Buildable.BuildableGetInternalChildMethodInfo
ResolveAppChooserButtonMethod "getLastChild" o = Gtk.Widget.WidgetGetLastChildMethodInfo
ResolveAppChooserButtonMethod "getLayoutManager" o = Gtk.Widget.WidgetGetLayoutManagerMethodInfo
ResolveAppChooserButtonMethod "getMapped" o = Gtk.Widget.WidgetGetMappedMethodInfo
ResolveAppChooserButtonMethod "getMarginBottom" o = Gtk.Widget.WidgetGetMarginBottomMethodInfo
ResolveAppChooserButtonMethod "getMarginEnd" o = Gtk.Widget.WidgetGetMarginEndMethodInfo
ResolveAppChooserButtonMethod "getMarginStart" o = Gtk.Widget.WidgetGetMarginStartMethodInfo
ResolveAppChooserButtonMethod "getMarginTop" o = Gtk.Widget.WidgetGetMarginTopMethodInfo
ResolveAppChooserButtonMethod "getModifierMask" o = Gtk.Widget.WidgetGetModifierMaskMethodInfo
ResolveAppChooserButtonMethod "getName" o = Gtk.Widget.WidgetGetNameMethodInfo
ResolveAppChooserButtonMethod "getNextSibling" o = Gtk.Widget.WidgetGetNextSiblingMethodInfo
ResolveAppChooserButtonMethod "getOpacity" o = Gtk.Widget.WidgetGetOpacityMethodInfo
ResolveAppChooserButtonMethod "getOverflow" o = Gtk.Widget.WidgetGetOverflowMethodInfo
ResolveAppChooserButtonMethod "getPangoContext" o = Gtk.Widget.WidgetGetPangoContextMethodInfo
ResolveAppChooserButtonMethod "getParent" o = Gtk.Widget.WidgetGetParentMethodInfo
ResolveAppChooserButtonMethod "getPath" o = Gtk.Widget.WidgetGetPathMethodInfo
ResolveAppChooserButtonMethod "getPreferredSize" o = Gtk.Widget.WidgetGetPreferredSizeMethodInfo
ResolveAppChooserButtonMethod "getPrevSibling" o = Gtk.Widget.WidgetGetPrevSiblingMethodInfo
ResolveAppChooserButtonMethod "getPrimaryClipboard" o = Gtk.Widget.WidgetGetPrimaryClipboardMethodInfo
ResolveAppChooserButtonMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolveAppChooserButtonMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolveAppChooserButtonMethod "getRealized" o = Gtk.Widget.WidgetGetRealizedMethodInfo
ResolveAppChooserButtonMethod "getReceivesDefault" o = Gtk.Widget.WidgetGetReceivesDefaultMethodInfo
ResolveAppChooserButtonMethod "getRequestMode" o = Gtk.Widget.WidgetGetRequestModeMethodInfo
ResolveAppChooserButtonMethod "getRoot" o = Gtk.Widget.WidgetGetRootMethodInfo
ResolveAppChooserButtonMethod "getScaleFactor" o = Gtk.Widget.WidgetGetScaleFactorMethodInfo
ResolveAppChooserButtonMethod "getSensitive" o = Gtk.Widget.WidgetGetSensitiveMethodInfo
ResolveAppChooserButtonMethod "getSettings" o = Gtk.Widget.WidgetGetSettingsMethodInfo
ResolveAppChooserButtonMethod "getShowDefaultItem" o = AppChooserButtonGetShowDefaultItemMethodInfo
ResolveAppChooserButtonMethod "getShowDialogItem" o = AppChooserButtonGetShowDialogItemMethodInfo
ResolveAppChooserButtonMethod "getSizeRequest" o = Gtk.Widget.WidgetGetSizeRequestMethodInfo
ResolveAppChooserButtonMethod "getStateFlags" o = Gtk.Widget.WidgetGetStateFlagsMethodInfo
ResolveAppChooserButtonMethod "getStyleContext" o = Gtk.Widget.WidgetGetStyleContextMethodInfo
ResolveAppChooserButtonMethod "getSupportMultidevice" o = Gtk.Widget.WidgetGetSupportMultideviceMethodInfo
ResolveAppChooserButtonMethod "getSurface" o = Gtk.Widget.WidgetGetSurfaceMethodInfo
ResolveAppChooserButtonMethod "getTemplateChild" o = Gtk.Widget.WidgetGetTemplateChildMethodInfo
ResolveAppChooserButtonMethod "getTooltipMarkup" o = Gtk.Widget.WidgetGetTooltipMarkupMethodInfo
ResolveAppChooserButtonMethod "getTooltipText" o = Gtk.Widget.WidgetGetTooltipTextMethodInfo
ResolveAppChooserButtonMethod "getTooltipWindow" o = Gtk.Widget.WidgetGetTooltipWindowMethodInfo
ResolveAppChooserButtonMethod "getToplevel" o = Gtk.Widget.WidgetGetToplevelMethodInfo
ResolveAppChooserButtonMethod "getValign" o = Gtk.Widget.WidgetGetValignMethodInfo
ResolveAppChooserButtonMethod "getVexpand" o = Gtk.Widget.WidgetGetVexpandMethodInfo
ResolveAppChooserButtonMethod "getVexpandSet" o = Gtk.Widget.WidgetGetVexpandSetMethodInfo
ResolveAppChooserButtonMethod "getVisible" o = Gtk.Widget.WidgetGetVisibleMethodInfo
ResolveAppChooserButtonMethod "getWidth" o = Gtk.Widget.WidgetGetWidthMethodInfo
ResolveAppChooserButtonMethod "setAccelPath" o = Gtk.Widget.WidgetSetAccelPathMethodInfo
ResolveAppChooserButtonMethod "setActiveCustomItem" o = AppChooserButtonSetActiveCustomItemMethodInfo
ResolveAppChooserButtonMethod "setBuildableProperty" o = Gtk.Buildable.BuildableSetBuildablePropertyMethodInfo
ResolveAppChooserButtonMethod "setCanFocus" o = Gtk.Widget.WidgetSetCanFocusMethodInfo
ResolveAppChooserButtonMethod "setCanTarget" o = Gtk.Widget.WidgetSetCanTargetMethodInfo
ResolveAppChooserButtonMethod "setChildVisible" o = Gtk.Widget.WidgetSetChildVisibleMethodInfo
ResolveAppChooserButtonMethod "setCursor" o = Gtk.Widget.WidgetSetCursorMethodInfo
ResolveAppChooserButtonMethod "setCursorFromName" o = Gtk.Widget.WidgetSetCursorFromNameMethodInfo
ResolveAppChooserButtonMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolveAppChooserButtonMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
ResolveAppChooserButtonMethod "setDirection" o = Gtk.Widget.WidgetSetDirectionMethodInfo
ResolveAppChooserButtonMethod "setFocusChild" o = Gtk.Widget.WidgetSetFocusChildMethodInfo
ResolveAppChooserButtonMethod "setFocusOnClick" o = Gtk.Widget.WidgetSetFocusOnClickMethodInfo
ResolveAppChooserButtonMethod "setFontMap" o = Gtk.Widget.WidgetSetFontMapMethodInfo
ResolveAppChooserButtonMethod "setFontOptions" o = Gtk.Widget.WidgetSetFontOptionsMethodInfo
ResolveAppChooserButtonMethod "setHalign" o = Gtk.Widget.WidgetSetHalignMethodInfo
ResolveAppChooserButtonMethod "setHasSurface" o = Gtk.Widget.WidgetSetHasSurfaceMethodInfo
ResolveAppChooserButtonMethod "setHasTooltip" o = Gtk.Widget.WidgetSetHasTooltipMethodInfo
ResolveAppChooserButtonMethod "setHeading" o = AppChooserButtonSetHeadingMethodInfo
ResolveAppChooserButtonMethod "setHexpand" o = Gtk.Widget.WidgetSetHexpandMethodInfo
ResolveAppChooserButtonMethod "setHexpandSet" o = Gtk.Widget.WidgetSetHexpandSetMethodInfo
ResolveAppChooserButtonMethod "setLayoutManager" o = Gtk.Widget.WidgetSetLayoutManagerMethodInfo
ResolveAppChooserButtonMethod "setMarginBottom" o = Gtk.Widget.WidgetSetMarginBottomMethodInfo
ResolveAppChooserButtonMethod "setMarginEnd" o = Gtk.Widget.WidgetSetMarginEndMethodInfo
ResolveAppChooserButtonMethod "setMarginStart" o = Gtk.Widget.WidgetSetMarginStartMethodInfo
ResolveAppChooserButtonMethod "setMarginTop" o = Gtk.Widget.WidgetSetMarginTopMethodInfo
ResolveAppChooserButtonMethod "setName" o = Gtk.Widget.WidgetSetNameMethodInfo
ResolveAppChooserButtonMethod "setOpacity" o = Gtk.Widget.WidgetSetOpacityMethodInfo
ResolveAppChooserButtonMethod "setOverflow" o = Gtk.Widget.WidgetSetOverflowMethodInfo
ResolveAppChooserButtonMethod "setParent" o = Gtk.Widget.WidgetSetParentMethodInfo
ResolveAppChooserButtonMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolveAppChooserButtonMethod "setReceivesDefault" o = Gtk.Widget.WidgetSetReceivesDefaultMethodInfo
ResolveAppChooserButtonMethod "setSensitive" o = Gtk.Widget.WidgetSetSensitiveMethodInfo
ResolveAppChooserButtonMethod "setShowDefaultItem" o = AppChooserButtonSetShowDefaultItemMethodInfo
ResolveAppChooserButtonMethod "setShowDialogItem" o = AppChooserButtonSetShowDialogItemMethodInfo
ResolveAppChooserButtonMethod "setSizeRequest" o = Gtk.Widget.WidgetSetSizeRequestMethodInfo
ResolveAppChooserButtonMethod "setStateFlags" o = Gtk.Widget.WidgetSetStateFlagsMethodInfo
ResolveAppChooserButtonMethod "setSupportMultidevice" o = Gtk.Widget.WidgetSetSupportMultideviceMethodInfo
ResolveAppChooserButtonMethod "setSurface" o = Gtk.Widget.WidgetSetSurfaceMethodInfo
ResolveAppChooserButtonMethod "setTooltipMarkup" o = Gtk.Widget.WidgetSetTooltipMarkupMethodInfo
ResolveAppChooserButtonMethod "setTooltipText" o = Gtk.Widget.WidgetSetTooltipTextMethodInfo
ResolveAppChooserButtonMethod "setTooltipWindow" o = Gtk.Widget.WidgetSetTooltipWindowMethodInfo
ResolveAppChooserButtonMethod "setValign" o = Gtk.Widget.WidgetSetValignMethodInfo
ResolveAppChooserButtonMethod "setVexpand" o = Gtk.Widget.WidgetSetVexpandMethodInfo
ResolveAppChooserButtonMethod "setVexpandSet" o = Gtk.Widget.WidgetSetVexpandSetMethodInfo
ResolveAppChooserButtonMethod "setVisible" o = Gtk.Widget.WidgetSetVisibleMethodInfo
ResolveAppChooserButtonMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveAppChooserButtonMethod t AppChooserButton, O.MethodInfo info AppChooserButton p) => OL.IsLabel t (AppChooserButton -> p) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.overloadedMethod @info
#else
fromLabel _ = O.overloadedMethod @info
#endif
#endif
type AppChooserButtonChangedCallback =
IO ()
noAppChooserButtonChangedCallback :: Maybe AppChooserButtonChangedCallback
noAppChooserButtonChangedCallback :: Maybe (IO ())
noAppChooserButtonChangedCallback = Maybe (IO ())
forall a. Maybe a
Nothing
type C_AppChooserButtonChangedCallback =
Ptr () ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_AppChooserButtonChangedCallback :: C_AppChooserButtonChangedCallback -> IO (FunPtr C_AppChooserButtonChangedCallback)
genClosure_AppChooserButtonChanged :: MonadIO m => AppChooserButtonChangedCallback -> m (GClosure C_AppChooserButtonChangedCallback)
genClosure_AppChooserButtonChanged :: IO () -> m (GClosure C_AppChooserButtonChangedCallback)
genClosure_AppChooserButtonChanged cb :: IO ()
cb = IO (GClosure C_AppChooserButtonChangedCallback)
-> m (GClosure C_AppChooserButtonChangedCallback)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (GClosure C_AppChooserButtonChangedCallback)
-> m (GClosure C_AppChooserButtonChangedCallback))
-> IO (GClosure C_AppChooserButtonChangedCallback)
-> m (GClosure C_AppChooserButtonChangedCallback)
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_AppChooserButtonChangedCallback
cb' = IO () -> C_AppChooserButtonChangedCallback
wrap_AppChooserButtonChangedCallback IO ()
cb
C_AppChooserButtonChangedCallback
-> IO (FunPtr C_AppChooserButtonChangedCallback)
mk_AppChooserButtonChangedCallback C_AppChooserButtonChangedCallback
cb' IO (FunPtr C_AppChooserButtonChangedCallback)
-> (FunPtr C_AppChooserButtonChangedCallback
-> IO (GClosure C_AppChooserButtonChangedCallback))
-> IO (GClosure C_AppChooserButtonChangedCallback)
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= FunPtr C_AppChooserButtonChangedCallback
-> IO (GClosure C_AppChooserButtonChangedCallback)
forall (m :: * -> *) a. MonadIO m => FunPtr a -> m (GClosure a)
B.GClosure.newGClosure
wrap_AppChooserButtonChangedCallback ::
AppChooserButtonChangedCallback ->
C_AppChooserButtonChangedCallback
wrap_AppChooserButtonChangedCallback :: IO () -> C_AppChooserButtonChangedCallback
wrap_AppChooserButtonChangedCallback _cb :: IO ()
_cb _ _ = do
IO ()
_cb
onAppChooserButtonChanged :: (IsAppChooserButton a, MonadIO m) => a -> AppChooserButtonChangedCallback -> m SignalHandlerId
onAppChooserButtonChanged :: a -> IO () -> m SignalHandlerId
onAppChooserButtonChanged obj :: a
obj cb :: IO ()
cb = IO SignalHandlerId -> m SignalHandlerId
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_AppChooserButtonChangedCallback
cb' = IO () -> C_AppChooserButtonChangedCallback
wrap_AppChooserButtonChangedCallback IO ()
cb
FunPtr C_AppChooserButtonChangedCallback
cb'' <- C_AppChooserButtonChangedCallback
-> IO (FunPtr C_AppChooserButtonChangedCallback)
mk_AppChooserButtonChangedCallback C_AppChooserButtonChangedCallback
cb'
a
-> Text
-> FunPtr C_AppChooserButtonChangedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj "changed" FunPtr C_AppChooserButtonChangedCallback
cb'' SignalConnectMode
SignalConnectBefore Maybe Text
forall a. Maybe a
Nothing
afterAppChooserButtonChanged :: (IsAppChooserButton a, MonadIO m) => a -> AppChooserButtonChangedCallback -> m SignalHandlerId
afterAppChooserButtonChanged :: a -> IO () -> m SignalHandlerId
afterAppChooserButtonChanged obj :: a
obj cb :: IO ()
cb = IO SignalHandlerId -> m SignalHandlerId
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_AppChooserButtonChangedCallback
cb' = IO () -> C_AppChooserButtonChangedCallback
wrap_AppChooserButtonChangedCallback IO ()
cb
FunPtr C_AppChooserButtonChangedCallback
cb'' <- C_AppChooserButtonChangedCallback
-> IO (FunPtr C_AppChooserButtonChangedCallback)
mk_AppChooserButtonChangedCallback C_AppChooserButtonChangedCallback
cb'
a
-> Text
-> FunPtr C_AppChooserButtonChangedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj "changed" FunPtr C_AppChooserButtonChangedCallback
cb'' SignalConnectMode
SignalConnectAfter Maybe Text
forall a. Maybe a
Nothing
#if defined(ENABLE_OVERLOADING)
data AppChooserButtonChangedSignalInfo
instance SignalInfo AppChooserButtonChangedSignalInfo where
type HaskellCallbackType AppChooserButtonChangedSignalInfo = AppChooserButtonChangedCallback
connectSignal obj cb connectMode detail = do
let cb' = wrap_AppChooserButtonChangedCallback cb
cb'' <- mk_AppChooserButtonChangedCallback cb'
connectSignalFunPtr obj "changed" cb'' connectMode detail
#endif
type AppChooserButtonCustomItemActivatedCallback =
T.Text
-> IO ()
noAppChooserButtonCustomItemActivatedCallback :: Maybe AppChooserButtonCustomItemActivatedCallback
noAppChooserButtonCustomItemActivatedCallback :: Maybe AppChooserButtonCustomItemActivatedCallback
noAppChooserButtonCustomItemActivatedCallback = Maybe AppChooserButtonCustomItemActivatedCallback
forall a. Maybe a
Nothing
type C_AppChooserButtonCustomItemActivatedCallback =
Ptr () ->
CString ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_AppChooserButtonCustomItemActivatedCallback :: C_AppChooserButtonCustomItemActivatedCallback -> IO (FunPtr C_AppChooserButtonCustomItemActivatedCallback)
genClosure_AppChooserButtonCustomItemActivated :: MonadIO m => AppChooserButtonCustomItemActivatedCallback -> m (GClosure C_AppChooserButtonCustomItemActivatedCallback)
genClosure_AppChooserButtonCustomItemActivated :: AppChooserButtonCustomItemActivatedCallback
-> m (GClosure C_AppChooserButtonCustomItemActivatedCallback)
genClosure_AppChooserButtonCustomItemActivated cb :: AppChooserButtonCustomItemActivatedCallback
cb = IO (GClosure C_AppChooserButtonCustomItemActivatedCallback)
-> m (GClosure C_AppChooserButtonCustomItemActivatedCallback)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (GClosure C_AppChooserButtonCustomItemActivatedCallback)
-> m (GClosure C_AppChooserButtonCustomItemActivatedCallback))
-> IO (GClosure C_AppChooserButtonCustomItemActivatedCallback)
-> m (GClosure C_AppChooserButtonCustomItemActivatedCallback)
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_AppChooserButtonCustomItemActivatedCallback
cb' = AppChooserButtonCustomItemActivatedCallback
-> C_AppChooserButtonCustomItemActivatedCallback
wrap_AppChooserButtonCustomItemActivatedCallback AppChooserButtonCustomItemActivatedCallback
cb
C_AppChooserButtonCustomItemActivatedCallback
-> IO (FunPtr C_AppChooserButtonCustomItemActivatedCallback)
mk_AppChooserButtonCustomItemActivatedCallback C_AppChooserButtonCustomItemActivatedCallback
cb' IO (FunPtr C_AppChooserButtonCustomItemActivatedCallback)
-> (FunPtr C_AppChooserButtonCustomItemActivatedCallback
-> IO (GClosure C_AppChooserButtonCustomItemActivatedCallback))
-> IO (GClosure C_AppChooserButtonCustomItemActivatedCallback)
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= FunPtr C_AppChooserButtonCustomItemActivatedCallback
-> IO (GClosure C_AppChooserButtonCustomItemActivatedCallback)
forall (m :: * -> *) a. MonadIO m => FunPtr a -> m (GClosure a)
B.GClosure.newGClosure
wrap_AppChooserButtonCustomItemActivatedCallback ::
AppChooserButtonCustomItemActivatedCallback ->
C_AppChooserButtonCustomItemActivatedCallback
wrap_AppChooserButtonCustomItemActivatedCallback :: AppChooserButtonCustomItemActivatedCallback
-> C_AppChooserButtonCustomItemActivatedCallback
wrap_AppChooserButtonCustomItemActivatedCallback _cb :: AppChooserButtonCustomItemActivatedCallback
_cb _ itemName :: CString
itemName _ = do
Text
itemName' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
itemName
AppChooserButtonCustomItemActivatedCallback
_cb Text
itemName'
onAppChooserButtonCustomItemActivated :: (IsAppChooserButton a, MonadIO m) => a -> P.Maybe T.Text -> AppChooserButtonCustomItemActivatedCallback -> m SignalHandlerId
onAppChooserButtonCustomItemActivated :: a
-> Maybe Text
-> AppChooserButtonCustomItemActivatedCallback
-> m SignalHandlerId
onAppChooserButtonCustomItemActivated obj :: a
obj detail :: Maybe Text
detail cb :: AppChooserButtonCustomItemActivatedCallback
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_AppChooserButtonCustomItemActivatedCallback
cb' = AppChooserButtonCustomItemActivatedCallback
-> C_AppChooserButtonCustomItemActivatedCallback
wrap_AppChooserButtonCustomItemActivatedCallback AppChooserButtonCustomItemActivatedCallback
cb
FunPtr C_AppChooserButtonCustomItemActivatedCallback
cb'' <- C_AppChooserButtonCustomItemActivatedCallback
-> IO (FunPtr C_AppChooserButtonCustomItemActivatedCallback)
mk_AppChooserButtonCustomItemActivatedCallback C_AppChooserButtonCustomItemActivatedCallback
cb'
a
-> Text
-> FunPtr C_AppChooserButtonCustomItemActivatedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj "custom-item-activated" FunPtr C_AppChooserButtonCustomItemActivatedCallback
cb'' SignalConnectMode
SignalConnectBefore Maybe Text
detail
afterAppChooserButtonCustomItemActivated :: (IsAppChooserButton a, MonadIO m) => a -> P.Maybe T.Text -> AppChooserButtonCustomItemActivatedCallback -> m SignalHandlerId
afterAppChooserButtonCustomItemActivated :: a
-> Maybe Text
-> AppChooserButtonCustomItemActivatedCallback
-> m SignalHandlerId
afterAppChooserButtonCustomItemActivated obj :: a
obj detail :: Maybe Text
detail cb :: AppChooserButtonCustomItemActivatedCallback
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_AppChooserButtonCustomItemActivatedCallback
cb' = AppChooserButtonCustomItemActivatedCallback
-> C_AppChooserButtonCustomItemActivatedCallback
wrap_AppChooserButtonCustomItemActivatedCallback AppChooserButtonCustomItemActivatedCallback
cb
FunPtr C_AppChooserButtonCustomItemActivatedCallback
cb'' <- C_AppChooserButtonCustomItemActivatedCallback
-> IO (FunPtr C_AppChooserButtonCustomItemActivatedCallback)
mk_AppChooserButtonCustomItemActivatedCallback C_AppChooserButtonCustomItemActivatedCallback
cb'
a
-> Text
-> FunPtr C_AppChooserButtonCustomItemActivatedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj "custom-item-activated" FunPtr C_AppChooserButtonCustomItemActivatedCallback
cb'' SignalConnectMode
SignalConnectAfter Maybe Text
detail
#if defined(ENABLE_OVERLOADING)
data AppChooserButtonCustomItemActivatedSignalInfo
instance SignalInfo AppChooserButtonCustomItemActivatedSignalInfo where
type HaskellCallbackType AppChooserButtonCustomItemActivatedSignalInfo = AppChooserButtonCustomItemActivatedCallback
connectSignal obj cb connectMode detail = do
let cb' = wrap_AppChooserButtonCustomItemActivatedCallback cb
cb'' <- mk_AppChooserButtonCustomItemActivatedCallback cb'
connectSignalFunPtr obj "custom-item-activated" cb'' connectMode detail
#endif
getAppChooserButtonHeading :: (MonadIO m, IsAppChooserButton o) => o -> m (Maybe T.Text)
getAppChooserButtonHeading :: o -> m (Maybe Text)
getAppChooserButtonHeading obj :: o
obj = IO (Maybe Text) -> m (Maybe Text)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (Maybe Text) -> m (Maybe Text))
-> IO (Maybe Text) -> m (Maybe Text)
forall a b. (a -> b) -> a -> b
$ o -> String -> IO (Maybe Text)
forall a. GObject a => a -> String -> IO (Maybe Text)
B.Properties.getObjectPropertyString o
obj "heading"
setAppChooserButtonHeading :: (MonadIO m, IsAppChooserButton o) => o -> T.Text -> m ()
setAppChooserButtonHeading :: o -> Text -> m ()
setAppChooserButtonHeading obj :: o
obj val :: Text
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj "heading" (Text -> Maybe Text
forall a. a -> Maybe a
Just Text
val)
constructAppChooserButtonHeading :: (IsAppChooserButton o) => T.Text -> IO (GValueConstruct o)
constructAppChooserButtonHeading :: Text -> IO (GValueConstruct o)
constructAppChooserButtonHeading val :: Text
val = String -> Maybe Text -> IO (GValueConstruct o)
forall o. String -> Maybe Text -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyString "heading" (Text -> Maybe Text
forall a. a -> Maybe a
Just Text
val)
#if defined(ENABLE_OVERLOADING)
data AppChooserButtonHeadingPropertyInfo
instance AttrInfo AppChooserButtonHeadingPropertyInfo where
type AttrAllowedOps AppChooserButtonHeadingPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint AppChooserButtonHeadingPropertyInfo = IsAppChooserButton
type AttrSetTypeConstraint AppChooserButtonHeadingPropertyInfo = (~) T.Text
type AttrTransferTypeConstraint AppChooserButtonHeadingPropertyInfo = (~) T.Text
type AttrTransferType AppChooserButtonHeadingPropertyInfo = T.Text
type AttrGetType AppChooserButtonHeadingPropertyInfo = (Maybe T.Text)
type AttrLabel AppChooserButtonHeadingPropertyInfo = "heading"
type AttrOrigin AppChooserButtonHeadingPropertyInfo = AppChooserButton
attrGet = getAppChooserButtonHeading
attrSet = setAppChooserButtonHeading
attrTransfer _ v = do
return v
attrConstruct = constructAppChooserButtonHeading
attrClear = undefined
#endif
getAppChooserButtonShowDefaultItem :: (MonadIO m, IsAppChooserButton o) => o -> m Bool
getAppChooserButtonShowDefaultItem :: o -> m Bool
getAppChooserButtonShowDefaultItem obj :: 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 "show-default-item"
setAppChooserButtonShowDefaultItem :: (MonadIO m, IsAppChooserButton o) => o -> Bool -> m ()
setAppChooserButtonShowDefaultItem :: o -> Bool -> m ()
setAppChooserButtonShowDefaultItem obj :: o
obj val :: 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 "show-default-item" Bool
val
constructAppChooserButtonShowDefaultItem :: (IsAppChooserButton o) => Bool -> IO (GValueConstruct o)
constructAppChooserButtonShowDefaultItem :: Bool -> IO (GValueConstruct o)
constructAppChooserButtonShowDefaultItem val :: Bool
val = String -> Bool -> IO (GValueConstruct o)
forall o. String -> Bool -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyBool "show-default-item" Bool
val
#if defined(ENABLE_OVERLOADING)
data AppChooserButtonShowDefaultItemPropertyInfo
instance AttrInfo AppChooserButtonShowDefaultItemPropertyInfo where
type AttrAllowedOps AppChooserButtonShowDefaultItemPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint AppChooserButtonShowDefaultItemPropertyInfo = IsAppChooserButton
type AttrSetTypeConstraint AppChooserButtonShowDefaultItemPropertyInfo = (~) Bool
type AttrTransferTypeConstraint AppChooserButtonShowDefaultItemPropertyInfo = (~) Bool
type AttrTransferType AppChooserButtonShowDefaultItemPropertyInfo = Bool
type AttrGetType AppChooserButtonShowDefaultItemPropertyInfo = Bool
type AttrLabel AppChooserButtonShowDefaultItemPropertyInfo = "show-default-item"
type AttrOrigin AppChooserButtonShowDefaultItemPropertyInfo = AppChooserButton
attrGet = getAppChooserButtonShowDefaultItem
attrSet = setAppChooserButtonShowDefaultItem
attrTransfer _ v = do
return v
attrConstruct = constructAppChooserButtonShowDefaultItem
attrClear = undefined
#endif
getAppChooserButtonShowDialogItem :: (MonadIO m, IsAppChooserButton o) => o -> m Bool
getAppChooserButtonShowDialogItem :: o -> m Bool
getAppChooserButtonShowDialogItem obj :: 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 "show-dialog-item"
setAppChooserButtonShowDialogItem :: (MonadIO m, IsAppChooserButton o) => o -> Bool -> m ()
setAppChooserButtonShowDialogItem :: o -> Bool -> m ()
setAppChooserButtonShowDialogItem obj :: o
obj val :: 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 "show-dialog-item" Bool
val
constructAppChooserButtonShowDialogItem :: (IsAppChooserButton o) => Bool -> IO (GValueConstruct o)
constructAppChooserButtonShowDialogItem :: Bool -> IO (GValueConstruct o)
constructAppChooserButtonShowDialogItem val :: Bool
val = String -> Bool -> IO (GValueConstruct o)
forall o. String -> Bool -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyBool "show-dialog-item" Bool
val
#if defined(ENABLE_OVERLOADING)
data AppChooserButtonShowDialogItemPropertyInfo
instance AttrInfo AppChooserButtonShowDialogItemPropertyInfo where
type AttrAllowedOps AppChooserButtonShowDialogItemPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint AppChooserButtonShowDialogItemPropertyInfo = IsAppChooserButton
type AttrSetTypeConstraint AppChooserButtonShowDialogItemPropertyInfo = (~) Bool
type AttrTransferTypeConstraint AppChooserButtonShowDialogItemPropertyInfo = (~) Bool
type AttrTransferType AppChooserButtonShowDialogItemPropertyInfo = Bool
type AttrGetType AppChooserButtonShowDialogItemPropertyInfo = Bool
type AttrLabel AppChooserButtonShowDialogItemPropertyInfo = "show-dialog-item"
type AttrOrigin AppChooserButtonShowDialogItemPropertyInfo = AppChooserButton
attrGet = getAppChooserButtonShowDialogItem
attrSet = setAppChooserButtonShowDialogItem
attrTransfer _ v = do
return v
attrConstruct = constructAppChooserButtonShowDialogItem
attrClear = undefined
#endif
#if defined(ENABLE_OVERLOADING)
instance O.HasAttributeList AppChooserButton
type instance O.AttributeList AppChooserButton = AppChooserButtonAttributeList
type AppChooserButtonAttributeList = ('[ '("canFocus", Gtk.Widget.WidgetCanFocusPropertyInfo), '("canTarget", Gtk.Widget.WidgetCanTargetPropertyInfo), '("contentType", Gtk.AppChooser.AppChooserContentTypePropertyInfo), '("cssName", Gtk.Widget.WidgetCssNamePropertyInfo), '("cursor", Gtk.Widget.WidgetCursorPropertyInfo), '("expand", Gtk.Widget.WidgetExpandPropertyInfo), '("focusOnClick", Gtk.Widget.WidgetFocusOnClickPropertyInfo), '("halign", Gtk.Widget.WidgetHalignPropertyInfo), '("hasDefault", Gtk.Widget.WidgetHasDefaultPropertyInfo), '("hasFocus", Gtk.Widget.WidgetHasFocusPropertyInfo), '("hasTooltip", Gtk.Widget.WidgetHasTooltipPropertyInfo), '("heading", AppChooserButtonHeadingPropertyInfo), '("heightRequest", Gtk.Widget.WidgetHeightRequestPropertyInfo), '("hexpand", Gtk.Widget.WidgetHexpandPropertyInfo), '("hexpandSet", Gtk.Widget.WidgetHexpandSetPropertyInfo), '("isFocus", Gtk.Widget.WidgetIsFocusPropertyInfo), '("layoutManager", Gtk.Widget.WidgetLayoutManagerPropertyInfo), '("margin", Gtk.Widget.WidgetMarginPropertyInfo), '("marginBottom", Gtk.Widget.WidgetMarginBottomPropertyInfo), '("marginEnd", Gtk.Widget.WidgetMarginEndPropertyInfo), '("marginStart", Gtk.Widget.WidgetMarginStartPropertyInfo), '("marginTop", Gtk.Widget.WidgetMarginTopPropertyInfo), '("name", Gtk.Widget.WidgetNamePropertyInfo), '("opacity", Gtk.Widget.WidgetOpacityPropertyInfo), '("overflow", Gtk.Widget.WidgetOverflowPropertyInfo), '("parent", Gtk.Widget.WidgetParentPropertyInfo), '("receivesDefault", Gtk.Widget.WidgetReceivesDefaultPropertyInfo), '("root", Gtk.Widget.WidgetRootPropertyInfo), '("scaleFactor", Gtk.Widget.WidgetScaleFactorPropertyInfo), '("sensitive", Gtk.Widget.WidgetSensitivePropertyInfo), '("showDefaultItem", AppChooserButtonShowDefaultItemPropertyInfo), '("showDialogItem", AppChooserButtonShowDialogItemPropertyInfo), '("surface", Gtk.Widget.WidgetSurfacePropertyInfo), '("tooltipMarkup", Gtk.Widget.WidgetTooltipMarkupPropertyInfo), '("tooltipText", Gtk.Widget.WidgetTooltipTextPropertyInfo), '("valign", Gtk.Widget.WidgetValignPropertyInfo), '("vexpand", Gtk.Widget.WidgetVexpandPropertyInfo), '("vexpandSet", Gtk.Widget.WidgetVexpandSetPropertyInfo), '("visible", Gtk.Widget.WidgetVisiblePropertyInfo), '("widthRequest", Gtk.Widget.WidgetWidthRequestPropertyInfo)] :: [(Symbol, *)])
#endif
#if defined(ENABLE_OVERLOADING)
appChooserButtonHeading :: AttrLabelProxy "heading"
appChooserButtonHeading = AttrLabelProxy
appChooserButtonShowDefaultItem :: AttrLabelProxy "showDefaultItem"
appChooserButtonShowDefaultItem = AttrLabelProxy
appChooserButtonShowDialogItem :: AttrLabelProxy "showDialogItem"
appChooserButtonShowDialogItem = AttrLabelProxy
#endif
#if defined(ENABLE_OVERLOADING)
type instance O.SignalList AppChooserButton = AppChooserButtonSignalList
type AppChooserButtonSignalList = ('[ '("accelClosuresChanged", Gtk.Widget.WidgetAccelClosuresChangedSignalInfo), '("canActivateAccel", Gtk.Widget.WidgetCanActivateAccelSignalInfo), '("changed", AppChooserButtonChangedSignalInfo), '("customItemActivated", AppChooserButtonCustomItemActivatedSignalInfo), '("destroy", Gtk.Widget.WidgetDestroySignalInfo), '("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), '("grabNotify", Gtk.Widget.WidgetGrabNotifySignalInfo), '("hide", Gtk.Widget.WidgetHideSignalInfo), '("keynavFailed", Gtk.Widget.WidgetKeynavFailedSignalInfo), '("map", Gtk.Widget.WidgetMapSignalInfo), '("mnemonicActivate", Gtk.Widget.WidgetMnemonicActivateSignalInfo), '("moveFocus", Gtk.Widget.WidgetMoveFocusSignalInfo), '("notify", GObject.Object.ObjectNotifySignalInfo), '("popupMenu", Gtk.Widget.WidgetPopupMenuSignalInfo), '("queryTooltip", Gtk.Widget.WidgetQueryTooltipSignalInfo), '("realize", Gtk.Widget.WidgetRealizeSignalInfo), '("show", Gtk.Widget.WidgetShowSignalInfo), '("sizeAllocate", Gtk.Widget.WidgetSizeAllocateSignalInfo), '("stateFlagsChanged", Gtk.Widget.WidgetStateFlagsChangedSignalInfo), '("styleUpdated", Gtk.Widget.WidgetStyleUpdatedSignalInfo), '("unmap", Gtk.Widget.WidgetUnmapSignalInfo), '("unrealize", Gtk.Widget.WidgetUnrealizeSignalInfo)] :: [(Symbol, *)])
#endif
foreign import ccall "gtk_app_chooser_button_new" gtk_app_chooser_button_new ::
CString ->
IO (Ptr AppChooserButton)
appChooserButtonNew ::
(B.CallStack.HasCallStack, MonadIO m) =>
T.Text
-> m AppChooserButton
appChooserButtonNew :: Text -> m AppChooserButton
appChooserButtonNew contentType :: Text
contentType = IO AppChooserButton -> m AppChooserButton
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO AppChooserButton -> m AppChooserButton)
-> IO AppChooserButton -> m AppChooserButton
forall a b. (a -> b) -> a -> b
$ do
CString
contentType' <- Text -> IO CString
textToCString Text
contentType
Ptr AppChooserButton
result <- CString -> IO (Ptr AppChooserButton)
gtk_app_chooser_button_new CString
contentType'
Text -> Ptr AppChooserButton -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL "appChooserButtonNew" Ptr AppChooserButton
result
AppChooserButton
result' <- ((ManagedPtr AppChooserButton -> AppChooserButton)
-> Ptr AppChooserButton -> IO AppChooserButton
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr AppChooserButton -> AppChooserButton
AppChooserButton) Ptr AppChooserButton
result
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
contentType'
AppChooserButton -> IO AppChooserButton
forall (m :: * -> *) a. Monad m => a -> m a
return AppChooserButton
result'
#if defined(ENABLE_OVERLOADING)
#endif
foreign import ccall "gtk_app_chooser_button_append_custom_item" gtk_app_chooser_button_append_custom_item ::
Ptr AppChooserButton ->
CString ->
CString ->
Ptr Gio.Icon.Icon ->
IO ()
appChooserButtonAppendCustomItem ::
(B.CallStack.HasCallStack, MonadIO m, IsAppChooserButton a, Gio.Icon.IsIcon b) =>
a
-> T.Text
-> T.Text
-> b
-> m ()
appChooserButtonAppendCustomItem :: a -> Text -> Text -> b -> m ()
appChooserButtonAppendCustomItem self :: a
self name :: Text
name label :: Text
label icon :: b
icon = 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 AppChooserButton
self' <- a -> IO (Ptr AppChooserButton)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
CString
name' <- Text -> IO CString
textToCString Text
name
CString
label' <- Text -> IO CString
textToCString Text
label
Ptr Icon
icon' <- b -> IO (Ptr Icon)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr b
icon
Ptr AppChooserButton -> CString -> CString -> Ptr Icon -> IO ()
gtk_app_chooser_button_append_custom_item Ptr AppChooserButton
self' CString
name' CString
label' Ptr Icon
icon'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
b -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr b
icon
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
name'
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
label'
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data AppChooserButtonAppendCustomItemMethodInfo
instance (signature ~ (T.Text -> T.Text -> b -> m ()), MonadIO m, IsAppChooserButton a, Gio.Icon.IsIcon b) => O.MethodInfo AppChooserButtonAppendCustomItemMethodInfo a signature where
overloadedMethod = appChooserButtonAppendCustomItem
#endif
foreign import ccall "gtk_app_chooser_button_append_separator" gtk_app_chooser_button_append_separator ::
Ptr AppChooserButton ->
IO ()
appChooserButtonAppendSeparator ::
(B.CallStack.HasCallStack, MonadIO m, IsAppChooserButton a) =>
a
-> m ()
appChooserButtonAppendSeparator :: a -> m ()
appChooserButtonAppendSeparator self :: a
self = 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 AppChooserButton
self' <- a -> IO (Ptr AppChooserButton)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
Ptr AppChooserButton -> IO ()
gtk_app_chooser_button_append_separator Ptr AppChooserButton
self'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data AppChooserButtonAppendSeparatorMethodInfo
instance (signature ~ (m ()), MonadIO m, IsAppChooserButton a) => O.MethodInfo AppChooserButtonAppendSeparatorMethodInfo a signature where
overloadedMethod = appChooserButtonAppendSeparator
#endif
foreign import ccall "gtk_app_chooser_button_get_heading" gtk_app_chooser_button_get_heading ::
Ptr AppChooserButton ->
IO CString
appChooserButtonGetHeading ::
(B.CallStack.HasCallStack, MonadIO m, IsAppChooserButton a) =>
a
-> m (Maybe T.Text)
appChooserButtonGetHeading :: a -> m (Maybe Text)
appChooserButtonGetHeading self :: a
self = IO (Maybe Text) -> m (Maybe Text)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (Maybe Text) -> m (Maybe Text))
-> IO (Maybe Text) -> m (Maybe Text)
forall a b. (a -> b) -> a -> b
$ do
Ptr AppChooserButton
self' <- a -> IO (Ptr AppChooserButton)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
CString
result <- Ptr AppChooserButton -> IO CString
gtk_app_chooser_button_get_heading Ptr AppChooserButton
self'
Maybe Text
maybeResult <- CString -> (CString -> IO Text) -> IO (Maybe Text)
forall a b. Ptr a -> (Ptr a -> IO b) -> IO (Maybe b)
convertIfNonNull CString
result ((CString -> IO Text) -> IO (Maybe Text))
-> (CString -> IO Text) -> IO (Maybe Text)
forall a b. (a -> b) -> a -> b
$ \result' :: CString
result' -> do
Text
result'' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
result'
Text -> IO Text
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result''
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
Maybe Text -> IO (Maybe Text)
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe Text
maybeResult
#if defined(ENABLE_OVERLOADING)
data AppChooserButtonGetHeadingMethodInfo
instance (signature ~ (m (Maybe T.Text)), MonadIO m, IsAppChooserButton a) => O.MethodInfo AppChooserButtonGetHeadingMethodInfo a signature where
overloadedMethod = appChooserButtonGetHeading
#endif
foreign import ccall "gtk_app_chooser_button_get_show_default_item" gtk_app_chooser_button_get_show_default_item ::
Ptr AppChooserButton ->
IO CInt
appChooserButtonGetShowDefaultItem ::
(B.CallStack.HasCallStack, MonadIO m, IsAppChooserButton a) =>
a
-> m Bool
appChooserButtonGetShowDefaultItem :: a -> m Bool
appChooserButtonGetShowDefaultItem self :: a
self = 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 AppChooserButton
self' <- a -> IO (Ptr AppChooserButton)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
CInt
result <- Ptr AppChooserButton -> IO CInt
gtk_app_chooser_button_get_show_default_item Ptr AppChooserButton
self'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= 0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
Bool -> IO Bool
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data AppChooserButtonGetShowDefaultItemMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsAppChooserButton a) => O.MethodInfo AppChooserButtonGetShowDefaultItemMethodInfo a signature where
overloadedMethod = appChooserButtonGetShowDefaultItem
#endif
foreign import ccall "gtk_app_chooser_button_get_show_dialog_item" gtk_app_chooser_button_get_show_dialog_item ::
Ptr AppChooserButton ->
IO CInt
appChooserButtonGetShowDialogItem ::
(B.CallStack.HasCallStack, MonadIO m, IsAppChooserButton a) =>
a
-> m Bool
appChooserButtonGetShowDialogItem :: a -> m Bool
appChooserButtonGetShowDialogItem self :: a
self = 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 AppChooserButton
self' <- a -> IO (Ptr AppChooserButton)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
CInt
result <- Ptr AppChooserButton -> IO CInt
gtk_app_chooser_button_get_show_dialog_item Ptr AppChooserButton
self'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= 0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
Bool -> IO Bool
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data AppChooserButtonGetShowDialogItemMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsAppChooserButton a) => O.MethodInfo AppChooserButtonGetShowDialogItemMethodInfo a signature where
overloadedMethod = appChooserButtonGetShowDialogItem
#endif
foreign import ccall "gtk_app_chooser_button_set_active_custom_item" gtk_app_chooser_button_set_active_custom_item ::
Ptr AppChooserButton ->
CString ->
IO ()
appChooserButtonSetActiveCustomItem ::
(B.CallStack.HasCallStack, MonadIO m, IsAppChooserButton a) =>
a
-> T.Text
-> m ()
appChooserButtonSetActiveCustomItem :: a -> Text -> m ()
appChooserButtonSetActiveCustomItem self :: a
self name :: Text
name = 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 AppChooserButton
self' <- a -> IO (Ptr AppChooserButton)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
CString
name' <- Text -> IO CString
textToCString Text
name
Ptr AppChooserButton -> CString -> IO ()
gtk_app_chooser_button_set_active_custom_item Ptr AppChooserButton
self' CString
name'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
name'
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data AppChooserButtonSetActiveCustomItemMethodInfo
instance (signature ~ (T.Text -> m ()), MonadIO m, IsAppChooserButton a) => O.MethodInfo AppChooserButtonSetActiveCustomItemMethodInfo a signature where
overloadedMethod = appChooserButtonSetActiveCustomItem
#endif
foreign import ccall "gtk_app_chooser_button_set_heading" gtk_app_chooser_button_set_heading ::
Ptr AppChooserButton ->
CString ->
IO ()
appChooserButtonSetHeading ::
(B.CallStack.HasCallStack, MonadIO m, IsAppChooserButton a) =>
a
-> T.Text
-> m ()
appChooserButtonSetHeading :: a -> Text -> m ()
appChooserButtonSetHeading self :: a
self heading :: Text
heading = 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 AppChooserButton
self' <- a -> IO (Ptr AppChooserButton)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
CString
heading' <- Text -> IO CString
textToCString Text
heading
Ptr AppChooserButton -> CString -> IO ()
gtk_app_chooser_button_set_heading Ptr AppChooserButton
self' CString
heading'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
heading'
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data AppChooserButtonSetHeadingMethodInfo
instance (signature ~ (T.Text -> m ()), MonadIO m, IsAppChooserButton a) => O.MethodInfo AppChooserButtonSetHeadingMethodInfo a signature where
overloadedMethod = appChooserButtonSetHeading
#endif
foreign import ccall "gtk_app_chooser_button_set_show_default_item" gtk_app_chooser_button_set_show_default_item ::
Ptr AppChooserButton ->
CInt ->
IO ()
appChooserButtonSetShowDefaultItem ::
(B.CallStack.HasCallStack, MonadIO m, IsAppChooserButton a) =>
a
-> Bool
-> m ()
appChooserButtonSetShowDefaultItem :: a -> Bool -> m ()
appChooserButtonSetShowDefaultItem self :: a
self setting :: Bool
setting = 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 AppChooserButton
self' <- a -> IO (Ptr AppChooserButton)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
let setting' :: CInt
setting' = (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
setting
Ptr AppChooserButton -> CInt -> IO ()
gtk_app_chooser_button_set_show_default_item Ptr AppChooserButton
self' CInt
setting'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data AppChooserButtonSetShowDefaultItemMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsAppChooserButton a) => O.MethodInfo AppChooserButtonSetShowDefaultItemMethodInfo a signature where
overloadedMethod = appChooserButtonSetShowDefaultItem
#endif
foreign import ccall "gtk_app_chooser_button_set_show_dialog_item" gtk_app_chooser_button_set_show_dialog_item ::
Ptr AppChooserButton ->
CInt ->
IO ()
appChooserButtonSetShowDialogItem ::
(B.CallStack.HasCallStack, MonadIO m, IsAppChooserButton a) =>
a
-> Bool
-> m ()
appChooserButtonSetShowDialogItem :: a -> Bool -> m ()
appChooserButtonSetShowDialogItem self :: a
self setting :: Bool
setting = 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 AppChooserButton
self' <- a -> IO (Ptr AppChooserButton)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
let setting' :: CInt
setting' = (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
setting
Ptr AppChooserButton -> CInt -> IO ()
gtk_app_chooser_button_set_show_dialog_item Ptr AppChooserButton
self' CInt
setting'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data AppChooserButtonSetShowDialogItemMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsAppChooserButton a) => O.MethodInfo AppChooserButtonSetShowDialogItemMethodInfo a signature where
overloadedMethod = appChooserButtonSetShowDialogItem
#endif