Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
GI.Gtk.Interfaces.RecentChooser
Contents
- Exported types
- Methods
- addFilter
- getCurrentItem
- getCurrentUri
- getFilter
- getItems
- getLimit
- getLocalOnly
- getSelectMultiple
- getShowIcons
- getShowNotFound
- getShowPrivate
- getShowTips
- getSortType
- getUris
- listFilters
- removeFilter
- selectAll
- selectUri
- setCurrentUri
- setFilter
- setLimit
- setLocalOnly
- setSelectMultiple
- setShowIcons
- setShowNotFound
- setShowPrivate
- setShowTips
- setSortFunc
- setSortType
- unselectAll
- unselectUri
- Properties
- Signals
Description
RecentChooser
is an interface that can be implemented by widgets
displaying the list of recently used files. In GTK+, the main objects
that implement this interface are RecentChooserWidget
,
RecentChooserDialog
and RecentChooserMenu
.
Recently used files are supported since GTK+ 2.10.
- newtype RecentChooser = RecentChooser (ManagedPtr RecentChooser)
- noRecentChooser :: Maybe RecentChooser
- class GObject o => IsRecentChooser o
- toRecentChooser :: (MonadIO m, IsRecentChooser o) => o -> m RecentChooser
- recentChooserAddFilter :: (HasCallStack, MonadIO m, IsRecentChooser a, IsRecentFilter b) => a -> b -> m ()
- recentChooserGetCurrentItem :: (HasCallStack, MonadIO m, IsRecentChooser a) => a -> m RecentInfo
- recentChooserGetCurrentUri :: (HasCallStack, MonadIO m, IsRecentChooser a) => a -> m Text
- recentChooserGetFilter :: (HasCallStack, MonadIO m, IsRecentChooser a) => a -> m RecentFilter
- recentChooserGetItems :: (HasCallStack, MonadIO m, IsRecentChooser a) => a -> m [RecentInfo]
- recentChooserGetLimit :: (HasCallStack, MonadIO m, IsRecentChooser a) => a -> m Int32
- recentChooserGetLocalOnly :: (HasCallStack, MonadIO m, IsRecentChooser a) => a -> m Bool
- recentChooserGetSelectMultiple :: (HasCallStack, MonadIO m, IsRecentChooser a) => a -> m Bool
- recentChooserGetShowIcons :: (HasCallStack, MonadIO m, IsRecentChooser a) => a -> m Bool
- recentChooserGetShowNotFound :: (HasCallStack, MonadIO m, IsRecentChooser a) => a -> m Bool
- recentChooserGetShowPrivate :: (HasCallStack, MonadIO m, IsRecentChooser a) => a -> m Bool
- recentChooserGetShowTips :: (HasCallStack, MonadIO m, IsRecentChooser a) => a -> m Bool
- recentChooserGetSortType :: (HasCallStack, MonadIO m, IsRecentChooser a) => a -> m RecentSortType
- recentChooserGetUris :: (HasCallStack, MonadIO m, IsRecentChooser a) => a -> m ([Text], Word64)
- recentChooserListFilters :: (HasCallStack, MonadIO m, IsRecentChooser a) => a -> m [RecentFilter]
- recentChooserRemoveFilter :: (HasCallStack, MonadIO m, IsRecentChooser a, IsRecentFilter b) => a -> b -> m ()
- recentChooserSelectAll :: (HasCallStack, MonadIO m, IsRecentChooser a) => a -> m ()
- recentChooserSelectUri :: (HasCallStack, MonadIO m, IsRecentChooser a) => a -> Text -> m ()
- recentChooserSetCurrentUri :: (HasCallStack, MonadIO m, IsRecentChooser a) => a -> Text -> m ()
- recentChooserSetFilter :: (HasCallStack, MonadIO m, IsRecentChooser a, IsRecentFilter b) => a -> Maybe b -> m ()
- recentChooserSetLimit :: (HasCallStack, MonadIO m, IsRecentChooser a) => a -> Int32 -> m ()
- recentChooserSetLocalOnly :: (HasCallStack, MonadIO m, IsRecentChooser a) => a -> Bool -> m ()
- recentChooserSetSelectMultiple :: (HasCallStack, MonadIO m, IsRecentChooser a) => a -> Bool -> m ()
- recentChooserSetShowIcons :: (HasCallStack, MonadIO m, IsRecentChooser a) => a -> Bool -> m ()
- recentChooserSetShowNotFound :: (HasCallStack, MonadIO m, IsRecentChooser a) => a -> Bool -> m ()
- recentChooserSetShowPrivate :: (HasCallStack, MonadIO m, IsRecentChooser a) => a -> Bool -> m ()
- recentChooserSetShowTips :: (HasCallStack, MonadIO m, IsRecentChooser a) => a -> Bool -> m ()
- recentChooserSetSortFunc :: (HasCallStack, MonadIO m, IsRecentChooser a) => a -> RecentSortFunc -> m ()
- recentChooserSetSortType :: (HasCallStack, MonadIO m, IsRecentChooser a) => a -> RecentSortType -> m ()
- recentChooserUnselectAll :: (HasCallStack, MonadIO m, IsRecentChooser a) => a -> m ()
- recentChooserUnselectUri :: (HasCallStack, MonadIO m, IsRecentChooser a) => a -> Text -> m ()
- clearRecentChooserFilter :: (MonadIO m, IsRecentChooser o) => o -> m ()
- constructRecentChooserFilter :: (IsRecentChooser o, IsRecentFilter a) => a -> IO (GValueConstruct o)
- getRecentChooserFilter :: (MonadIO m, IsRecentChooser o) => o -> m RecentFilter
- setRecentChooserFilter :: (MonadIO m, IsRecentChooser o, IsRecentFilter a) => o -> a -> m ()
- constructRecentChooserLimit :: IsRecentChooser o => Int32 -> IO (GValueConstruct o)
- getRecentChooserLimit :: (MonadIO m, IsRecentChooser o) => o -> m Int32
- setRecentChooserLimit :: (MonadIO m, IsRecentChooser o) => o -> Int32 -> m ()
- constructRecentChooserLocalOnly :: IsRecentChooser o => Bool -> IO (GValueConstruct o)
- getRecentChooserLocalOnly :: (MonadIO m, IsRecentChooser o) => o -> m Bool
- setRecentChooserLocalOnly :: (MonadIO m, IsRecentChooser o) => o -> Bool -> m ()
- constructRecentChooserRecentManager :: (IsRecentChooser o, IsRecentManager a) => a -> IO (GValueConstruct o)
- constructRecentChooserSelectMultiple :: IsRecentChooser o => Bool -> IO (GValueConstruct o)
- getRecentChooserSelectMultiple :: (MonadIO m, IsRecentChooser o) => o -> m Bool
- setRecentChooserSelectMultiple :: (MonadIO m, IsRecentChooser o) => o -> Bool -> m ()
- constructRecentChooserShowIcons :: IsRecentChooser o => Bool -> IO (GValueConstruct o)
- getRecentChooserShowIcons :: (MonadIO m, IsRecentChooser o) => o -> m Bool
- setRecentChooserShowIcons :: (MonadIO m, IsRecentChooser o) => o -> Bool -> m ()
- constructRecentChooserShowNotFound :: IsRecentChooser o => Bool -> IO (GValueConstruct o)
- getRecentChooserShowNotFound :: (MonadIO m, IsRecentChooser o) => o -> m Bool
- setRecentChooserShowNotFound :: (MonadIO m, IsRecentChooser o) => o -> Bool -> m ()
- constructRecentChooserShowPrivate :: IsRecentChooser o => Bool -> IO (GValueConstruct o)
- getRecentChooserShowPrivate :: (MonadIO m, IsRecentChooser o) => o -> m Bool
- setRecentChooserShowPrivate :: (MonadIO m, IsRecentChooser o) => o -> Bool -> m ()
- constructRecentChooserShowTips :: IsRecentChooser o => Bool -> IO (GValueConstruct o)
- getRecentChooserShowTips :: (MonadIO m, IsRecentChooser o) => o -> m Bool
- setRecentChooserShowTips :: (MonadIO m, IsRecentChooser o) => o -> Bool -> m ()
- constructRecentChooserSortType :: IsRecentChooser o => RecentSortType -> IO (GValueConstruct o)
- getRecentChooserSortType :: (MonadIO m, IsRecentChooser o) => o -> m RecentSortType
- setRecentChooserSortType :: (MonadIO m, IsRecentChooser o) => o -> RecentSortType -> m ()
- type C_RecentChooserItemActivatedCallback = Ptr () -> Ptr () -> IO ()
- type RecentChooserItemActivatedCallback = IO ()
- afterRecentChooserItemActivated :: (IsRecentChooser a, MonadIO m) => a -> RecentChooserItemActivatedCallback -> m SignalHandlerId
- genClosure_RecentChooserItemActivated :: RecentChooserItemActivatedCallback -> IO Closure
- mk_RecentChooserItemActivatedCallback :: C_RecentChooserItemActivatedCallback -> IO (FunPtr C_RecentChooserItemActivatedCallback)
- noRecentChooserItemActivatedCallback :: Maybe RecentChooserItemActivatedCallback
- onRecentChooserItemActivated :: (IsRecentChooser a, MonadIO m) => a -> RecentChooserItemActivatedCallback -> m SignalHandlerId
- wrap_RecentChooserItemActivatedCallback :: RecentChooserItemActivatedCallback -> Ptr () -> Ptr () -> IO ()
- type C_RecentChooserSelectionChangedCallback = Ptr () -> Ptr () -> IO ()
- type RecentChooserSelectionChangedCallback = IO ()
- afterRecentChooserSelectionChanged :: (IsRecentChooser a, MonadIO m) => a -> RecentChooserSelectionChangedCallback -> m SignalHandlerId
- genClosure_RecentChooserSelectionChanged :: RecentChooserSelectionChangedCallback -> IO Closure
- mk_RecentChooserSelectionChangedCallback :: C_RecentChooserSelectionChangedCallback -> IO (FunPtr C_RecentChooserSelectionChangedCallback)
- noRecentChooserSelectionChangedCallback :: Maybe RecentChooserSelectionChangedCallback
- onRecentChooserSelectionChanged :: (IsRecentChooser a, MonadIO m) => a -> RecentChooserSelectionChangedCallback -> m SignalHandlerId
- wrap_RecentChooserSelectionChangedCallback :: RecentChooserSelectionChangedCallback -> Ptr () -> Ptr () -> IO ()
Exported types
newtype RecentChooser Source #
Constructors
RecentChooser (ManagedPtr RecentChooser) |
class GObject o => IsRecentChooser o Source #
Instances
toRecentChooser :: (MonadIO m, IsRecentChooser o) => o -> m RecentChooser Source #
Methods
addFilter
recentChooserAddFilter Source #
Arguments
:: (HasCallStack, MonadIO m, IsRecentChooser a, IsRecentFilter b) | |
=> a |
|
-> b |
|
-> m () |
Adds filter
to the list of RecentFilter
objects held by chooser
.
If no previous filter objects were defined, this function will call
recentChooserSetFilter
.
Since: 2.10
getCurrentItem
recentChooserGetCurrentItem Source #
Arguments
:: (HasCallStack, MonadIO m, IsRecentChooser a) | |
=> a |
|
-> m RecentInfo | Returns: a |
Gets the RecentInfo
currently selected by chooser
.
Since: 2.10
getCurrentUri
recentChooserGetCurrentUri Source #
Arguments
:: (HasCallStack, MonadIO m, IsRecentChooser a) | |
=> a |
|
-> m Text | Returns: a newly allocated string holding a URI. |
Gets the URI currently selected by chooser
.
Since: 2.10
getFilter
recentChooserGetFilter Source #
Arguments
:: (HasCallStack, MonadIO m, IsRecentChooser a) | |
=> a |
|
-> m RecentFilter | Returns: a |
Gets the RecentFilter
object currently used by chooser
to affect
the display of the recently used resources.
Since: 2.10
getItems
recentChooserGetItems Source #
Arguments
:: (HasCallStack, MonadIO m, IsRecentChooser a) | |
=> a |
|
-> m [RecentInfo] | Returns: A newly allocated
list of |
Gets the list of recently used resources in form of RecentInfo
objects.
The return value of this function is affected by the “sort-type” and
“limit” properties of chooser
.
Since: 2.10
getLimit
recentChooserGetLimit Source #
Arguments
:: (HasCallStack, MonadIO m, IsRecentChooser a) | |
=> a |
|
-> m Int32 | Returns: A positive integer, or -1 meaning that all items are returned. |
Gets the number of items returned by recentChooserGetItems
and recentChooserGetUris
.
Since: 2.10
getLocalOnly
recentChooserGetLocalOnly Source #
Arguments
:: (HasCallStack, MonadIO m, IsRecentChooser a) | |
=> a |
|
-> m Bool | Returns: |
Gets whether only local resources should be shown in the recently used
resources selector. See recentChooserSetLocalOnly
Since: 2.10
getSelectMultiple
recentChooserGetSelectMultiple Source #
Arguments
:: (HasCallStack, MonadIO m, IsRecentChooser a) | |
=> a |
|
-> m Bool | Returns: |
Gets whether chooser
can select multiple items.
Since: 2.10
getShowIcons
recentChooserGetShowIcons Source #
Arguments
:: (HasCallStack, MonadIO m, IsRecentChooser a) | |
=> a |
|
-> m Bool | Returns: |
Retrieves whether chooser
should show an icon near the resource.
Since: 2.10
getShowNotFound
recentChooserGetShowNotFound Source #
Arguments
:: (HasCallStack, MonadIO m, IsRecentChooser a) | |
=> a |
|
-> m Bool | Returns: |
Retrieves whether chooser
should show the recently used resources that
were not found.
Since: 2.10
getShowPrivate
recentChooserGetShowPrivate Source #
Arguments
:: (HasCallStack, MonadIO m, IsRecentChooser a) | |
=> a |
|
-> m Bool | Returns: |
Returns whether chooser
should display recently used resources
registered as private.
Since: 2.10
getShowTips
recentChooserGetShowTips Source #
Arguments
:: (HasCallStack, MonadIO m, IsRecentChooser a) | |
=> a |
|
-> m Bool | Returns: |
Gets whether chooser
should display tooltips containing the full path
of a recently user resource.
Since: 2.10
getSortType
recentChooserGetSortType Source #
Arguments
:: (HasCallStack, MonadIO m, IsRecentChooser a) | |
=> a |
|
-> m RecentSortType | Returns: the sorting order of the |
Gets the value set by recentChooserSetSortType
.
Since: 2.10
getUris
Arguments
:: (HasCallStack, MonadIO m, IsRecentChooser a) | |
=> a |
|
-> m ([Text], Word64) | Returns:
A newly allocated, |
listFilters
recentChooserListFilters Source #
Arguments
:: (HasCallStack, MonadIO m, IsRecentChooser a) | |
=> a |
|
-> m [RecentFilter] | Returns: A singly linked list
of |
Gets the RecentFilter
objects held by chooser
.
Since: 2.10
removeFilter
recentChooserRemoveFilter Source #
Arguments
:: (HasCallStack, MonadIO m, IsRecentChooser a, IsRecentFilter b) | |
=> a |
|
-> b |
|
-> m () |
Removes filter
from the list of RecentFilter
objects held by chooser
.
Since: 2.10
selectAll
recentChooserSelectAll Source #
Arguments
:: (HasCallStack, MonadIO m, IsRecentChooser a) | |
=> a |
|
-> m () |
Selects all the items inside chooser
, if the chooser
supports
multiple selection.
Since: 2.10
selectUri
recentChooserSelectUri Source #
Arguments
:: (HasCallStack, MonadIO m, IsRecentChooser a) | |
=> a |
|
-> Text |
|
-> m () | (Can throw |
Selects uri
inside chooser
.
Since: 2.10
setCurrentUri
recentChooserSetCurrentUri Source #
Arguments
:: (HasCallStack, MonadIO m, IsRecentChooser a) | |
=> a |
|
-> Text |
|
-> m () | (Can throw |
Sets uri
as the current URI for chooser
.
Since: 2.10
setFilter
recentChooserSetFilter Source #
Arguments
:: (HasCallStack, MonadIO m, IsRecentChooser a, IsRecentFilter b) | |
=> a |
|
-> Maybe b |
|
-> m () |
Sets filter
as the current RecentFilter
object used by chooser
to affect the displayed recently used resources.
Since: 2.10
setLimit
recentChooserSetLimit Source #
Arguments
:: (HasCallStack, MonadIO m, IsRecentChooser a) | |
=> a |
|
-> Int32 |
|
-> m () |
Sets the number of items that should be returned by
recentChooserGetItems
and recentChooserGetUris
.
Since: 2.10
setLocalOnly
recentChooserSetLocalOnly Source #
Arguments
:: (HasCallStack, MonadIO m, IsRecentChooser a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether only local resources, that is resources using the file:// URI
scheme, should be shown in the recently used resources selector. If
localOnly
is True
(the default) then the shown resources are guaranteed
to be accessible through the operating system native file system.
Since: 2.10
setSelectMultiple
recentChooserSetSelectMultiple Source #
Arguments
:: (HasCallStack, MonadIO m, IsRecentChooser a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether chooser
can select multiple items.
Since: 2.10
setShowIcons
recentChooserSetShowIcons Source #
Arguments
:: (HasCallStack, MonadIO m, IsRecentChooser a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether chooser
should show an icon near the resource when
displaying it.
Since: 2.10
setShowNotFound
recentChooserSetShowNotFound Source #
Arguments
:: (HasCallStack, MonadIO m, IsRecentChooser a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether chooser
should display the recently used resources that
it didn’t find. This only applies to local resources.
Since: 2.10
setShowPrivate
recentChooserSetShowPrivate Source #
Arguments
:: (HasCallStack, MonadIO m, IsRecentChooser a) | |
=> a |
|
-> Bool | |
-> m () |
Whether to show recently used resources marked registered as private.
Since: 2.10
setShowTips
recentChooserSetShowTips Source #
Arguments
:: (HasCallStack, MonadIO m, IsRecentChooser a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether to show a tooltips containing the full path of each
recently used resource in a RecentChooser
widget.
Since: 2.10
setSortFunc
recentChooserSetSortFunc Source #
Arguments
:: (HasCallStack, MonadIO m, IsRecentChooser a) | |
=> a |
|
-> RecentSortFunc |
|
-> m () |
Sets the comparison function used when sorting to be sortFunc
. If
the chooser
has the sort type set to GTK_RECENT_SORT_CUSTOM
then
the chooser will sort using this function.
To the comparison function will be passed two RecentInfo
structs and
sortData
; sortFunc
should return a positive integer if the first
item comes before the second, zero if the two items are equal and
a negative integer if the first item comes after the second.
Since: 2.10
setSortType
recentChooserSetSortType Source #
Arguments
:: (HasCallStack, MonadIO m, IsRecentChooser a) | |
=> a |
|
-> RecentSortType |
|
-> m () |
Changes the sorting order of the recently used resources list displayed by
chooser
.
Since: 2.10
unselectAll
recentChooserUnselectAll Source #
Arguments
:: (HasCallStack, MonadIO m, IsRecentChooser a) | |
=> a |
|
-> m () |
Unselects all the items inside chooser
.
Since: 2.10
unselectUri
recentChooserUnselectUri Source #
Arguments
:: (HasCallStack, MonadIO m, IsRecentChooser a) | |
=> a |
|
-> Text |
|
-> m () |
Unselects uri
inside chooser
.
Since: 2.10
Properties
filter
clearRecentChooserFilter :: (MonadIO m, IsRecentChooser o) => o -> m () Source #
constructRecentChooserFilter :: (IsRecentChooser o, IsRecentFilter a) => a -> IO (GValueConstruct o) Source #
getRecentChooserFilter :: (MonadIO m, IsRecentChooser o) => o -> m RecentFilter Source #
setRecentChooserFilter :: (MonadIO m, IsRecentChooser o, IsRecentFilter a) => o -> a -> m () Source #
limit
constructRecentChooserLimit :: IsRecentChooser o => Int32 -> IO (GValueConstruct o) Source #
getRecentChooserLimit :: (MonadIO m, IsRecentChooser o) => o -> m Int32 Source #
setRecentChooserLimit :: (MonadIO m, IsRecentChooser o) => o -> Int32 -> m () Source #
localOnly
constructRecentChooserLocalOnly :: IsRecentChooser o => Bool -> IO (GValueConstruct o) Source #
getRecentChooserLocalOnly :: (MonadIO m, IsRecentChooser o) => o -> m Bool Source #
setRecentChooserLocalOnly :: (MonadIO m, IsRecentChooser o) => o -> Bool -> m () Source #
recentManager
constructRecentChooserRecentManager :: (IsRecentChooser o, IsRecentManager a) => a -> IO (GValueConstruct o) Source #
selectMultiple
constructRecentChooserSelectMultiple :: IsRecentChooser o => Bool -> IO (GValueConstruct o) Source #
getRecentChooserSelectMultiple :: (MonadIO m, IsRecentChooser o) => o -> m Bool Source #
setRecentChooserSelectMultiple :: (MonadIO m, IsRecentChooser o) => o -> Bool -> m () Source #
showIcons
constructRecentChooserShowIcons :: IsRecentChooser o => Bool -> IO (GValueConstruct o) Source #
getRecentChooserShowIcons :: (MonadIO m, IsRecentChooser o) => o -> m Bool Source #
setRecentChooserShowIcons :: (MonadIO m, IsRecentChooser o) => o -> Bool -> m () Source #
showNotFound
constructRecentChooserShowNotFound :: IsRecentChooser o => Bool -> IO (GValueConstruct o) Source #
getRecentChooserShowNotFound :: (MonadIO m, IsRecentChooser o) => o -> m Bool Source #
setRecentChooserShowNotFound :: (MonadIO m, IsRecentChooser o) => o -> Bool -> m () Source #
showPrivate
constructRecentChooserShowPrivate :: IsRecentChooser o => Bool -> IO (GValueConstruct o) Source #
getRecentChooserShowPrivate :: (MonadIO m, IsRecentChooser o) => o -> m Bool Source #
setRecentChooserShowPrivate :: (MonadIO m, IsRecentChooser o) => o -> Bool -> m () Source #
showTips
constructRecentChooserShowTips :: IsRecentChooser o => Bool -> IO (GValueConstruct o) Source #
getRecentChooserShowTips :: (MonadIO m, IsRecentChooser o) => o -> m Bool Source #
setRecentChooserShowTips :: (MonadIO m, IsRecentChooser o) => o -> Bool -> m () Source #
sortType
constructRecentChooserSortType :: IsRecentChooser o => RecentSortType -> IO (GValueConstruct o) Source #
getRecentChooserSortType :: (MonadIO m, IsRecentChooser o) => o -> m RecentSortType Source #
setRecentChooserSortType :: (MonadIO m, IsRecentChooser o) => o -> RecentSortType -> m () Source #
Signals
itemActivated
type RecentChooserItemActivatedCallback = IO () Source #
afterRecentChooserItemActivated :: (IsRecentChooser a, MonadIO m) => a -> RecentChooserItemActivatedCallback -> m SignalHandlerId Source #
mk_RecentChooserItemActivatedCallback :: C_RecentChooserItemActivatedCallback -> IO (FunPtr C_RecentChooserItemActivatedCallback) Source #
onRecentChooserItemActivated :: (IsRecentChooser a, MonadIO m) => a -> RecentChooserItemActivatedCallback -> m SignalHandlerId Source #
wrap_RecentChooserItemActivatedCallback :: RecentChooserItemActivatedCallback -> Ptr () -> Ptr () -> IO () Source #
selectionChanged
type RecentChooserSelectionChangedCallback = IO () Source #
afterRecentChooserSelectionChanged :: (IsRecentChooser a, MonadIO m) => a -> RecentChooserSelectionChangedCallback -> m SignalHandlerId Source #
genClosure_RecentChooserSelectionChanged :: RecentChooserSelectionChangedCallback -> IO Closure Source #
mk_RecentChooserSelectionChangedCallback :: C_RecentChooserSelectionChangedCallback -> IO (FunPtr C_RecentChooserSelectionChangedCallback) Source #
onRecentChooserSelectionChanged :: (IsRecentChooser a, MonadIO m) => a -> RecentChooserSelectionChangedCallback -> m SignalHandlerId Source #
wrap_RecentChooserSelectionChangedCallback :: RecentChooserSelectionChangedCallback -> Ptr () -> Ptr () -> IO () Source #