#define ENABLE_OVERLOADING (MIN_VERSION_haskell_gi_overloading(1,0,0) \
&& !defined(__HADDOCK_VERSION__))
module GI.Gtk.Interfaces.RecentChooser
(
RecentChooser(..) ,
noRecentChooser ,
IsRecentChooser ,
toRecentChooser ,
#if ENABLE_OVERLOADING
RecentChooserAddFilterMethodInfo ,
#endif
recentChooserAddFilter ,
#if ENABLE_OVERLOADING
RecentChooserGetCurrentItemMethodInfo ,
#endif
recentChooserGetCurrentItem ,
#if ENABLE_OVERLOADING
RecentChooserGetCurrentUriMethodInfo ,
#endif
recentChooserGetCurrentUri ,
#if ENABLE_OVERLOADING
RecentChooserGetFilterMethodInfo ,
#endif
recentChooserGetFilter ,
#if ENABLE_OVERLOADING
RecentChooserGetItemsMethodInfo ,
#endif
recentChooserGetItems ,
#if ENABLE_OVERLOADING
RecentChooserGetLimitMethodInfo ,
#endif
recentChooserGetLimit ,
#if ENABLE_OVERLOADING
RecentChooserGetLocalOnlyMethodInfo ,
#endif
recentChooserGetLocalOnly ,
#if ENABLE_OVERLOADING
RecentChooserGetSelectMultipleMethodInfo,
#endif
recentChooserGetSelectMultiple ,
#if ENABLE_OVERLOADING
RecentChooserGetShowIconsMethodInfo ,
#endif
recentChooserGetShowIcons ,
#if ENABLE_OVERLOADING
RecentChooserGetShowNotFoundMethodInfo ,
#endif
recentChooserGetShowNotFound ,
#if ENABLE_OVERLOADING
RecentChooserGetShowPrivateMethodInfo ,
#endif
recentChooserGetShowPrivate ,
#if ENABLE_OVERLOADING
RecentChooserGetShowTipsMethodInfo ,
#endif
recentChooserGetShowTips ,
#if ENABLE_OVERLOADING
RecentChooserGetSortTypeMethodInfo ,
#endif
recentChooserGetSortType ,
#if ENABLE_OVERLOADING
RecentChooserGetUrisMethodInfo ,
#endif
recentChooserGetUris ,
#if ENABLE_OVERLOADING
RecentChooserListFiltersMethodInfo ,
#endif
recentChooserListFilters ,
#if ENABLE_OVERLOADING
RecentChooserRemoveFilterMethodInfo ,
#endif
recentChooserRemoveFilter ,
#if ENABLE_OVERLOADING
RecentChooserSelectAllMethodInfo ,
#endif
recentChooserSelectAll ,
#if ENABLE_OVERLOADING
RecentChooserSelectUriMethodInfo ,
#endif
recentChooserSelectUri ,
#if ENABLE_OVERLOADING
RecentChooserSetCurrentUriMethodInfo ,
#endif
recentChooserSetCurrentUri ,
#if ENABLE_OVERLOADING
RecentChooserSetFilterMethodInfo ,
#endif
recentChooserSetFilter ,
#if ENABLE_OVERLOADING
RecentChooserSetLimitMethodInfo ,
#endif
recentChooserSetLimit ,
#if ENABLE_OVERLOADING
RecentChooserSetLocalOnlyMethodInfo ,
#endif
recentChooserSetLocalOnly ,
#if ENABLE_OVERLOADING
RecentChooserSetSelectMultipleMethodInfo,
#endif
recentChooserSetSelectMultiple ,
#if ENABLE_OVERLOADING
RecentChooserSetShowIconsMethodInfo ,
#endif
recentChooserSetShowIcons ,
#if ENABLE_OVERLOADING
RecentChooserSetShowNotFoundMethodInfo ,
#endif
recentChooserSetShowNotFound ,
#if ENABLE_OVERLOADING
RecentChooserSetShowPrivateMethodInfo ,
#endif
recentChooserSetShowPrivate ,
#if ENABLE_OVERLOADING
RecentChooserSetShowTipsMethodInfo ,
#endif
recentChooserSetShowTips ,
#if ENABLE_OVERLOADING
RecentChooserSetSortFuncMethodInfo ,
#endif
recentChooserSetSortFunc ,
#if ENABLE_OVERLOADING
RecentChooserSetSortTypeMethodInfo ,
#endif
recentChooserSetSortType ,
#if ENABLE_OVERLOADING
RecentChooserUnselectAllMethodInfo ,
#endif
recentChooserUnselectAll ,
#if ENABLE_OVERLOADING
RecentChooserUnselectUriMethodInfo ,
#endif
recentChooserUnselectUri ,
#if ENABLE_OVERLOADING
RecentChooserFilterPropertyInfo ,
#endif
clearRecentChooserFilter ,
constructRecentChooserFilter ,
getRecentChooserFilter ,
#if ENABLE_OVERLOADING
recentChooserFilter ,
#endif
setRecentChooserFilter ,
#if ENABLE_OVERLOADING
RecentChooserLimitPropertyInfo ,
#endif
constructRecentChooserLimit ,
getRecentChooserLimit ,
#if ENABLE_OVERLOADING
recentChooserLimit ,
#endif
setRecentChooserLimit ,
#if ENABLE_OVERLOADING
RecentChooserLocalOnlyPropertyInfo ,
#endif
constructRecentChooserLocalOnly ,
getRecentChooserLocalOnly ,
#if ENABLE_OVERLOADING
recentChooserLocalOnly ,
#endif
setRecentChooserLocalOnly ,
#if ENABLE_OVERLOADING
RecentChooserRecentManagerPropertyInfo ,
#endif
constructRecentChooserRecentManager ,
#if ENABLE_OVERLOADING
recentChooserRecentManager ,
#endif
#if ENABLE_OVERLOADING
RecentChooserSelectMultiplePropertyInfo ,
#endif
constructRecentChooserSelectMultiple ,
getRecentChooserSelectMultiple ,
#if ENABLE_OVERLOADING
recentChooserSelectMultiple ,
#endif
setRecentChooserSelectMultiple ,
#if ENABLE_OVERLOADING
RecentChooserShowIconsPropertyInfo ,
#endif
constructRecentChooserShowIcons ,
getRecentChooserShowIcons ,
#if ENABLE_OVERLOADING
recentChooserShowIcons ,
#endif
setRecentChooserShowIcons ,
#if ENABLE_OVERLOADING
RecentChooserShowNotFoundPropertyInfo ,
#endif
constructRecentChooserShowNotFound ,
getRecentChooserShowNotFound ,
#if ENABLE_OVERLOADING
recentChooserShowNotFound ,
#endif
setRecentChooserShowNotFound ,
#if ENABLE_OVERLOADING
RecentChooserShowPrivatePropertyInfo ,
#endif
constructRecentChooserShowPrivate ,
getRecentChooserShowPrivate ,
#if ENABLE_OVERLOADING
recentChooserShowPrivate ,
#endif
setRecentChooserShowPrivate ,
#if ENABLE_OVERLOADING
RecentChooserShowTipsPropertyInfo ,
#endif
constructRecentChooserShowTips ,
getRecentChooserShowTips ,
#if ENABLE_OVERLOADING
recentChooserShowTips ,
#endif
setRecentChooserShowTips ,
#if ENABLE_OVERLOADING
RecentChooserSortTypePropertyInfo ,
#endif
constructRecentChooserSortType ,
getRecentChooserSortType ,
#if ENABLE_OVERLOADING
recentChooserSortType ,
#endif
setRecentChooserSortType ,
C_RecentChooserItemActivatedCallback ,
RecentChooserItemActivatedCallback ,
#if ENABLE_OVERLOADING
RecentChooserItemActivatedSignalInfo ,
#endif
afterRecentChooserItemActivated ,
genClosure_RecentChooserItemActivated ,
mk_RecentChooserItemActivatedCallback ,
noRecentChooserItemActivatedCallback ,
onRecentChooserItemActivated ,
wrap_RecentChooserItemActivatedCallback ,
C_RecentChooserSelectionChangedCallback ,
RecentChooserSelectionChangedCallback ,
#if ENABLE_OVERLOADING
RecentChooserSelectionChangedSignalInfo ,
#endif
afterRecentChooserSelectionChanged ,
genClosure_RecentChooserSelectionChanged,
mk_RecentChooserSelectionChangedCallback,
noRecentChooserSelectionChangedCallback ,
onRecentChooserSelectionChanged ,
wrap_RecentChooserSelectionChangedCallback,
) where
import Data.GI.Base.ShortPrelude
import qualified Data.GI.Base.ShortPrelude as SP
import qualified Data.GI.Base.Overloading as O
import qualified Prelude as P
import qualified Data.GI.Base.Attributes as GI.Attributes
import qualified Data.GI.Base.ManagedPtr as B.ManagedPtr
import qualified Data.GI.Base.GClosure as B.GClosure
import qualified Data.GI.Base.GError as B.GError
import qualified Data.GI.Base.GVariant as B.GVariant
import qualified Data.GI.Base.GValue as B.GValue
import qualified Data.GI.Base.GParamSpec as B.GParamSpec
import qualified Data.GI.Base.CallStack as B.CallStack
import qualified Data.GI.Base.Properties as B.Properties
import qualified Data.Text as T
import qualified Data.ByteString.Char8 as B
import qualified Data.Map as Map
import qualified Foreign.Ptr as FP
import qualified GHC.OverloadedLabels as OL
import qualified GI.GLib.Callbacks as GLib.Callbacks
import qualified GI.GObject.Objects.Object as GObject.Object
import qualified GI.Gtk.Callbacks as Gtk.Callbacks
import {-# SOURCE #-} qualified GI.Gtk.Enums as Gtk.Enums
import {-# SOURCE #-} qualified GI.Gtk.Objects.RecentFilter as Gtk.RecentFilter
import {-# SOURCE #-} qualified GI.Gtk.Objects.RecentManager as Gtk.RecentManager
import {-# SOURCE #-} qualified GI.Gtk.Structs.RecentInfo as Gtk.RecentInfo
newtype RecentChooser = RecentChooser (ManagedPtr RecentChooser)
noRecentChooser :: Maybe RecentChooser
noRecentChooser = Nothing
type RecentChooserItemActivatedCallback =
IO ()
noRecentChooserItemActivatedCallback :: Maybe RecentChooserItemActivatedCallback
noRecentChooserItemActivatedCallback = Nothing
type C_RecentChooserItemActivatedCallback =
Ptr () ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_RecentChooserItemActivatedCallback :: C_RecentChooserItemActivatedCallback -> IO (FunPtr C_RecentChooserItemActivatedCallback)
genClosure_RecentChooserItemActivated :: MonadIO m => RecentChooserItemActivatedCallback -> m (GClosure C_RecentChooserItemActivatedCallback)
genClosure_RecentChooserItemActivated cb = liftIO $ do
let cb' = wrap_RecentChooserItemActivatedCallback cb
mk_RecentChooserItemActivatedCallback cb' >>= B.GClosure.newGClosure
wrap_RecentChooserItemActivatedCallback ::
RecentChooserItemActivatedCallback ->
C_RecentChooserItemActivatedCallback
wrap_RecentChooserItemActivatedCallback _cb _ _ = do
_cb
onRecentChooserItemActivated :: (IsRecentChooser a, MonadIO m) => a -> RecentChooserItemActivatedCallback -> m SignalHandlerId
onRecentChooserItemActivated obj cb = liftIO $ do
let cb' = wrap_RecentChooserItemActivatedCallback cb
cb'' <- mk_RecentChooserItemActivatedCallback cb'
connectSignalFunPtr obj "item-activated" cb'' SignalConnectBefore
afterRecentChooserItemActivated :: (IsRecentChooser a, MonadIO m) => a -> RecentChooserItemActivatedCallback -> m SignalHandlerId
afterRecentChooserItemActivated obj cb = liftIO $ do
let cb' = wrap_RecentChooserItemActivatedCallback cb
cb'' <- mk_RecentChooserItemActivatedCallback cb'
connectSignalFunPtr obj "item-activated" cb'' SignalConnectAfter
type RecentChooserSelectionChangedCallback =
IO ()
noRecentChooserSelectionChangedCallback :: Maybe RecentChooserSelectionChangedCallback
noRecentChooserSelectionChangedCallback = Nothing
type C_RecentChooserSelectionChangedCallback =
Ptr () ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_RecentChooserSelectionChangedCallback :: C_RecentChooserSelectionChangedCallback -> IO (FunPtr C_RecentChooserSelectionChangedCallback)
genClosure_RecentChooserSelectionChanged :: MonadIO m => RecentChooserSelectionChangedCallback -> m (GClosure C_RecentChooserSelectionChangedCallback)
genClosure_RecentChooserSelectionChanged cb = liftIO $ do
let cb' = wrap_RecentChooserSelectionChangedCallback cb
mk_RecentChooserSelectionChangedCallback cb' >>= B.GClosure.newGClosure
wrap_RecentChooserSelectionChangedCallback ::
RecentChooserSelectionChangedCallback ->
C_RecentChooserSelectionChangedCallback
wrap_RecentChooserSelectionChangedCallback _cb _ _ = do
_cb
onRecentChooserSelectionChanged :: (IsRecentChooser a, MonadIO m) => a -> RecentChooserSelectionChangedCallback -> m SignalHandlerId
onRecentChooserSelectionChanged obj cb = liftIO $ do
let cb' = wrap_RecentChooserSelectionChangedCallback cb
cb'' <- mk_RecentChooserSelectionChangedCallback cb'
connectSignalFunPtr obj "selection-changed" cb'' SignalConnectBefore
afterRecentChooserSelectionChanged :: (IsRecentChooser a, MonadIO m) => a -> RecentChooserSelectionChangedCallback -> m SignalHandlerId
afterRecentChooserSelectionChanged obj cb = liftIO $ do
let cb' = wrap_RecentChooserSelectionChangedCallback cb
cb'' <- mk_RecentChooserSelectionChangedCallback cb'
connectSignalFunPtr obj "selection-changed" cb'' SignalConnectAfter
#if ENABLE_OVERLOADING
data RecentChooserItemActivatedSignalInfo
instance SignalInfo RecentChooserItemActivatedSignalInfo where
type HaskellCallbackType RecentChooserItemActivatedSignalInfo = RecentChooserItemActivatedCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_RecentChooserItemActivatedCallback cb
cb'' <- mk_RecentChooserItemActivatedCallback cb'
connectSignalFunPtr obj "item-activated" cb'' connectMode
data RecentChooserSelectionChangedSignalInfo
instance SignalInfo RecentChooserSelectionChangedSignalInfo where
type HaskellCallbackType RecentChooserSelectionChangedSignalInfo = RecentChooserSelectionChangedCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_RecentChooserSelectionChangedCallback cb
cb'' <- mk_RecentChooserSelectionChangedCallback cb'
connectSignalFunPtr obj "selection-changed" cb'' connectMode
type instance O.SignalList RecentChooser = RecentChooserSignalList
type RecentChooserSignalList = ('[ '("itemActivated", RecentChooserItemActivatedSignalInfo), '("notify", GObject.Object.ObjectNotifySignalInfo), '("selectionChanged", RecentChooserSelectionChangedSignalInfo)] :: [(Symbol, *)])
#endif
foreign import ccall "gtk_recent_chooser_get_type"
c_gtk_recent_chooser_get_type :: IO GType
instance GObject RecentChooser where
gobjectType = c_gtk_recent_chooser_get_type
class (GObject o, O.IsDescendantOf RecentChooser o) => IsRecentChooser o
instance (GObject o, O.IsDescendantOf RecentChooser o) => IsRecentChooser o
instance O.HasParentTypes RecentChooser
type instance O.ParentTypes RecentChooser = '[GObject.Object.Object]
toRecentChooser :: (MonadIO m, IsRecentChooser o) => o -> m RecentChooser
toRecentChooser = liftIO . unsafeCastTo RecentChooser
getRecentChooserFilter :: (MonadIO m, IsRecentChooser o) => o -> m Gtk.RecentFilter.RecentFilter
getRecentChooserFilter obj = liftIO $ checkUnexpectedNothing "getRecentChooserFilter" $ B.Properties.getObjectPropertyObject obj "filter" Gtk.RecentFilter.RecentFilter
setRecentChooserFilter :: (MonadIO m, IsRecentChooser o, Gtk.RecentFilter.IsRecentFilter a) => o -> a -> m ()
setRecentChooserFilter obj val = liftIO $ B.Properties.setObjectPropertyObject obj "filter" (Just val)
constructRecentChooserFilter :: (IsRecentChooser o, Gtk.RecentFilter.IsRecentFilter a) => a -> IO (GValueConstruct o)
constructRecentChooserFilter val = B.Properties.constructObjectPropertyObject "filter" (Just val)
clearRecentChooserFilter :: (MonadIO m, IsRecentChooser o) => o -> m ()
clearRecentChooserFilter obj = liftIO $ B.Properties.setObjectPropertyObject obj "filter" (Nothing :: Maybe Gtk.RecentFilter.RecentFilter)
#if ENABLE_OVERLOADING
data RecentChooserFilterPropertyInfo
instance AttrInfo RecentChooserFilterPropertyInfo where
type AttrAllowedOps RecentChooserFilterPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrSetTypeConstraint RecentChooserFilterPropertyInfo = Gtk.RecentFilter.IsRecentFilter
type AttrBaseTypeConstraint RecentChooserFilterPropertyInfo = IsRecentChooser
type AttrGetType RecentChooserFilterPropertyInfo = Gtk.RecentFilter.RecentFilter
type AttrLabel RecentChooserFilterPropertyInfo = "filter"
type AttrOrigin RecentChooserFilterPropertyInfo = RecentChooser
attrGet _ = getRecentChooserFilter
attrSet _ = setRecentChooserFilter
attrConstruct _ = constructRecentChooserFilter
attrClear _ = clearRecentChooserFilter
#endif
getRecentChooserLimit :: (MonadIO m, IsRecentChooser o) => o -> m Int32
getRecentChooserLimit obj = liftIO $ B.Properties.getObjectPropertyInt32 obj "limit"
setRecentChooserLimit :: (MonadIO m, IsRecentChooser o) => o -> Int32 -> m ()
setRecentChooserLimit obj val = liftIO $ B.Properties.setObjectPropertyInt32 obj "limit" val
constructRecentChooserLimit :: (IsRecentChooser o) => Int32 -> IO (GValueConstruct o)
constructRecentChooserLimit val = B.Properties.constructObjectPropertyInt32 "limit" val
#if ENABLE_OVERLOADING
data RecentChooserLimitPropertyInfo
instance AttrInfo RecentChooserLimitPropertyInfo where
type AttrAllowedOps RecentChooserLimitPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint RecentChooserLimitPropertyInfo = (~) Int32
type AttrBaseTypeConstraint RecentChooserLimitPropertyInfo = IsRecentChooser
type AttrGetType RecentChooserLimitPropertyInfo = Int32
type AttrLabel RecentChooserLimitPropertyInfo = "limit"
type AttrOrigin RecentChooserLimitPropertyInfo = RecentChooser
attrGet _ = getRecentChooserLimit
attrSet _ = setRecentChooserLimit
attrConstruct _ = constructRecentChooserLimit
attrClear _ = undefined
#endif
getRecentChooserLocalOnly :: (MonadIO m, IsRecentChooser o) => o -> m Bool
getRecentChooserLocalOnly obj = liftIO $ B.Properties.getObjectPropertyBool obj "local-only"
setRecentChooserLocalOnly :: (MonadIO m, IsRecentChooser o) => o -> Bool -> m ()
setRecentChooserLocalOnly obj val = liftIO $ B.Properties.setObjectPropertyBool obj "local-only" val
constructRecentChooserLocalOnly :: (IsRecentChooser o) => Bool -> IO (GValueConstruct o)
constructRecentChooserLocalOnly val = B.Properties.constructObjectPropertyBool "local-only" val
#if ENABLE_OVERLOADING
data RecentChooserLocalOnlyPropertyInfo
instance AttrInfo RecentChooserLocalOnlyPropertyInfo where
type AttrAllowedOps RecentChooserLocalOnlyPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint RecentChooserLocalOnlyPropertyInfo = (~) Bool
type AttrBaseTypeConstraint RecentChooserLocalOnlyPropertyInfo = IsRecentChooser
type AttrGetType RecentChooserLocalOnlyPropertyInfo = Bool
type AttrLabel RecentChooserLocalOnlyPropertyInfo = "local-only"
type AttrOrigin RecentChooserLocalOnlyPropertyInfo = RecentChooser
attrGet _ = getRecentChooserLocalOnly
attrSet _ = setRecentChooserLocalOnly
attrConstruct _ = constructRecentChooserLocalOnly
attrClear _ = undefined
#endif
constructRecentChooserRecentManager :: (IsRecentChooser o, Gtk.RecentManager.IsRecentManager a) => a -> IO (GValueConstruct o)
constructRecentChooserRecentManager val = B.Properties.constructObjectPropertyObject "recent-manager" (Just val)
#if ENABLE_OVERLOADING
data RecentChooserRecentManagerPropertyInfo
instance AttrInfo RecentChooserRecentManagerPropertyInfo where
type AttrAllowedOps RecentChooserRecentManagerPropertyInfo = '[ 'AttrConstruct, 'AttrClear]
type AttrSetTypeConstraint RecentChooserRecentManagerPropertyInfo = Gtk.RecentManager.IsRecentManager
type AttrBaseTypeConstraint RecentChooserRecentManagerPropertyInfo = IsRecentChooser
type AttrGetType RecentChooserRecentManagerPropertyInfo = ()
type AttrLabel RecentChooserRecentManagerPropertyInfo = "recent-manager"
type AttrOrigin RecentChooserRecentManagerPropertyInfo = RecentChooser
attrGet _ = undefined
attrSet _ = undefined
attrConstruct _ = constructRecentChooserRecentManager
attrClear _ = undefined
#endif
getRecentChooserSelectMultiple :: (MonadIO m, IsRecentChooser o) => o -> m Bool
getRecentChooserSelectMultiple obj = liftIO $ B.Properties.getObjectPropertyBool obj "select-multiple"
setRecentChooserSelectMultiple :: (MonadIO m, IsRecentChooser o) => o -> Bool -> m ()
setRecentChooserSelectMultiple obj val = liftIO $ B.Properties.setObjectPropertyBool obj "select-multiple" val
constructRecentChooserSelectMultiple :: (IsRecentChooser o) => Bool -> IO (GValueConstruct o)
constructRecentChooserSelectMultiple val = B.Properties.constructObjectPropertyBool "select-multiple" val
#if ENABLE_OVERLOADING
data RecentChooserSelectMultiplePropertyInfo
instance AttrInfo RecentChooserSelectMultiplePropertyInfo where
type AttrAllowedOps RecentChooserSelectMultiplePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint RecentChooserSelectMultiplePropertyInfo = (~) Bool
type AttrBaseTypeConstraint RecentChooserSelectMultiplePropertyInfo = IsRecentChooser
type AttrGetType RecentChooserSelectMultiplePropertyInfo = Bool
type AttrLabel RecentChooserSelectMultiplePropertyInfo = "select-multiple"
type AttrOrigin RecentChooserSelectMultiplePropertyInfo = RecentChooser
attrGet _ = getRecentChooserSelectMultiple
attrSet _ = setRecentChooserSelectMultiple
attrConstruct _ = constructRecentChooserSelectMultiple
attrClear _ = undefined
#endif
getRecentChooserShowIcons :: (MonadIO m, IsRecentChooser o) => o -> m Bool
getRecentChooserShowIcons obj = liftIO $ B.Properties.getObjectPropertyBool obj "show-icons"
setRecentChooserShowIcons :: (MonadIO m, IsRecentChooser o) => o -> Bool -> m ()
setRecentChooserShowIcons obj val = liftIO $ B.Properties.setObjectPropertyBool obj "show-icons" val
constructRecentChooserShowIcons :: (IsRecentChooser o) => Bool -> IO (GValueConstruct o)
constructRecentChooserShowIcons val = B.Properties.constructObjectPropertyBool "show-icons" val
#if ENABLE_OVERLOADING
data RecentChooserShowIconsPropertyInfo
instance AttrInfo RecentChooserShowIconsPropertyInfo where
type AttrAllowedOps RecentChooserShowIconsPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint RecentChooserShowIconsPropertyInfo = (~) Bool
type AttrBaseTypeConstraint RecentChooserShowIconsPropertyInfo = IsRecentChooser
type AttrGetType RecentChooserShowIconsPropertyInfo = Bool
type AttrLabel RecentChooserShowIconsPropertyInfo = "show-icons"
type AttrOrigin RecentChooserShowIconsPropertyInfo = RecentChooser
attrGet _ = getRecentChooserShowIcons
attrSet _ = setRecentChooserShowIcons
attrConstruct _ = constructRecentChooserShowIcons
attrClear _ = undefined
#endif
getRecentChooserShowNotFound :: (MonadIO m, IsRecentChooser o) => o -> m Bool
getRecentChooserShowNotFound obj = liftIO $ B.Properties.getObjectPropertyBool obj "show-not-found"
setRecentChooserShowNotFound :: (MonadIO m, IsRecentChooser o) => o -> Bool -> m ()
setRecentChooserShowNotFound obj val = liftIO $ B.Properties.setObjectPropertyBool obj "show-not-found" val
constructRecentChooserShowNotFound :: (IsRecentChooser o) => Bool -> IO (GValueConstruct o)
constructRecentChooserShowNotFound val = B.Properties.constructObjectPropertyBool "show-not-found" val
#if ENABLE_OVERLOADING
data RecentChooserShowNotFoundPropertyInfo
instance AttrInfo RecentChooserShowNotFoundPropertyInfo where
type AttrAllowedOps RecentChooserShowNotFoundPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint RecentChooserShowNotFoundPropertyInfo = (~) Bool
type AttrBaseTypeConstraint RecentChooserShowNotFoundPropertyInfo = IsRecentChooser
type AttrGetType RecentChooserShowNotFoundPropertyInfo = Bool
type AttrLabel RecentChooserShowNotFoundPropertyInfo = "show-not-found"
type AttrOrigin RecentChooserShowNotFoundPropertyInfo = RecentChooser
attrGet _ = getRecentChooserShowNotFound
attrSet _ = setRecentChooserShowNotFound
attrConstruct _ = constructRecentChooserShowNotFound
attrClear _ = undefined
#endif
getRecentChooserShowPrivate :: (MonadIO m, IsRecentChooser o) => o -> m Bool
getRecentChooserShowPrivate obj = liftIO $ B.Properties.getObjectPropertyBool obj "show-private"
setRecentChooserShowPrivate :: (MonadIO m, IsRecentChooser o) => o -> Bool -> m ()
setRecentChooserShowPrivate obj val = liftIO $ B.Properties.setObjectPropertyBool obj "show-private" val
constructRecentChooserShowPrivate :: (IsRecentChooser o) => Bool -> IO (GValueConstruct o)
constructRecentChooserShowPrivate val = B.Properties.constructObjectPropertyBool "show-private" val
#if ENABLE_OVERLOADING
data RecentChooserShowPrivatePropertyInfo
instance AttrInfo RecentChooserShowPrivatePropertyInfo where
type AttrAllowedOps RecentChooserShowPrivatePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint RecentChooserShowPrivatePropertyInfo = (~) Bool
type AttrBaseTypeConstraint RecentChooserShowPrivatePropertyInfo = IsRecentChooser
type AttrGetType RecentChooserShowPrivatePropertyInfo = Bool
type AttrLabel RecentChooserShowPrivatePropertyInfo = "show-private"
type AttrOrigin RecentChooserShowPrivatePropertyInfo = RecentChooser
attrGet _ = getRecentChooserShowPrivate
attrSet _ = setRecentChooserShowPrivate
attrConstruct _ = constructRecentChooserShowPrivate
attrClear _ = undefined
#endif
getRecentChooserShowTips :: (MonadIO m, IsRecentChooser o) => o -> m Bool
getRecentChooserShowTips obj = liftIO $ B.Properties.getObjectPropertyBool obj "show-tips"
setRecentChooserShowTips :: (MonadIO m, IsRecentChooser o) => o -> Bool -> m ()
setRecentChooserShowTips obj val = liftIO $ B.Properties.setObjectPropertyBool obj "show-tips" val
constructRecentChooserShowTips :: (IsRecentChooser o) => Bool -> IO (GValueConstruct o)
constructRecentChooserShowTips val = B.Properties.constructObjectPropertyBool "show-tips" val
#if ENABLE_OVERLOADING
data RecentChooserShowTipsPropertyInfo
instance AttrInfo RecentChooserShowTipsPropertyInfo where
type AttrAllowedOps RecentChooserShowTipsPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint RecentChooserShowTipsPropertyInfo = (~) Bool
type AttrBaseTypeConstraint RecentChooserShowTipsPropertyInfo = IsRecentChooser
type AttrGetType RecentChooserShowTipsPropertyInfo = Bool
type AttrLabel RecentChooserShowTipsPropertyInfo = "show-tips"
type AttrOrigin RecentChooserShowTipsPropertyInfo = RecentChooser
attrGet _ = getRecentChooserShowTips
attrSet _ = setRecentChooserShowTips
attrConstruct _ = constructRecentChooserShowTips
attrClear _ = undefined
#endif
getRecentChooserSortType :: (MonadIO m, IsRecentChooser o) => o -> m Gtk.Enums.RecentSortType
getRecentChooserSortType obj = liftIO $ B.Properties.getObjectPropertyEnum obj "sort-type"
setRecentChooserSortType :: (MonadIO m, IsRecentChooser o) => o -> Gtk.Enums.RecentSortType -> m ()
setRecentChooserSortType obj val = liftIO $ B.Properties.setObjectPropertyEnum obj "sort-type" val
constructRecentChooserSortType :: (IsRecentChooser o) => Gtk.Enums.RecentSortType -> IO (GValueConstruct o)
constructRecentChooserSortType val = B.Properties.constructObjectPropertyEnum "sort-type" val
#if ENABLE_OVERLOADING
data RecentChooserSortTypePropertyInfo
instance AttrInfo RecentChooserSortTypePropertyInfo where
type AttrAllowedOps RecentChooserSortTypePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint RecentChooserSortTypePropertyInfo = (~) Gtk.Enums.RecentSortType
type AttrBaseTypeConstraint RecentChooserSortTypePropertyInfo = IsRecentChooser
type AttrGetType RecentChooserSortTypePropertyInfo = Gtk.Enums.RecentSortType
type AttrLabel RecentChooserSortTypePropertyInfo = "sort-type"
type AttrOrigin RecentChooserSortTypePropertyInfo = RecentChooser
attrGet _ = getRecentChooserSortType
attrSet _ = setRecentChooserSortType
attrConstruct _ = constructRecentChooserSortType
attrClear _ = undefined
#endif
#if ENABLE_OVERLOADING
instance O.HasAttributeList RecentChooser
type instance O.AttributeList RecentChooser = RecentChooserAttributeList
type RecentChooserAttributeList = ('[ '("filter", RecentChooserFilterPropertyInfo), '("limit", RecentChooserLimitPropertyInfo), '("localOnly", RecentChooserLocalOnlyPropertyInfo), '("recentManager", RecentChooserRecentManagerPropertyInfo), '("selectMultiple", RecentChooserSelectMultiplePropertyInfo), '("showIcons", RecentChooserShowIconsPropertyInfo), '("showNotFound", RecentChooserShowNotFoundPropertyInfo), '("showPrivate", RecentChooserShowPrivatePropertyInfo), '("showTips", RecentChooserShowTipsPropertyInfo), '("sortType", RecentChooserSortTypePropertyInfo)] :: [(Symbol, *)])
#endif
#if ENABLE_OVERLOADING
recentChooserFilter :: AttrLabelProxy "filter"
recentChooserFilter = AttrLabelProxy
recentChooserLimit :: AttrLabelProxy "limit"
recentChooserLimit = AttrLabelProxy
recentChooserLocalOnly :: AttrLabelProxy "localOnly"
recentChooserLocalOnly = AttrLabelProxy
recentChooserRecentManager :: AttrLabelProxy "recentManager"
recentChooserRecentManager = AttrLabelProxy
recentChooserSelectMultiple :: AttrLabelProxy "selectMultiple"
recentChooserSelectMultiple = AttrLabelProxy
recentChooserShowIcons :: AttrLabelProxy "showIcons"
recentChooserShowIcons = AttrLabelProxy
recentChooserShowNotFound :: AttrLabelProxy "showNotFound"
recentChooserShowNotFound = AttrLabelProxy
recentChooserShowPrivate :: AttrLabelProxy "showPrivate"
recentChooserShowPrivate = AttrLabelProxy
recentChooserShowTips :: AttrLabelProxy "showTips"
recentChooserShowTips = AttrLabelProxy
recentChooserSortType :: AttrLabelProxy "sortType"
recentChooserSortType = AttrLabelProxy
#endif
#if ENABLE_OVERLOADING
type family ResolveRecentChooserMethod (t :: Symbol) (o :: *) :: * where
ResolveRecentChooserMethod "addFilter" o = RecentChooserAddFilterMethodInfo
ResolveRecentChooserMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolveRecentChooserMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolveRecentChooserMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolveRecentChooserMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolveRecentChooserMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
ResolveRecentChooserMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolveRecentChooserMethod "listFilters" o = RecentChooserListFiltersMethodInfo
ResolveRecentChooserMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolveRecentChooserMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolveRecentChooserMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolveRecentChooserMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolveRecentChooserMethod "removeFilter" o = RecentChooserRemoveFilterMethodInfo
ResolveRecentChooserMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolveRecentChooserMethod "selectAll" o = RecentChooserSelectAllMethodInfo
ResolveRecentChooserMethod "selectUri" o = RecentChooserSelectUriMethodInfo
ResolveRecentChooserMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolveRecentChooserMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolveRecentChooserMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolveRecentChooserMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolveRecentChooserMethod "unselectAll" o = RecentChooserUnselectAllMethodInfo
ResolveRecentChooserMethod "unselectUri" o = RecentChooserUnselectUriMethodInfo
ResolveRecentChooserMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolveRecentChooserMethod "getCurrentItem" o = RecentChooserGetCurrentItemMethodInfo
ResolveRecentChooserMethod "getCurrentUri" o = RecentChooserGetCurrentUriMethodInfo
ResolveRecentChooserMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolveRecentChooserMethod "getFilter" o = RecentChooserGetFilterMethodInfo
ResolveRecentChooserMethod "getItems" o = RecentChooserGetItemsMethodInfo
ResolveRecentChooserMethod "getLimit" o = RecentChooserGetLimitMethodInfo
ResolveRecentChooserMethod "getLocalOnly" o = RecentChooserGetLocalOnlyMethodInfo
ResolveRecentChooserMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolveRecentChooserMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolveRecentChooserMethod "getSelectMultiple" o = RecentChooserGetSelectMultipleMethodInfo
ResolveRecentChooserMethod "getShowIcons" o = RecentChooserGetShowIconsMethodInfo
ResolveRecentChooserMethod "getShowNotFound" o = RecentChooserGetShowNotFoundMethodInfo
ResolveRecentChooserMethod "getShowPrivate" o = RecentChooserGetShowPrivateMethodInfo
ResolveRecentChooserMethod "getShowTips" o = RecentChooserGetShowTipsMethodInfo
ResolveRecentChooserMethod "getSortType" o = RecentChooserGetSortTypeMethodInfo
ResolveRecentChooserMethod "getUris" o = RecentChooserGetUrisMethodInfo
ResolveRecentChooserMethod "setCurrentUri" o = RecentChooserSetCurrentUriMethodInfo
ResolveRecentChooserMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolveRecentChooserMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
ResolveRecentChooserMethod "setFilter" o = RecentChooserSetFilterMethodInfo
ResolveRecentChooserMethod "setLimit" o = RecentChooserSetLimitMethodInfo
ResolveRecentChooserMethod "setLocalOnly" o = RecentChooserSetLocalOnlyMethodInfo
ResolveRecentChooserMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolveRecentChooserMethod "setSelectMultiple" o = RecentChooserSetSelectMultipleMethodInfo
ResolveRecentChooserMethod "setShowIcons" o = RecentChooserSetShowIconsMethodInfo
ResolveRecentChooserMethod "setShowNotFound" o = RecentChooserSetShowNotFoundMethodInfo
ResolveRecentChooserMethod "setShowPrivate" o = RecentChooserSetShowPrivateMethodInfo
ResolveRecentChooserMethod "setShowTips" o = RecentChooserSetShowTipsMethodInfo
ResolveRecentChooserMethod "setSortFunc" o = RecentChooserSetSortFuncMethodInfo
ResolveRecentChooserMethod "setSortType" o = RecentChooserSetSortTypeMethodInfo
ResolveRecentChooserMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveRecentChooserMethod t RecentChooser, O.MethodInfo info RecentChooser p) => OL.IsLabel t (RecentChooser -> p) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.overloadedMethod (O.MethodProxy :: O.MethodProxy info)
#else
fromLabel _ = O.overloadedMethod (O.MethodProxy :: O.MethodProxy info)
#endif
#endif
foreign import ccall "gtk_recent_chooser_add_filter" gtk_recent_chooser_add_filter ::
Ptr RecentChooser ->
Ptr Gtk.RecentFilter.RecentFilter ->
IO ()
recentChooserAddFilter ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a, Gtk.RecentFilter.IsRecentFilter b) =>
a
-> b
-> m ()
recentChooserAddFilter chooser filter = liftIO $ do
chooser' <- unsafeManagedPtrCastPtr chooser
filter' <- unsafeManagedPtrCastPtr filter
gtk_recent_chooser_add_filter chooser' filter'
touchManagedPtr chooser
touchManagedPtr filter
return ()
#if ENABLE_OVERLOADING
data RecentChooserAddFilterMethodInfo
instance (signature ~ (b -> m ()), MonadIO m, IsRecentChooser a, Gtk.RecentFilter.IsRecentFilter b) => O.MethodInfo RecentChooserAddFilterMethodInfo a signature where
overloadedMethod _ = recentChooserAddFilter
#endif
foreign import ccall "gtk_recent_chooser_get_current_item" gtk_recent_chooser_get_current_item ::
Ptr RecentChooser ->
IO (Ptr Gtk.RecentInfo.RecentInfo)
recentChooserGetCurrentItem ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> m Gtk.RecentInfo.RecentInfo
recentChooserGetCurrentItem chooser = liftIO $ do
chooser' <- unsafeManagedPtrCastPtr chooser
result <- gtk_recent_chooser_get_current_item chooser'
checkUnexpectedReturnNULL "recentChooserGetCurrentItem" result
result' <- (wrapBoxed Gtk.RecentInfo.RecentInfo) result
touchManagedPtr chooser
return result'
#if ENABLE_OVERLOADING
data RecentChooserGetCurrentItemMethodInfo
instance (signature ~ (m Gtk.RecentInfo.RecentInfo), MonadIO m, IsRecentChooser a) => O.MethodInfo RecentChooserGetCurrentItemMethodInfo a signature where
overloadedMethod _ = recentChooserGetCurrentItem
#endif
foreign import ccall "gtk_recent_chooser_get_current_uri" gtk_recent_chooser_get_current_uri ::
Ptr RecentChooser ->
IO CString
recentChooserGetCurrentUri ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> m T.Text
recentChooserGetCurrentUri chooser = liftIO $ do
chooser' <- unsafeManagedPtrCastPtr chooser
result <- gtk_recent_chooser_get_current_uri chooser'
checkUnexpectedReturnNULL "recentChooserGetCurrentUri" result
result' <- cstringToText result
freeMem result
touchManagedPtr chooser
return result'
#if ENABLE_OVERLOADING
data RecentChooserGetCurrentUriMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsRecentChooser a) => O.MethodInfo RecentChooserGetCurrentUriMethodInfo a signature where
overloadedMethod _ = recentChooserGetCurrentUri
#endif
foreign import ccall "gtk_recent_chooser_get_filter" gtk_recent_chooser_get_filter ::
Ptr RecentChooser ->
IO (Ptr Gtk.RecentFilter.RecentFilter)
recentChooserGetFilter ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> m Gtk.RecentFilter.RecentFilter
recentChooserGetFilter chooser = liftIO $ do
chooser' <- unsafeManagedPtrCastPtr chooser
result <- gtk_recent_chooser_get_filter chooser'
checkUnexpectedReturnNULL "recentChooserGetFilter" result
result' <- (newObject Gtk.RecentFilter.RecentFilter) result
touchManagedPtr chooser
return result'
#if ENABLE_OVERLOADING
data RecentChooserGetFilterMethodInfo
instance (signature ~ (m Gtk.RecentFilter.RecentFilter), MonadIO m, IsRecentChooser a) => O.MethodInfo RecentChooserGetFilterMethodInfo a signature where
overloadedMethod _ = recentChooserGetFilter
#endif
foreign import ccall "gtk_recent_chooser_get_items" gtk_recent_chooser_get_items ::
Ptr RecentChooser ->
IO (Ptr (GList (Ptr Gtk.RecentInfo.RecentInfo)))
recentChooserGetItems ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> m [Gtk.RecentInfo.RecentInfo]
recentChooserGetItems chooser = liftIO $ do
chooser' <- unsafeManagedPtrCastPtr chooser
result <- gtk_recent_chooser_get_items chooser'
result' <- unpackGList result
result'' <- mapM (wrapBoxed Gtk.RecentInfo.RecentInfo) result'
g_list_free result
touchManagedPtr chooser
return result''
#if ENABLE_OVERLOADING
data RecentChooserGetItemsMethodInfo
instance (signature ~ (m [Gtk.RecentInfo.RecentInfo]), MonadIO m, IsRecentChooser a) => O.MethodInfo RecentChooserGetItemsMethodInfo a signature where
overloadedMethod _ = recentChooserGetItems
#endif
foreign import ccall "gtk_recent_chooser_get_limit" gtk_recent_chooser_get_limit ::
Ptr RecentChooser ->
IO Int32
recentChooserGetLimit ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> m Int32
recentChooserGetLimit chooser = liftIO $ do
chooser' <- unsafeManagedPtrCastPtr chooser
result <- gtk_recent_chooser_get_limit chooser'
touchManagedPtr chooser
return result
#if ENABLE_OVERLOADING
data RecentChooserGetLimitMethodInfo
instance (signature ~ (m Int32), MonadIO m, IsRecentChooser a) => O.MethodInfo RecentChooserGetLimitMethodInfo a signature where
overloadedMethod _ = recentChooserGetLimit
#endif
foreign import ccall "gtk_recent_chooser_get_local_only" gtk_recent_chooser_get_local_only ::
Ptr RecentChooser ->
IO CInt
recentChooserGetLocalOnly ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> m Bool
recentChooserGetLocalOnly chooser = liftIO $ do
chooser' <- unsafeManagedPtrCastPtr chooser
result <- gtk_recent_chooser_get_local_only chooser'
let result' = (/= 0) result
touchManagedPtr chooser
return result'
#if ENABLE_OVERLOADING
data RecentChooserGetLocalOnlyMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsRecentChooser a) => O.MethodInfo RecentChooserGetLocalOnlyMethodInfo a signature where
overloadedMethod _ = recentChooserGetLocalOnly
#endif
foreign import ccall "gtk_recent_chooser_get_select_multiple" gtk_recent_chooser_get_select_multiple ::
Ptr RecentChooser ->
IO CInt
recentChooserGetSelectMultiple ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> m Bool
recentChooserGetSelectMultiple chooser = liftIO $ do
chooser' <- unsafeManagedPtrCastPtr chooser
result <- gtk_recent_chooser_get_select_multiple chooser'
let result' = (/= 0) result
touchManagedPtr chooser
return result'
#if ENABLE_OVERLOADING
data RecentChooserGetSelectMultipleMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsRecentChooser a) => O.MethodInfo RecentChooserGetSelectMultipleMethodInfo a signature where
overloadedMethod _ = recentChooserGetSelectMultiple
#endif
foreign import ccall "gtk_recent_chooser_get_show_icons" gtk_recent_chooser_get_show_icons ::
Ptr RecentChooser ->
IO CInt
recentChooserGetShowIcons ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> m Bool
recentChooserGetShowIcons chooser = liftIO $ do
chooser' <- unsafeManagedPtrCastPtr chooser
result <- gtk_recent_chooser_get_show_icons chooser'
let result' = (/= 0) result
touchManagedPtr chooser
return result'
#if ENABLE_OVERLOADING
data RecentChooserGetShowIconsMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsRecentChooser a) => O.MethodInfo RecentChooserGetShowIconsMethodInfo a signature where
overloadedMethod _ = recentChooserGetShowIcons
#endif
foreign import ccall "gtk_recent_chooser_get_show_not_found" gtk_recent_chooser_get_show_not_found ::
Ptr RecentChooser ->
IO CInt
recentChooserGetShowNotFound ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> m Bool
recentChooserGetShowNotFound chooser = liftIO $ do
chooser' <- unsafeManagedPtrCastPtr chooser
result <- gtk_recent_chooser_get_show_not_found chooser'
let result' = (/= 0) result
touchManagedPtr chooser
return result'
#if ENABLE_OVERLOADING
data RecentChooserGetShowNotFoundMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsRecentChooser a) => O.MethodInfo RecentChooserGetShowNotFoundMethodInfo a signature where
overloadedMethod _ = recentChooserGetShowNotFound
#endif
foreign import ccall "gtk_recent_chooser_get_show_private" gtk_recent_chooser_get_show_private ::
Ptr RecentChooser ->
IO CInt
recentChooserGetShowPrivate ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> m Bool
recentChooserGetShowPrivate chooser = liftIO $ do
chooser' <- unsafeManagedPtrCastPtr chooser
result <- gtk_recent_chooser_get_show_private chooser'
let result' = (/= 0) result
touchManagedPtr chooser
return result'
#if ENABLE_OVERLOADING
data RecentChooserGetShowPrivateMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsRecentChooser a) => O.MethodInfo RecentChooserGetShowPrivateMethodInfo a signature where
overloadedMethod _ = recentChooserGetShowPrivate
#endif
foreign import ccall "gtk_recent_chooser_get_show_tips" gtk_recent_chooser_get_show_tips ::
Ptr RecentChooser ->
IO CInt
recentChooserGetShowTips ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> m Bool
recentChooserGetShowTips chooser = liftIO $ do
chooser' <- unsafeManagedPtrCastPtr chooser
result <- gtk_recent_chooser_get_show_tips chooser'
let result' = (/= 0) result
touchManagedPtr chooser
return result'
#if ENABLE_OVERLOADING
data RecentChooserGetShowTipsMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsRecentChooser a) => O.MethodInfo RecentChooserGetShowTipsMethodInfo a signature where
overloadedMethod _ = recentChooserGetShowTips
#endif
foreign import ccall "gtk_recent_chooser_get_sort_type" gtk_recent_chooser_get_sort_type ::
Ptr RecentChooser ->
IO CUInt
recentChooserGetSortType ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> m Gtk.Enums.RecentSortType
recentChooserGetSortType chooser = liftIO $ do
chooser' <- unsafeManagedPtrCastPtr chooser
result <- gtk_recent_chooser_get_sort_type chooser'
let result' = (toEnum . fromIntegral) result
touchManagedPtr chooser
return result'
#if ENABLE_OVERLOADING
data RecentChooserGetSortTypeMethodInfo
instance (signature ~ (m Gtk.Enums.RecentSortType), MonadIO m, IsRecentChooser a) => O.MethodInfo RecentChooserGetSortTypeMethodInfo a signature where
overloadedMethod _ = recentChooserGetSortType
#endif
foreign import ccall "gtk_recent_chooser_get_uris" gtk_recent_chooser_get_uris ::
Ptr RecentChooser ->
Ptr Word64 ->
IO (Ptr CString)
recentChooserGetUris ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> m (([T.Text], Word64))
recentChooserGetUris chooser = liftIO $ do
chooser' <- unsafeManagedPtrCastPtr chooser
length_ <- allocMem :: IO (Ptr Word64)
result <- gtk_recent_chooser_get_uris chooser' length_
checkUnexpectedReturnNULL "recentChooserGetUris" result
result' <- unpackZeroTerminatedUTF8CArray result
mapZeroTerminatedCArray freeMem result
freeMem result
length_' <- peek length_
touchManagedPtr chooser
freeMem length_
return (result', length_')
#if ENABLE_OVERLOADING
data RecentChooserGetUrisMethodInfo
instance (signature ~ (m (([T.Text], Word64))), MonadIO m, IsRecentChooser a) => O.MethodInfo RecentChooserGetUrisMethodInfo a signature where
overloadedMethod _ = recentChooserGetUris
#endif
foreign import ccall "gtk_recent_chooser_list_filters" gtk_recent_chooser_list_filters ::
Ptr RecentChooser ->
IO (Ptr (GSList (Ptr Gtk.RecentFilter.RecentFilter)))
recentChooserListFilters ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> m [Gtk.RecentFilter.RecentFilter]
recentChooserListFilters chooser = liftIO $ do
chooser' <- unsafeManagedPtrCastPtr chooser
result <- gtk_recent_chooser_list_filters chooser'
result' <- unpackGSList result
result'' <- mapM (newObject Gtk.RecentFilter.RecentFilter) result'
g_slist_free result
touchManagedPtr chooser
return result''
#if ENABLE_OVERLOADING
data RecentChooserListFiltersMethodInfo
instance (signature ~ (m [Gtk.RecentFilter.RecentFilter]), MonadIO m, IsRecentChooser a) => O.MethodInfo RecentChooserListFiltersMethodInfo a signature where
overloadedMethod _ = recentChooserListFilters
#endif
foreign import ccall "gtk_recent_chooser_remove_filter" gtk_recent_chooser_remove_filter ::
Ptr RecentChooser ->
Ptr Gtk.RecentFilter.RecentFilter ->
IO ()
recentChooserRemoveFilter ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a, Gtk.RecentFilter.IsRecentFilter b) =>
a
-> b
-> m ()
recentChooserRemoveFilter chooser filter = liftIO $ do
chooser' <- unsafeManagedPtrCastPtr chooser
filter' <- unsafeManagedPtrCastPtr filter
gtk_recent_chooser_remove_filter chooser' filter'
touchManagedPtr chooser
touchManagedPtr filter
return ()
#if ENABLE_OVERLOADING
data RecentChooserRemoveFilterMethodInfo
instance (signature ~ (b -> m ()), MonadIO m, IsRecentChooser a, Gtk.RecentFilter.IsRecentFilter b) => O.MethodInfo RecentChooserRemoveFilterMethodInfo a signature where
overloadedMethod _ = recentChooserRemoveFilter
#endif
foreign import ccall "gtk_recent_chooser_select_all" gtk_recent_chooser_select_all ::
Ptr RecentChooser ->
IO ()
recentChooserSelectAll ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> m ()
recentChooserSelectAll chooser = liftIO $ do
chooser' <- unsafeManagedPtrCastPtr chooser
gtk_recent_chooser_select_all chooser'
touchManagedPtr chooser
return ()
#if ENABLE_OVERLOADING
data RecentChooserSelectAllMethodInfo
instance (signature ~ (m ()), MonadIO m, IsRecentChooser a) => O.MethodInfo RecentChooserSelectAllMethodInfo a signature where
overloadedMethod _ = recentChooserSelectAll
#endif
foreign import ccall "gtk_recent_chooser_select_uri" gtk_recent_chooser_select_uri ::
Ptr RecentChooser ->
CString ->
Ptr (Ptr GError) ->
IO CInt
recentChooserSelectUri ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> T.Text
-> m ()
recentChooserSelectUri chooser uri = liftIO $ do
chooser' <- unsafeManagedPtrCastPtr chooser
uri' <- textToCString uri
onException (do
_ <- propagateGError $ gtk_recent_chooser_select_uri chooser' uri'
touchManagedPtr chooser
freeMem uri'
return ()
) (do
freeMem uri'
)
#if ENABLE_OVERLOADING
data RecentChooserSelectUriMethodInfo
instance (signature ~ (T.Text -> m ()), MonadIO m, IsRecentChooser a) => O.MethodInfo RecentChooserSelectUriMethodInfo a signature where
overloadedMethod _ = recentChooserSelectUri
#endif
foreign import ccall "gtk_recent_chooser_set_current_uri" gtk_recent_chooser_set_current_uri ::
Ptr RecentChooser ->
CString ->
Ptr (Ptr GError) ->
IO CInt
recentChooserSetCurrentUri ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> T.Text
-> m ()
recentChooserSetCurrentUri chooser uri = liftIO $ do
chooser' <- unsafeManagedPtrCastPtr chooser
uri' <- textToCString uri
onException (do
_ <- propagateGError $ gtk_recent_chooser_set_current_uri chooser' uri'
touchManagedPtr chooser
freeMem uri'
return ()
) (do
freeMem uri'
)
#if ENABLE_OVERLOADING
data RecentChooserSetCurrentUriMethodInfo
instance (signature ~ (T.Text -> m ()), MonadIO m, IsRecentChooser a) => O.MethodInfo RecentChooserSetCurrentUriMethodInfo a signature where
overloadedMethod _ = recentChooserSetCurrentUri
#endif
foreign import ccall "gtk_recent_chooser_set_filter" gtk_recent_chooser_set_filter ::
Ptr RecentChooser ->
Ptr Gtk.RecentFilter.RecentFilter ->
IO ()
recentChooserSetFilter ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a, Gtk.RecentFilter.IsRecentFilter b) =>
a
-> Maybe (b)
-> m ()
recentChooserSetFilter chooser filter = liftIO $ do
chooser' <- unsafeManagedPtrCastPtr chooser
maybeFilter <- case filter of
Nothing -> return nullPtr
Just jFilter -> do
jFilter' <- unsafeManagedPtrCastPtr jFilter
return jFilter'
gtk_recent_chooser_set_filter chooser' maybeFilter
touchManagedPtr chooser
whenJust filter touchManagedPtr
return ()
#if ENABLE_OVERLOADING
data RecentChooserSetFilterMethodInfo
instance (signature ~ (Maybe (b) -> m ()), MonadIO m, IsRecentChooser a, Gtk.RecentFilter.IsRecentFilter b) => O.MethodInfo RecentChooserSetFilterMethodInfo a signature where
overloadedMethod _ = recentChooserSetFilter
#endif
foreign import ccall "gtk_recent_chooser_set_limit" gtk_recent_chooser_set_limit ::
Ptr RecentChooser ->
Int32 ->
IO ()
recentChooserSetLimit ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> Int32
-> m ()
recentChooserSetLimit chooser limit = liftIO $ do
chooser' <- unsafeManagedPtrCastPtr chooser
gtk_recent_chooser_set_limit chooser' limit
touchManagedPtr chooser
return ()
#if ENABLE_OVERLOADING
data RecentChooserSetLimitMethodInfo
instance (signature ~ (Int32 -> m ()), MonadIO m, IsRecentChooser a) => O.MethodInfo RecentChooserSetLimitMethodInfo a signature where
overloadedMethod _ = recentChooserSetLimit
#endif
foreign import ccall "gtk_recent_chooser_set_local_only" gtk_recent_chooser_set_local_only ::
Ptr RecentChooser ->
CInt ->
IO ()
recentChooserSetLocalOnly ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> Bool
-> m ()
recentChooserSetLocalOnly chooser localOnly = liftIO $ do
chooser' <- unsafeManagedPtrCastPtr chooser
let localOnly' = (fromIntegral . fromEnum) localOnly
gtk_recent_chooser_set_local_only chooser' localOnly'
touchManagedPtr chooser
return ()
#if ENABLE_OVERLOADING
data RecentChooserSetLocalOnlyMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsRecentChooser a) => O.MethodInfo RecentChooserSetLocalOnlyMethodInfo a signature where
overloadedMethod _ = recentChooserSetLocalOnly
#endif
foreign import ccall "gtk_recent_chooser_set_select_multiple" gtk_recent_chooser_set_select_multiple ::
Ptr RecentChooser ->
CInt ->
IO ()
recentChooserSetSelectMultiple ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> Bool
-> m ()
recentChooserSetSelectMultiple chooser selectMultiple = liftIO $ do
chooser' <- unsafeManagedPtrCastPtr chooser
let selectMultiple' = (fromIntegral . fromEnum) selectMultiple
gtk_recent_chooser_set_select_multiple chooser' selectMultiple'
touchManagedPtr chooser
return ()
#if ENABLE_OVERLOADING
data RecentChooserSetSelectMultipleMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsRecentChooser a) => O.MethodInfo RecentChooserSetSelectMultipleMethodInfo a signature where
overloadedMethod _ = recentChooserSetSelectMultiple
#endif
foreign import ccall "gtk_recent_chooser_set_show_icons" gtk_recent_chooser_set_show_icons ::
Ptr RecentChooser ->
CInt ->
IO ()
recentChooserSetShowIcons ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> Bool
-> m ()
recentChooserSetShowIcons chooser showIcons = liftIO $ do
chooser' <- unsafeManagedPtrCastPtr chooser
let showIcons' = (fromIntegral . fromEnum) showIcons
gtk_recent_chooser_set_show_icons chooser' showIcons'
touchManagedPtr chooser
return ()
#if ENABLE_OVERLOADING
data RecentChooserSetShowIconsMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsRecentChooser a) => O.MethodInfo RecentChooserSetShowIconsMethodInfo a signature where
overloadedMethod _ = recentChooserSetShowIcons
#endif
foreign import ccall "gtk_recent_chooser_set_show_not_found" gtk_recent_chooser_set_show_not_found ::
Ptr RecentChooser ->
CInt ->
IO ()
recentChooserSetShowNotFound ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> Bool
-> m ()
recentChooserSetShowNotFound chooser showNotFound = liftIO $ do
chooser' <- unsafeManagedPtrCastPtr chooser
let showNotFound' = (fromIntegral . fromEnum) showNotFound
gtk_recent_chooser_set_show_not_found chooser' showNotFound'
touchManagedPtr chooser
return ()
#if ENABLE_OVERLOADING
data RecentChooserSetShowNotFoundMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsRecentChooser a) => O.MethodInfo RecentChooserSetShowNotFoundMethodInfo a signature where
overloadedMethod _ = recentChooserSetShowNotFound
#endif
foreign import ccall "gtk_recent_chooser_set_show_private" gtk_recent_chooser_set_show_private ::
Ptr RecentChooser ->
CInt ->
IO ()
recentChooserSetShowPrivate ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> Bool
-> m ()
recentChooserSetShowPrivate chooser showPrivate = liftIO $ do
chooser' <- unsafeManagedPtrCastPtr chooser
let showPrivate' = (fromIntegral . fromEnum) showPrivate
gtk_recent_chooser_set_show_private chooser' showPrivate'
touchManagedPtr chooser
return ()
#if ENABLE_OVERLOADING
data RecentChooserSetShowPrivateMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsRecentChooser a) => O.MethodInfo RecentChooserSetShowPrivateMethodInfo a signature where
overloadedMethod _ = recentChooserSetShowPrivate
#endif
foreign import ccall "gtk_recent_chooser_set_show_tips" gtk_recent_chooser_set_show_tips ::
Ptr RecentChooser ->
CInt ->
IO ()
recentChooserSetShowTips ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> Bool
-> m ()
recentChooserSetShowTips chooser showTips = liftIO $ do
chooser' <- unsafeManagedPtrCastPtr chooser
let showTips' = (fromIntegral . fromEnum) showTips
gtk_recent_chooser_set_show_tips chooser' showTips'
touchManagedPtr chooser
return ()
#if ENABLE_OVERLOADING
data RecentChooserSetShowTipsMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsRecentChooser a) => O.MethodInfo RecentChooserSetShowTipsMethodInfo a signature where
overloadedMethod _ = recentChooserSetShowTips
#endif
foreign import ccall "gtk_recent_chooser_set_sort_func" gtk_recent_chooser_set_sort_func ::
Ptr RecentChooser ->
FunPtr Gtk.Callbacks.C_RecentSortFunc ->
Ptr () ->
FunPtr GLib.Callbacks.C_DestroyNotify ->
IO ()
recentChooserSetSortFunc ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> Gtk.Callbacks.RecentSortFunc
-> m ()
recentChooserSetSortFunc chooser sortFunc = liftIO $ do
chooser' <- unsafeManagedPtrCastPtr chooser
sortFunc' <- Gtk.Callbacks.mk_RecentSortFunc (Gtk.Callbacks.wrap_RecentSortFunc Nothing (Gtk.Callbacks.drop_closures_RecentSortFunc sortFunc))
let sortData = castFunPtrToPtr sortFunc'
let dataDestroy = safeFreeFunPtrPtr
gtk_recent_chooser_set_sort_func chooser' sortFunc' sortData dataDestroy
touchManagedPtr chooser
return ()
#if ENABLE_OVERLOADING
data RecentChooserSetSortFuncMethodInfo
instance (signature ~ (Gtk.Callbacks.RecentSortFunc -> m ()), MonadIO m, IsRecentChooser a) => O.MethodInfo RecentChooserSetSortFuncMethodInfo a signature where
overloadedMethod _ = recentChooserSetSortFunc
#endif
foreign import ccall "gtk_recent_chooser_set_sort_type" gtk_recent_chooser_set_sort_type ::
Ptr RecentChooser ->
CUInt ->
IO ()
recentChooserSetSortType ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> Gtk.Enums.RecentSortType
-> m ()
recentChooserSetSortType chooser sortType = liftIO $ do
chooser' <- unsafeManagedPtrCastPtr chooser
let sortType' = (fromIntegral . fromEnum) sortType
gtk_recent_chooser_set_sort_type chooser' sortType'
touchManagedPtr chooser
return ()
#if ENABLE_OVERLOADING
data RecentChooserSetSortTypeMethodInfo
instance (signature ~ (Gtk.Enums.RecentSortType -> m ()), MonadIO m, IsRecentChooser a) => O.MethodInfo RecentChooserSetSortTypeMethodInfo a signature where
overloadedMethod _ = recentChooserSetSortType
#endif
foreign import ccall "gtk_recent_chooser_unselect_all" gtk_recent_chooser_unselect_all ::
Ptr RecentChooser ->
IO ()
recentChooserUnselectAll ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> m ()
recentChooserUnselectAll chooser = liftIO $ do
chooser' <- unsafeManagedPtrCastPtr chooser
gtk_recent_chooser_unselect_all chooser'
touchManagedPtr chooser
return ()
#if ENABLE_OVERLOADING
data RecentChooserUnselectAllMethodInfo
instance (signature ~ (m ()), MonadIO m, IsRecentChooser a) => O.MethodInfo RecentChooserUnselectAllMethodInfo a signature where
overloadedMethod _ = recentChooserUnselectAll
#endif
foreign import ccall "gtk_recent_chooser_unselect_uri" gtk_recent_chooser_unselect_uri ::
Ptr RecentChooser ->
CString ->
IO ()
recentChooserUnselectUri ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> T.Text
-> m ()
recentChooserUnselectUri chooser uri = liftIO $ do
chooser' <- unsafeManagedPtrCastPtr chooser
uri' <- textToCString uri
gtk_recent_chooser_unselect_uri chooser' uri'
touchManagedPtr chooser
freeMem uri'
return ()
#if ENABLE_OVERLOADING
data RecentChooserUnselectUriMethodInfo
instance (signature ~ (T.Text -> m ()), MonadIO m, IsRecentChooser a) => O.MethodInfo RecentChooserUnselectUriMethodInfo a signature where
overloadedMethod _ = recentChooserUnselectUri
#endif