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.

  • ptr

    Untyped pointer to the underlying GtkRecentChooser instance.

    Declaration

    Swift

    var ptr: UnsafeMutableRawPointer! { get }
  • recent_chooser_ptr Default implementation

    Typed 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)

RecentChooser Interface

  • 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 transformation

    transform_to

    ValueTransformer to use for backwards transformation

    Return 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:value:) Extension method

    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

RecentChooser signals

  • Connect a Swift signal handler to the given, typed RecentChooserSignalName signal

    Declaration

    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 by userData

    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 a C signal handler to the given, typed RecentChooserSignalName signal

    Declaration

    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 by userData

    signalHandler

    The C function to be called on the given signal

    Return Value

    The signal handler ID (always greater than 0 for successful connections)

  • 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 underlying item-activated signal

    Declaration

    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 method

    Typed item-activated signal for using the connect(signal:) methods

    Declaration

    Swift

    static var itemActivatedSignal: RecentChooserSignalName { get }
  • 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 underlying selection-changed signal

    Declaration

    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 method

    Typed selection-changed signal for using the connect(signal:) methods

    Declaration

    Swift

    static var selectionChangedSignal: RecentChooserSignalName { get }
  • 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 to g_object_set_property() results in notify being emitted, even if the new value is the same as the old. If they did pass G_PARAM_EXPLICIT_NOTIFY, then this signal is emitted only when they explicitly call g_object_notify() or g_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 underlying notify::filter signal

    Declaration

    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 method

    Typed notify::filter signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyFilterSignal: RecentChooserSignalName { get }
  • 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 to g_object_set_property() results in notify being emitted, even if the new value is the same as the old. If they did pass G_PARAM_EXPLICIT_NOTIFY, then this signal is emitted only when they explicitly call g_object_notify() or g_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 underlying notify::limit signal

    Declaration

    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 method

    Typed notify::limit signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyLimitSignal: RecentChooserSignalName { get }
  • 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 to g_object_set_property() results in notify being emitted, even if the new value is the same as the old. If they did pass G_PARAM_EXPLICIT_NOTIFY, then this signal is emitted only when they explicitly call g_object_notify() or g_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 underlying notify::local-only signal

    Declaration

    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 method

    Typed notify::local-only signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyLocalOnlySignal: RecentChooserSignalName { get }
  • 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 to g_object_set_property() results in notify being emitted, even if the new value is the same as the old. If they did pass G_PARAM_EXPLICIT_NOTIFY, then this signal is emitted only when they explicitly call g_object_notify() or g_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 underlying notify::recent-manager signal

    Declaration

    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 method

    Typed notify::recent-manager signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyRecentManagerSignal: RecentChooserSignalName { get }
  • 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 to g_object_set_property() results in notify being emitted, even if the new value is the same as the old. If they did pass G_PARAM_EXPLICIT_NOTIFY, then this signal is emitted only when they explicitly call g_object_notify() or g_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 underlying notify::select-multiple signal

    Declaration

    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 method

    Typed notify::select-multiple signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifySelectMultipleSignal: RecentChooserSignalName { get }
  • 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 to g_object_set_property() results in notify being emitted, even if the new value is the same as the old. If they did pass G_PARAM_EXPLICIT_NOTIFY, then this signal is emitted only when they explicitly call g_object_notify() or g_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 underlying notify::show-icons signal

    Declaration

    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 method

    Typed notify::show-icons signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyShowIconsSignal: RecentChooserSignalName { get }
  • 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 to g_object_set_property() results in notify being emitted, even if the new value is the same as the old. If they did pass G_PARAM_EXPLICIT_NOTIFY, then this signal is emitted only when they explicitly call g_object_notify() or g_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 underlying notify::show-not-found signal

    Declaration

    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 method

    Typed notify::show-not-found signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyShowNotFoundSignal: RecentChooserSignalName { get }
  • 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 to g_object_set_property() results in notify being emitted, even if the new value is the same as the old. If they did pass G_PARAM_EXPLICIT_NOTIFY, then this signal is emitted only when they explicitly call g_object_notify() or g_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 underlying notify::show-private signal

    Declaration

    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 method

    Typed notify::show-private signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyShowPrivateSignal: RecentChooserSignalName { get }
  • 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 to g_object_set_property() results in notify being emitted, even if the new value is the same as the old. If they did pass G_PARAM_EXPLICIT_NOTIFY, then this signal is emitted only when they explicitly call g_object_notify() or g_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 underlying notify::show-tips signal

    Declaration

    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 method

    Typed notify::show-tips signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyShowTipsSignal: RecentChooserSignalName { get }
  • 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 to g_object_set_property() results in notify being emitted, even if the new value is the same as the old. If they did pass G_PARAM_EXPLICIT_NOTIFY, then this signal is emitted only when they explicitly call g_object_notify() or g_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 underlying notify::sort-type signal

    Declaration

    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 method

    Typed notify::sort-type signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifySortTypeSignal: RecentChooserSignalName { get }

RecentChooser Interface: RecentChooserProtocol extension (methods and fields)

  • add(filter:) Extension method

    Adds filter to the list of GtkRecentFilter objects held by chooser.

    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 method

    Gets the GtkRecentInfo currently selected by chooser.

    Declaration

    Swift

    @inlinable
    func getCurrentItem() -> RecentInfoRef!
  • getCurrentURI() Extension method

    Gets the URI currently selected by chooser.

    Declaration

    Swift

    @inlinable
    func getCurrentURI() -> String!
  • getFilter() Extension method

    Gets the GtkRecentFilter object currently used by chooser to affect the display of the recently used resources.

    Declaration

    Swift

    @inlinable
    func getFilter() -> RecentFilterRef!
  • getItems() Extension method

    Gets 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 method

    Gets the number of items returned by gtk_recent_chooser_get_items() and gtk_recent_chooser_get_uris().

    Declaration

    Swift

    @inlinable
    func getLimit() -> Int
  • getLocalOnly() Extension method

    Gets 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 method

    Gets whether chooser can select multiple items.

    Declaration

    Swift

    @inlinable
    func getSelectMultiple() -> Bool
  • getShowIcons() Extension method

    Retrieves whether chooser should show an icon near the resource.

    Declaration

    Swift

    @inlinable
    func getShowIcons() -> Bool
  • getShowNotFound() Extension method

    Retrieves whether chooser should show the recently used resources that were not found.

    Declaration

    Swift

    @inlinable
    func getShowNotFound() -> Bool
  • getShowPrivate() Extension method

    Returns whether chooser should display recently used resources registered as private.

    Declaration

    Swift

    @inlinable
    func getShowPrivate() -> Bool
  • getShowTips() Extension method

    Gets whether chooser should display tooltips containing the full path of a recently user resource.

    Declaration

    Swift

    @inlinable
    func getShowTips() -> Bool
  • getSortType() Extension method

    Gets 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 be nil.

    Declaration

    Swift

    @inlinable
    func getURIs(length: UnsafeMutablePointer<gsize>! = nil) -> UnsafeMutablePointer<UnsafeMutablePointer<gchar>?>!
  • listFilters() Extension method

    Gets the GtkRecentFilter objects held by chooser.

    Declaration

    Swift

    @inlinable
    func listFilters() -> GLib.SListRef!
  • remove(filter:) Extension method

    Removes filter from the list of GtkRecentFilter objects held by chooser.

    Declaration

    Swift

    @inlinable
    func remove<RecentFilterT>(filter: RecentFilterT) where RecentFilterT : RecentFilterProtocol
  • selectAll() Extension method

    Selects all the items inside chooser, if the chooser supports multiple selection.

    Declaration

    Swift

    @inlinable
    func selectAll()
  • select(uri:) Extension method

    Selects uri inside chooser.

    Declaration

    Swift

    @inlinable
    func select(uri: UnsafePointer<gchar>!) throws -> Bool
  • setCurrent(uri:) Extension method

    Sets uri as the current URI for chooser.

    Declaration

    Swift

    @inlinable
    func setCurrent(uri: UnsafePointer<gchar>!) throws -> Bool
  • set(filter:) Extension method

    Sets filter as the current GtkRecentFilter object used by chooser to affect the displayed recently used resources.

    Declaration

    Swift

    @inlinable
    func set(filter: RecentFilterRef? = nil)
  • set(filter:) Extension method

    Sets filter as the current GtkRecentFilter object used by chooser 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() and gtk_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 is true (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)
  • Sets the comparison function used when sorting to be sort_func. 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 GtkRecentInfo structs and sort_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 method

    Unselects all the items inside chooser.

    Declaration

    Swift

    @inlinable
    func unselectAll()
  • unselect(uri:) Extension method

    Unselects uri inside chooser.

    Declaration

    Swift

    @inlinable
    func unselect(uri: UnsafePointer<gchar>!)
  • currentItem Extension method

    Gets the GtkRecentInfo currently selected by chooser.

    Declaration

    Swift

    @inlinable
    var currentItem: RecentInfoRef! { get }
  • currentURI Extension method

    Gets the URI currently selected by chooser.

    Declaration

    Swift

    @inlinable
    var currentURI: String! { get nonmutating set }
  • filter Extension method

    The GtkRecentFilter object to be used when displaying the recently used resources.

    Declaration

    Swift

    @inlinable
    var filter: RecentFilterRef! { get nonmutating set }
  • items Extension method

    Gets 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 method

    The 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 method

    Gets 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 method

    Gets whether chooser can select multiple items.

    Declaration

    Swift

    @inlinable
    var selectMultiple: Bool { get nonmutating set }
  • showIcons Extension method

    Retrieves whether chooser should show an icon near the resource.

    Declaration

    Swift

    @inlinable
    var showIcons: Bool { get nonmutating set }
  • showNotFound Extension method

    Retrieves whether chooser should show the recently used resources that were not found.

    Declaration

    Swift

    @inlinable
    var showNotFound: Bool { get nonmutating set }
  • showPrivate Extension method

    Returns whether chooser should display recently used resources registered as private.

    Declaration

    Swift

    @inlinable
    var showPrivate: Bool { get nonmutating set }
  • showTips Extension method

    Gets 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 method

    Gets the value set by gtk_recent_chooser_set_sort_type().

    Declaration

    Swift

    @inlinable
    var sortType: GtkRecentSortType { get nonmutating set }