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
GtkRecentChooser
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
recent_chooser_ptr
Default implementationTyped pointer to the underlying
GtkRecentChooser
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GtkRecentChooser
instance.Declaration
Swift
var recent_chooser_ptr: UnsafeMutablePointer<GtkRecentChooser>! { get }
-
Required Initialiser for types conforming to
RecentChooserProtocol
Declaration
Swift
init(raw: UnsafeMutableRawPointer)
-
bind(property:
Extension methodto: _: flags: transformFrom: transformTo: ) Bind a
RecentChooserPropertyName
source 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 : ObjectProtocol
Parameters
source_property
the source property to bind
target
the target object to bind to
target_property
the target property to bind to
flags
the flags to pass to the
Binding
transform_from
ValueTransformer
to use for forward transformationtransform_to
ValueTransformer
to use for backwards transformationReturn Value
binding reference or
nil
in case of an error -
get(property:
Extension method) Get the value of a RecentChooser property
Declaration
Swift
@inlinable func get(property: RecentChooserPropertyName) -> GLibObject.Value
Parameters
property
the 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
property
the 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
RecentChooserSignalName
signalDeclaration
Swift
@discardableResult @inlinable func connect(signal s: RecentChooserSignalName, flags f: ConnectFlags = ConnectFlags(0), handler h: @escaping SignalHandler) -> Int
Parameters
signal
The signal to connect
flags
The connection flags to use
data
A pointer to user data to provide to the callback
destroyData
A
GClosureNotify
C function to destroy the data pointed to byuserData
handler
The 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
RecentChooserSignalName
signalDeclaration
Swift
@discardableResult @inlinable func connect(signal s: RecentChooserSignalName, flags f: ConnectFlags = ConnectFlags(0), data userData: gpointer!, destroyData destructor: GClosureNotify? = nil, signalHandler h: @escaping GCallback) -> Int
Parameters
signal
The signal to connect
flags
The connection flags to use
data
A pointer to user data to provide to the callback
destroyData
A
GClosureNotify
C function to destroy the data pointed to byuserData
signalHandler
The 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-activated
signalDeclaration
Swift
@discardableResult @inlinable func onItemActivated(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: RecentChooserRef) -> Void) -> Int
Parameters
flags
Flags
unownedSelf
Reference to instance of self
handler
The signal handler to call Run the given callback whenever the
itemActivated
signal is emitted -
itemActivatedSignal
Extension methodTyped
item-activated
signal 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-changed
signalDeclaration
Swift
@discardableResult @inlinable func onSelectionChanged(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: RecentChooserRef) -> Void) -> Int
Parameters
flags
Flags
unownedSelf
Reference to instance of self
handler
The signal handler to call Run the given callback whenever the
selectionChanged
signal is emitted -
selectionChangedSignal
Extension methodTyped
selection-changed
signal 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 innotify
being 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::filter
signalDeclaration
Swift
@discardableResult @inlinable func onNotifyFilter(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: RecentChooserRef, _ pspec: ParamSpecRef) -> Void) -> Int
Parameters
flags
Flags
unownedSelf
Reference to instance of self
pspec
the
GParamSpec
of the property which changed.handler
The signal handler to call Run the given callback whenever the
notifyFilter
signal is emitted -
notifyFilterSignal
Extension methodTyped
notify::filter
signal 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 innotify
being 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::limit
signalDeclaration
Swift
@discardableResult @inlinable func onNotifyLimit(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: RecentChooserRef, _ pspec: ParamSpecRef) -> Void) -> Int
Parameters
flags
Flags
unownedSelf
Reference to instance of self
pspec
the
GParamSpec
of the property which changed.handler
The signal handler to call Run the given callback whenever the
notifyLimit
signal is emitted -
notifyLimitSignal
Extension methodTyped
notify::limit
signal 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 innotify
being 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-only
signalDeclaration
Swift
@discardableResult @inlinable func onNotifyLocalOnly(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: RecentChooserRef, _ pspec: ParamSpecRef) -> Void) -> Int
Parameters
flags
Flags
unownedSelf
Reference to instance of self
pspec
the
GParamSpec
of the property which changed.handler
The signal handler to call Run the given callback whenever the
notifyLocalOnly
signal is emitted -
notifyLocalOnlySignal
Extension methodTyped
notify::local-only
signal 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 innotify
being 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-manager
signalDeclaration
Swift
@discardableResult @inlinable func onNotifyRecentManager(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: RecentChooserRef, _ pspec: ParamSpecRef) -> Void) -> Int
Parameters
flags
Flags
unownedSelf
Reference to instance of self
pspec
the
GParamSpec
of the property which changed.handler
The signal handler to call Run the given callback whenever the
notifyRecentManager
signal is emitted -
notifyRecentManagerSignal
Extension methodTyped
notify::recent-manager
signal 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 innotify
being 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-multiple
signalDeclaration
Swift
@discardableResult @inlinable func onNotifySelectMultiple(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: RecentChooserRef, _ pspec: ParamSpecRef) -> Void) -> Int
Parameters
flags
Flags
unownedSelf
Reference to instance of self
pspec
the
GParamSpec
of the property which changed.handler
The signal handler to call Run the given callback whenever the
notifySelectMultiple
signal is emitted -
notifySelectMultipleSignal
Extension methodTyped
notify::select-multiple
signal 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 innotify
being 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-icons
signalDeclaration
Swift
@discardableResult @inlinable func onNotifyShowIcons(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: RecentChooserRef, _ pspec: ParamSpecRef) -> Void) -> Int
Parameters
flags
Flags
unownedSelf
Reference to instance of self
pspec
the
GParamSpec
of the property which changed.handler
The signal handler to call Run the given callback whenever the
notifyShowIcons
signal is emitted -
notifyShowIconsSignal
Extension methodTyped
notify::show-icons
signal 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 innotify
being 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-found
signalDeclaration
Swift
@discardableResult @inlinable func onNotifyShowNotFound(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: RecentChooserRef, _ pspec: ParamSpecRef) -> Void) -> Int
Parameters
flags
Flags
unownedSelf
Reference to instance of self
pspec
the
GParamSpec
of the property which changed.handler
The signal handler to call Run the given callback whenever the
notifyShowNotFound
signal is emitted -
notifyShowNotFoundSignal
Extension methodTyped
notify::show-not-found
signal 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 innotify
being 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-private
signalDeclaration
Swift
@discardableResult @inlinable func onNotifyShowPrivate(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: RecentChooserRef, _ pspec: ParamSpecRef) -> Void) -> Int
Parameters
flags
Flags
unownedSelf
Reference to instance of self
pspec
the
GParamSpec
of the property which changed.handler
The signal handler to call Run the given callback whenever the
notifyShowPrivate
signal is emitted -
notifyShowPrivateSignal
Extension methodTyped
notify::show-private
signal 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 innotify
being 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-tips
signalDeclaration
Swift
@discardableResult @inlinable func onNotifyShowTips(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: RecentChooserRef, _ pspec: ParamSpecRef) -> Void) -> Int
Parameters
flags
Flags
unownedSelf
Reference to instance of self
pspec
the
GParamSpec
of the property which changed.handler
The signal handler to call Run the given callback whenever the
notifyShowTips
signal is emitted -
notifyShowTipsSignal
Extension methodTyped
notify::show-tips
signal 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 innotify
being 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-type
signalDeclaration
Swift
@discardableResult @inlinable func onNotifySortType(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: RecentChooserRef, _ pspec: ParamSpecRef) -> Void) -> Int
Parameters
flags
Flags
unownedSelf
Reference to instance of self
pspec
the
GParamSpec
of the property which changed.handler
The signal handler to call Run the given callback whenever the
notifySortType
signal is emitted -
notifySortTypeSignal
Extension methodTyped
notify::sort-type
signal for using theconnect(signal:)
methodsDeclaration
Swift
static var notifySortTypeSignal: RecentChooserSignalName { get }
-
add(filter:
Extension method) Adds
filter
to the list ofGtkRecentFilter
objects 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
GtkRecentInfo
currently 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
GtkRecentFilter
object currently used bychooser
to 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
GtkRecentInfo
objects.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
chooser
can select multiple items.Declaration
Swift
@inlinable func getSelectMultiple() -> Bool
-
getShowIcons()
Extension methodRetrieves whether
chooser
should show an icon near the resource.Declaration
Swift
@inlinable func getShowIcons() -> Bool
-
getShowNotFound()
Extension methodRetrieves whether
chooser
should show the recently used resources that were not found.Declaration
Swift
@inlinable func getShowNotFound() -> Bool
-
getShowPrivate()
Extension methodReturns whether
chooser
should display recently used resources registered as private.Declaration
Swift
@inlinable func getShowPrivate() -> Bool
-
getShowTips()
Extension methodGets whether
chooser
should 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
nil
terminated,length
may benil
.Declaration
Swift
@inlinable func getURIs(length: UnsafeMutablePointer<gsize>! = nil) -> UnsafeMutablePointer<UnsafeMutablePointer<gchar>?>!
-
listFilters()
Extension methodGets the
GtkRecentFilter
objects held bychooser
.Declaration
Swift
@inlinable func listFilters() -> GLib.SListRef!
-
remove(filter:
Extension method) Removes
filter
from the list ofGtkRecentFilter
objects held bychooser
.Declaration
Swift
@inlinable func remove<RecentFilterT>(filter: RecentFilterT) where RecentFilterT : RecentFilterProtocol
-
selectAll()
Extension methodSelects all the items inside
chooser
, if thechooser
supports multiple selection.Declaration
Swift
@inlinable func selectAll()
-
select(uri:
Extension method) Selects
uri
insidechooser
.Declaration
Swift
@inlinable func select(uri: UnsafePointer<gchar>!) throws -> Bool
-
setCurrent(uri:
Extension method) Sets
uri
as the current URI forchooser
.Declaration
Swift
@inlinable func setCurrent(uri: UnsafePointer<gchar>!) throws -> Bool
-
set(filter:
Extension method) Sets
filter
as the currentGtkRecentFilter
object used bychooser
to affect the displayed recently used resources.Declaration
Swift
@inlinable func set(filter: RecentFilterRef? = nil)
-
set(filter:
Extension method) Sets
filter
as the currentGtkRecentFilter
object used bychooser
to 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_only
istrue
(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
chooser
can select multiple items.Declaration
Swift
@inlinable func set(selectMultiple: Bool)
-
set(showIcons:
Extension method) Sets whether
chooser
should show an icon near the resource when displaying it.Declaration
Swift
@inlinable func set(showIcons: Bool)
-
set(showNotFound:
Extension method) Sets whether
chooser
should 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
GtkRecentChooser
widget.Declaration
Swift
@inlinable func set(showTips: Bool)
-
set(sortFunc:
Extension methodsortData: dataDestroy: ) Sets the comparison function used when sorting to be
sort_func
. If thechooser
has the sort type set toGTK_RECENT_SORT_CUSTOM
then the chooser will sort using this function.To the comparison function will be passed two
GtkRecentInfo
structs andsort_data
;sort_func
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.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
uri
insidechooser
.Declaration
Swift
@inlinable func unselect(uri: UnsafePointer<gchar>!)
-
currentItem
Extension methodGets the
GtkRecentInfo
currently selected bychooser
.Declaration
Swift
@inlinable var currentItem: RecentInfoRef! { get }
-
currentURI
Extension methodGets the URI currently selected by
chooser
.Declaration
Swift
@inlinable var currentURI: String! { get nonmutating set }
-
filter
Extension methodThe
GtkRecentFilter
object to be used when displaying the recently used resources.Declaration
Swift
@inlinable var filter: RecentFilterRef! { get nonmutating set }
-
items
Extension methodGets the list of recently used resources in form of
GtkRecentInfo
objects.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 }
-
limit
Extension 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 }
-
localOnly
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 var localOnly: Bool { get nonmutating set }
-
selectMultiple
Extension methodGets whether
chooser
can select multiple items.Declaration
Swift
@inlinable var selectMultiple: Bool { get nonmutating set }
-
showIcons
Extension methodRetrieves whether
chooser
should show an icon near the resource.Declaration
Swift
@inlinable var showIcons: Bool { get nonmutating set }
-
showNotFound
Extension methodRetrieves whether
chooser
should show the recently used resources that were not found.Declaration
Swift
@inlinable var showNotFound: Bool { get nonmutating set }
-
showPrivate
Extension methodReturns whether
chooser
should display recently used resources registered as private.Declaration
Swift
@inlinable var showPrivate: Bool { get nonmutating set }
-
showTips
Extension methodGets whether
chooser
should display tooltips containing the full path of a recently user resource.Declaration
Swift
@inlinable var showTips: Bool { get nonmutating set }
-
sortType
Extension methodGets the value set by
gtk_recent_chooser_set_sort_type()
.Declaration
Swift
@inlinable var sortType: GtkRecentSortType { get nonmutating set }