RecentChooserProtocol
public protocol RecentChooserProtocol
GtkRecentChooser 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 GtkRecentChooserWidget,
GtkRecentChooserDialog and GtkRecentChooserMenu.
Recently used files are supported since GTK+ 2.10.
The RecentChooserProtocol protocol exposes the methods and properties of an underlying GtkRecentChooser instance.
The default implementation of these can be found in the protocol extension below.
For a concrete class that implements these methods and properties, see RecentChooser.
Alternatively, use RecentChooserRef as a lighweight, unowned reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
GtkRecentChooserinstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
recent_chooser_ptrDefault implementationTyped pointer to the underlying
GtkRecentChooserinstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GtkRecentChooserinstance.Declaration
Swift
var recent_chooser_ptr: UnsafeMutablePointer<GtkRecentChooser>! { get } -
Required Initialiser for types conforming to
RecentChooserProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
-
bind(property:Extension methodto: _: flags: transformFrom: transformTo: ) Bind a
RecentChooserPropertyNamesource property to a given target object.Declaration
Swift
@discardableResult @inlinable func bind<Q, T>(property source_property: RecentChooserPropertyName, to target: T, _ target_property: Q, flags f: BindingFlags = .default, transformFrom transform_from: @escaping GLibObject.ValueTransformer = { $0.transform(destValue: $1) }, transformTo transform_to: @escaping GLibObject.ValueTransformer = { $0.transform(destValue: $1) }) -> BindingRef! where Q : PropertyNameProtocol, T : ObjectProtocolParameters
source_propertythe source property to bind
targetthe target object to bind to
target_propertythe target property to bind to
flagsthe flags to pass to the
Bindingtransform_fromValueTransformerto use for forward transformationtransform_toValueTransformerto use for backwards transformationReturn Value
binding reference or
nilin case of an error -
get(property:Extension method) Get the value of a RecentChooser property
Declaration
Swift
@inlinable func get(property: RecentChooserPropertyName) -> GLibObject.ValueParameters
propertythe property to get the value for
Return Value
the value of the named property
-
set(property:Extension methodvalue: ) Set the value of a RecentChooser property. Note that this will only have an effect on properties that are writable and not construct-only!
Declaration
Swift
@inlinable func set(property: RecentChooserPropertyName, value v: GLibObject.Value)Parameters
propertythe property to get the value for
Return Value
the value of the named property
-
connect(signal:Extension methodflags: handler: ) Connect a Swift signal handler to the given, typed
RecentChooserSignalNamesignalDeclaration
Swift
@discardableResult @inlinable func connect(signal s: RecentChooserSignalName, flags f: ConnectFlags = ConnectFlags(0), handler h: @escaping SignalHandler) -> IntParameters
signalThe signal to connect
flagsThe connection flags to use
dataA pointer to user data to provide to the callback
destroyDataA
GClosureNotifyC function to destroy the data pointed to byuserDatahandlerThe Swift signal handler (function or callback) to invoke on the given signal
Return Value
The signal handler ID (always greater than 0 for successful connections)
-
connect(signal:Extension methodflags: data: destroyData: signalHandler: ) Connect a C signal handler to the given, typed
RecentChooserSignalNamesignalDeclaration
Swift
@discardableResult @inlinable func connect(signal s: RecentChooserSignalName, flags f: ConnectFlags = ConnectFlags(0), data userData: gpointer!, destroyData destructor: GClosureNotify? = nil, signalHandler h: @escaping GCallback) -> IntParameters
signalThe signal to connect
flagsThe connection flags to use
dataA pointer to user data to provide to the callback
destroyDataA
GClosureNotifyC function to destroy the data pointed to byuserDatasignalHandlerThe C function to be called on the given signal
Return Value
The signal handler ID (always greater than 0 for successful connections)
-
onItemActivated(flags:Extension methodhandler: ) This signal is emitted when the user “activates” a recent item in the recent chooser. This can happen by double-clicking on an item in the recently used resources list, or by pressing
Enter.Note
This represents the underlyingitem-activatedsignalDeclaration
Swift
@discardableResult @inlinable func onItemActivated(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: RecentChooserRef) -> Void) -> IntParameters
flagsFlags
unownedSelfReference to instance of self
handlerThe signal handler to call Run the given callback whenever the
itemActivatedsignal is emitted -
itemActivatedSignalExtension methodTyped
item-activatedsignal for using theconnect(signal:)methodsDeclaration
Swift
static var itemActivatedSignal: RecentChooserSignalName { get } -
onSelectionChanged(flags:Extension methodhandler: ) This signal is emitted when there is a change in the set of selected recently used resources. This can happen when a user modifies the selection with the mouse or the keyboard, or when explicitly calling functions to change the selection.
Note
This represents the underlyingselection-changedsignalDeclaration
Swift
@discardableResult @inlinable func onSelectionChanged(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: RecentChooserRef) -> Void) -> IntParameters
flagsFlags
unownedSelfReference to instance of self
handlerThe signal handler to call Run the given callback whenever the
selectionChangedsignal is emitted -
selectionChangedSignalExtension methodTyped
selection-changedsignal for using theconnect(signal:)methodsDeclaration
Swift
static var selectionChangedSignal: RecentChooserSignalName { get } -
onNotifyFilter(flags:Extension methodhandler: ) The notify signal is emitted on an object when one of its properties has its value set through
g_object_set_property(),g_object_set(), et al.Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with
G_PARAM_EXPLICIT_NOTIFY, then any call tog_object_set_property()results innotifybeing emitted, even if the new value is the same as the old. If they did passG_PARAM_EXPLICIT_NOTIFY, then this signal is emitted only when they explicitly callg_object_notify()org_object_notify_by_pspec(), and common practice is to do that only when the value has actually changed.This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the
g_signal_connect()call, like this:(C Language Example):
g_signal_connect (text_view->buffer, "notify::paste-target-list", G_CALLBACK (gtk_text_view_target_list_notify), text_view)It is important to note that you must use canonical parameter names as detail strings for the notify signal.
Note
This represents the underlyingnotify::filtersignalDeclaration
Swift
@discardableResult @inlinable func onNotifyFilter(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: RecentChooserRef, _ pspec: ParamSpecRef) -> Void) -> IntParameters
flagsFlags
unownedSelfReference to instance of self
pspecthe
GParamSpecof the property which changed.handlerThe signal handler to call Run the given callback whenever the
notifyFiltersignal is emitted -
notifyFilterSignalExtension methodTyped
notify::filtersignal for using theconnect(signal:)methodsDeclaration
Swift
static var notifyFilterSignal: RecentChooserSignalName { get } -
onNotifyLimit(flags:Extension methodhandler: ) The notify signal is emitted on an object when one of its properties has its value set through
g_object_set_property(),g_object_set(), et al.Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with
G_PARAM_EXPLICIT_NOTIFY, then any call tog_object_set_property()results innotifybeing emitted, even if the new value is the same as the old. If they did passG_PARAM_EXPLICIT_NOTIFY, then this signal is emitted only when they explicitly callg_object_notify()org_object_notify_by_pspec(), and common practice is to do that only when the value has actually changed.This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the
g_signal_connect()call, like this:(C Language Example):
g_signal_connect (text_view->buffer, "notify::paste-target-list", G_CALLBACK (gtk_text_view_target_list_notify), text_view)It is important to note that you must use canonical parameter names as detail strings for the notify signal.
Note
This represents the underlyingnotify::limitsignalDeclaration
Swift
@discardableResult @inlinable func onNotifyLimit(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: RecentChooserRef, _ pspec: ParamSpecRef) -> Void) -> IntParameters
flagsFlags
unownedSelfReference to instance of self
pspecthe
GParamSpecof the property which changed.handlerThe signal handler to call Run the given callback whenever the
notifyLimitsignal is emitted -
notifyLimitSignalExtension methodTyped
notify::limitsignal for using theconnect(signal:)methodsDeclaration
Swift
static var notifyLimitSignal: RecentChooserSignalName { get } -
onNotifyLocalOnly(flags:Extension methodhandler: ) The notify signal is emitted on an object when one of its properties has its value set through
g_object_set_property(),g_object_set(), et al.Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with
G_PARAM_EXPLICIT_NOTIFY, then any call tog_object_set_property()results innotifybeing emitted, even if the new value is the same as the old. If they did passG_PARAM_EXPLICIT_NOTIFY, then this signal is emitted only when they explicitly callg_object_notify()org_object_notify_by_pspec(), and common practice is to do that only when the value has actually changed.This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the
g_signal_connect()call, like this:(C Language Example):
g_signal_connect (text_view->buffer, "notify::paste-target-list", G_CALLBACK (gtk_text_view_target_list_notify), text_view)It is important to note that you must use canonical parameter names as detail strings for the notify signal.
Note
This represents the underlyingnotify::local-onlysignalDeclaration
Swift
@discardableResult @inlinable func onNotifyLocalOnly(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: RecentChooserRef, _ pspec: ParamSpecRef) -> Void) -> IntParameters
flagsFlags
unownedSelfReference to instance of self
pspecthe
GParamSpecof the property which changed.handlerThe signal handler to call Run the given callback whenever the
notifyLocalOnlysignal is emitted -
notifyLocalOnlySignalExtension methodTyped
notify::local-onlysignal for using theconnect(signal:)methodsDeclaration
Swift
static var notifyLocalOnlySignal: RecentChooserSignalName { get } -
onNotifyRecentManager(flags:Extension methodhandler: ) The notify signal is emitted on an object when one of its properties has its value set through
g_object_set_property(),g_object_set(), et al.Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with
G_PARAM_EXPLICIT_NOTIFY, then any call tog_object_set_property()results innotifybeing emitted, even if the new value is the same as the old. If they did passG_PARAM_EXPLICIT_NOTIFY, then this signal is emitted only when they explicitly callg_object_notify()org_object_notify_by_pspec(), and common practice is to do that only when the value has actually changed.This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the
g_signal_connect()call, like this:(C Language Example):
g_signal_connect (text_view->buffer, "notify::paste-target-list", G_CALLBACK (gtk_text_view_target_list_notify), text_view)It is important to note that you must use canonical parameter names as detail strings for the notify signal.
Note
This represents the underlyingnotify::recent-managersignalDeclaration
Swift
@discardableResult @inlinable func onNotifyRecentManager(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: RecentChooserRef, _ pspec: ParamSpecRef) -> Void) -> IntParameters
flagsFlags
unownedSelfReference to instance of self
pspecthe
GParamSpecof the property which changed.handlerThe signal handler to call Run the given callback whenever the
notifyRecentManagersignal is emitted -
notifyRecentManagerSignalExtension methodTyped
notify::recent-managersignal for using theconnect(signal:)methodsDeclaration
Swift
static var notifyRecentManagerSignal: RecentChooserSignalName { get } -
onNotifySelectMultiple(flags:Extension methodhandler: ) The notify signal is emitted on an object when one of its properties has its value set through
g_object_set_property(),g_object_set(), et al.Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with
G_PARAM_EXPLICIT_NOTIFY, then any call tog_object_set_property()results innotifybeing emitted, even if the new value is the same as the old. If they did passG_PARAM_EXPLICIT_NOTIFY, then this signal is emitted only when they explicitly callg_object_notify()org_object_notify_by_pspec(), and common practice is to do that only when the value has actually changed.This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the
g_signal_connect()call, like this:(C Language Example):
g_signal_connect (text_view->buffer, "notify::paste-target-list", G_CALLBACK (gtk_text_view_target_list_notify), text_view)It is important to note that you must use canonical parameter names as detail strings for the notify signal.
Note
This represents the underlyingnotify::select-multiplesignalDeclaration
Swift
@discardableResult @inlinable func onNotifySelectMultiple(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: RecentChooserRef, _ pspec: ParamSpecRef) -> Void) -> IntParameters
flagsFlags
unownedSelfReference to instance of self
pspecthe
GParamSpecof the property which changed.handlerThe signal handler to call Run the given callback whenever the
notifySelectMultiplesignal is emitted -
notifySelectMultipleSignalExtension methodTyped
notify::select-multiplesignal for using theconnect(signal:)methodsDeclaration
Swift
static var notifySelectMultipleSignal: RecentChooserSignalName { get } -
onNotifyShowIcons(flags:Extension methodhandler: ) The notify signal is emitted on an object when one of its properties has its value set through
g_object_set_property(),g_object_set(), et al.Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with
G_PARAM_EXPLICIT_NOTIFY, then any call tog_object_set_property()results innotifybeing emitted, even if the new value is the same as the old. If they did passG_PARAM_EXPLICIT_NOTIFY, then this signal is emitted only when they explicitly callg_object_notify()org_object_notify_by_pspec(), and common practice is to do that only when the value has actually changed.This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the
g_signal_connect()call, like this:(C Language Example):
g_signal_connect (text_view->buffer, "notify::paste-target-list", G_CALLBACK (gtk_text_view_target_list_notify), text_view)It is important to note that you must use canonical parameter names as detail strings for the notify signal.
Note
This represents the underlyingnotify::show-iconssignalDeclaration
Swift
@discardableResult @inlinable func onNotifyShowIcons(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: RecentChooserRef, _ pspec: ParamSpecRef) -> Void) -> IntParameters
flagsFlags
unownedSelfReference to instance of self
pspecthe
GParamSpecof the property which changed.handlerThe signal handler to call Run the given callback whenever the
notifyShowIconssignal is emitted -
notifyShowIconsSignalExtension methodTyped
notify::show-iconssignal for using theconnect(signal:)methodsDeclaration
Swift
static var notifyShowIconsSignal: RecentChooserSignalName { get } -
onNotifyShowNotFound(flags:Extension methodhandler: ) The notify signal is emitted on an object when one of its properties has its value set through
g_object_set_property(),g_object_set(), et al.Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with
G_PARAM_EXPLICIT_NOTIFY, then any call tog_object_set_property()results innotifybeing emitted, even if the new value is the same as the old. If they did passG_PARAM_EXPLICIT_NOTIFY, then this signal is emitted only when they explicitly callg_object_notify()org_object_notify_by_pspec(), and common practice is to do that only when the value has actually changed.This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the
g_signal_connect()call, like this:(C Language Example):
g_signal_connect (text_view->buffer, "notify::paste-target-list", G_CALLBACK (gtk_text_view_target_list_notify), text_view)It is important to note that you must use canonical parameter names as detail strings for the notify signal.
Note
This represents the underlyingnotify::show-not-foundsignalDeclaration
Swift
@discardableResult @inlinable func onNotifyShowNotFound(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: RecentChooserRef, _ pspec: ParamSpecRef) -> Void) -> IntParameters
flagsFlags
unownedSelfReference to instance of self
pspecthe
GParamSpecof the property which changed.handlerThe signal handler to call Run the given callback whenever the
notifyShowNotFoundsignal is emitted -
notifyShowNotFoundSignalExtension methodTyped
notify::show-not-foundsignal for using theconnect(signal:)methodsDeclaration
Swift
static var notifyShowNotFoundSignal: RecentChooserSignalName { get } -
onNotifyShowPrivate(flags:Extension methodhandler: ) The notify signal is emitted on an object when one of its properties has its value set through
g_object_set_property(),g_object_set(), et al.Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with
G_PARAM_EXPLICIT_NOTIFY, then any call tog_object_set_property()results innotifybeing emitted, even if the new value is the same as the old. If they did passG_PARAM_EXPLICIT_NOTIFY, then this signal is emitted only when they explicitly callg_object_notify()org_object_notify_by_pspec(), and common practice is to do that only when the value has actually changed.This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the
g_signal_connect()call, like this:(C Language Example):
g_signal_connect (text_view->buffer, "notify::paste-target-list", G_CALLBACK (gtk_text_view_target_list_notify), text_view)It is important to note that you must use canonical parameter names as detail strings for the notify signal.
Note
This represents the underlyingnotify::show-privatesignalDeclaration
Swift
@discardableResult @inlinable func onNotifyShowPrivate(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: RecentChooserRef, _ pspec: ParamSpecRef) -> Void) -> IntParameters
flagsFlags
unownedSelfReference to instance of self
pspecthe
GParamSpecof the property which changed.handlerThe signal handler to call Run the given callback whenever the
notifyShowPrivatesignal is emitted -
notifyShowPrivateSignalExtension methodTyped
notify::show-privatesignal for using theconnect(signal:)methodsDeclaration
Swift
static var notifyShowPrivateSignal: RecentChooserSignalName { get } -
onNotifyShowTips(flags:Extension methodhandler: ) The notify signal is emitted on an object when one of its properties has its value set through
g_object_set_property(),g_object_set(), et al.Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with
G_PARAM_EXPLICIT_NOTIFY, then any call tog_object_set_property()results innotifybeing emitted, even if the new value is the same as the old. If they did passG_PARAM_EXPLICIT_NOTIFY, then this signal is emitted only when they explicitly callg_object_notify()org_object_notify_by_pspec(), and common practice is to do that only when the value has actually changed.This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the
g_signal_connect()call, like this:(C Language Example):
g_signal_connect (text_view->buffer, "notify::paste-target-list", G_CALLBACK (gtk_text_view_target_list_notify), text_view)It is important to note that you must use canonical parameter names as detail strings for the notify signal.
Note
This represents the underlyingnotify::show-tipssignalDeclaration
Swift
@discardableResult @inlinable func onNotifyShowTips(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: RecentChooserRef, _ pspec: ParamSpecRef) -> Void) -> IntParameters
flagsFlags
unownedSelfReference to instance of self
pspecthe
GParamSpecof the property which changed.handlerThe signal handler to call Run the given callback whenever the
notifyShowTipssignal is emitted -
notifyShowTipsSignalExtension methodTyped
notify::show-tipssignal for using theconnect(signal:)methodsDeclaration
Swift
static var notifyShowTipsSignal: RecentChooserSignalName { get } -
onNotifySortType(flags:Extension methodhandler: ) The notify signal is emitted on an object when one of its properties has its value set through
g_object_set_property(),g_object_set(), et al.Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with
G_PARAM_EXPLICIT_NOTIFY, then any call tog_object_set_property()results innotifybeing emitted, even if the new value is the same as the old. If they did passG_PARAM_EXPLICIT_NOTIFY, then this signal is emitted only when they explicitly callg_object_notify()org_object_notify_by_pspec(), and common practice is to do that only when the value has actually changed.This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the
g_signal_connect()call, like this:(C Language Example):
g_signal_connect (text_view->buffer, "notify::paste-target-list", G_CALLBACK (gtk_text_view_target_list_notify), text_view)It is important to note that you must use canonical parameter names as detail strings for the notify signal.
Note
This represents the underlyingnotify::sort-typesignalDeclaration
Swift
@discardableResult @inlinable func onNotifySortType(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: RecentChooserRef, _ pspec: ParamSpecRef) -> Void) -> IntParameters
flagsFlags
unownedSelfReference to instance of self
pspecthe
GParamSpecof the property which changed.handlerThe signal handler to call Run the given callback whenever the
notifySortTypesignal is emitted -
notifySortTypeSignalExtension methodTyped
notify::sort-typesignal for using theconnect(signal:)methodsDeclaration
Swift
static var notifySortTypeSignal: RecentChooserSignalName { get }
-
add(filter:Extension method) Adds
filterto the list ofGtkRecentFilterobjects held bychooser.If no previous filter objects were defined, this function will call
gtk_recent_chooser_set_filter().Declaration
Swift
@inlinable func add<RecentFilterT>(filter: RecentFilterT) where RecentFilterT : RecentFilterProtocol -
getCurrentItem()Extension methodGets the
GtkRecentInfocurrently selected bychooser.Declaration
Swift
@inlinable func getCurrentItem() -> RecentInfoRef! -
getCurrentURI()Extension methodGets the URI currently selected by
chooser.Declaration
Swift
@inlinable func getCurrentURI() -> String! -
getFilter()Extension methodGets the
GtkRecentFilterobject currently used bychooserto affect the display of the recently used resources.Declaration
Swift
@inlinable func getFilter() -> RecentFilterRef! -
getItems()Extension methodGets the list of recently used resources in form of
GtkRecentInfoobjects.The return value of this function is affected by the “sort-type” and “limit” properties of
chooser.Declaration
Swift
@inlinable func getItems() -> GLib.ListRef! -
getLimit()Extension methodGets the number of items returned by
gtk_recent_chooser_get_items()andgtk_recent_chooser_get_uris().Declaration
Swift
@inlinable func getLimit() -> Int -
getLocalOnly()Extension methodGets whether only local resources should be shown in the recently used resources selector. See
gtk_recent_chooser_set_local_only()Declaration
Swift
@inlinable func getLocalOnly() -> Bool -
getSelectMultiple()Extension methodGets whether
choosercan select multiple items.Declaration
Swift
@inlinable func getSelectMultiple() -> Bool -
getShowIcons()Extension methodRetrieves whether
choosershould show an icon near the resource.Declaration
Swift
@inlinable func getShowIcons() -> Bool -
getShowNotFound()Extension methodRetrieves whether
choosershould show the recently used resources that were not found.Declaration
Swift
@inlinable func getShowNotFound() -> Bool -
getShowPrivate()Extension methodReturns whether
choosershould display recently used resources registered as private.Declaration
Swift
@inlinable func getShowPrivate() -> Bool -
getShowTips()Extension methodGets whether
choosershould display tooltips containing the full path of a recently user resource.Declaration
Swift
@inlinable func getShowTips() -> Bool -
getSortType()Extension methodGets the value set by
gtk_recent_chooser_set_sort_type().Declaration
Swift
@inlinable func getSortType() -> GtkRecentSortType -
getURIs(length:Extension method) Gets the URI of the recently used resources.
The return value of this function is affected by the “sort-type” and “limit” properties of
chooser.Since the returned array is
nilterminated,lengthmay benil.Declaration
Swift
@inlinable func getURIs(length: UnsafeMutablePointer<gsize>! = nil) -> UnsafeMutablePointer<UnsafeMutablePointer<gchar>?>! -
listFilters()Extension methodGets the
GtkRecentFilterobjects held bychooser.Declaration
Swift
@inlinable func listFilters() -> GLib.SListRef! -
remove(filter:Extension method) Removes
filterfrom the list ofGtkRecentFilterobjects held bychooser.Declaration
Swift
@inlinable func remove<RecentFilterT>(filter: RecentFilterT) where RecentFilterT : RecentFilterProtocol -
selectAll()Extension methodSelects all the items inside
chooser, if thechoosersupports multiple selection.Declaration
Swift
@inlinable func selectAll() -
select(uri:Extension method) Selects
uriinsidechooser.Declaration
Swift
@inlinable func select(uri: UnsafePointer<gchar>!) throws -> Bool -
setCurrent(uri:Extension method) Sets
urias the current URI forchooser.Declaration
Swift
@inlinable func setCurrent(uri: UnsafePointer<gchar>!) throws -> Bool -
set(filter:Extension method) Sets
filteras the currentGtkRecentFilterobject used bychooserto affect the displayed recently used resources.Declaration
Swift
@inlinable func set(filter: RecentFilterRef? = nil) -
set(filter:Extension method) Sets
filteras the currentGtkRecentFilterobject used bychooserto affect the displayed recently used resources.Declaration
Swift
@inlinable func set<RecentFilterT>(filter: RecentFilterT?) where RecentFilterT : RecentFilterProtocol -
set(limit:Extension method) Sets the number of items that should be returned by
gtk_recent_chooser_get_items()andgtk_recent_chooser_get_uris().Declaration
Swift
@inlinable func set(limit: Int) -
set(localOnly:Extension method) Sets whether only local resources, that is resources using the file:// URI scheme, should be shown in the recently used resources selector. If
local_onlyistrue(the default) then the shown resources are guaranteed to be accessible through the operating system native file system.Declaration
Swift
@inlinable func set(localOnly: Bool) -
set(selectMultiple:Extension method) Sets whether
choosercan select multiple items.Declaration
Swift
@inlinable func set(selectMultiple: Bool) -
set(showIcons:Extension method) Sets whether
choosershould show an icon near the resource when displaying it.Declaration
Swift
@inlinable func set(showIcons: Bool) -
set(showNotFound:Extension method) Sets whether
choosershould display the recently used resources that it didn’t find. This only applies to local resources.Declaration
Swift
@inlinable func set(showNotFound: Bool) -
set(showPrivate:Extension method) Whether to show recently used resources marked registered as private.
Declaration
Swift
@inlinable func set(showPrivate: Bool) -
set(showTips:Extension method) Sets whether to show a tooltips containing the full path of each recently used resource in a
GtkRecentChooserwidget.Declaration
Swift
@inlinable func set(showTips: Bool) -
set(sortFunc:Extension methodsortData: dataDestroy: ) Sets the comparison function used when sorting to be
sort_func. If thechooserhas the sort type set toGTK_RECENT_SORT_CUSTOMthen the chooser will sort using this function.To the comparison function will be passed two
GtkRecentInfostructs andsort_data;sort_funcshould 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.Declaration
Swift
@inlinable func set(sortFunc: GtkRecentSortFunc?, sortData: gpointer! = nil, dataDestroy: GDestroyNotify? = nil) -
set(sortType:Extension method) Changes the sorting order of the recently used resources list displayed by
chooser.Declaration
Swift
@inlinable func set(sortType: GtkRecentSortType) -
unselectAll()Extension methodUnselects all the items inside
chooser.Declaration
Swift
@inlinable func unselectAll() -
unselect(uri:Extension method) Unselects
uriinsidechooser.Declaration
Swift
@inlinable func unselect(uri: UnsafePointer<gchar>!) -
currentItemExtension methodGets the
GtkRecentInfocurrently selected bychooser.Declaration
Swift
@inlinable var currentItem: RecentInfoRef! { get } -
currentURIExtension methodGets the URI currently selected by
chooser.Declaration
Swift
@inlinable var currentURI: String! { get nonmutating set } -
filterExtension methodThe
GtkRecentFilterobject to be used when displaying the recently used resources.Declaration
Swift
@inlinable var filter: RecentFilterRef! { get nonmutating set } -
itemsExtension methodGets the list of recently used resources in form of
GtkRecentInfoobjects.The return value of this function is affected by the “sort-type” and “limit” properties of
chooser.Declaration
Swift
@inlinable var items: GLib.ListRef! { get } -
limitExtension methodThe maximum number of recently used resources to be displayed, or -1 to display all items.
Declaration
Swift
@inlinable var limit: Int { get nonmutating set } -
localOnlyExtension methodGets whether only local resources should be shown in the recently used resources selector. See
gtk_recent_chooser_set_local_only()Declaration
Swift
@inlinable var localOnly: Bool { get nonmutating set } -
selectMultipleExtension methodGets whether
choosercan select multiple items.Declaration
Swift
@inlinable var selectMultiple: Bool { get nonmutating set } -
showIconsExtension methodRetrieves whether
choosershould show an icon near the resource.Declaration
Swift
@inlinable var showIcons: Bool { get nonmutating set } -
showNotFoundExtension methodRetrieves whether
choosershould show the recently used resources that were not found.Declaration
Swift
@inlinable var showNotFound: Bool { get nonmutating set } -
showPrivateExtension methodReturns whether
choosershould display recently used resources registered as private.Declaration
Swift
@inlinable var showPrivate: Bool { get nonmutating set } -
showTipsExtension methodGets whether
choosershould display tooltips containing the full path of a recently user resource.Declaration
Swift
@inlinable var showTips: Bool { get nonmutating set } -
sortTypeExtension methodGets the value set by
gtk_recent_chooser_set_sort_type().Declaration
Swift
@inlinable var sortType: GtkRecentSortType { get nonmutating set }
View on GitHub
Install in Dash
RecentChooserProtocol Protocol Reference