RecentDataProtocol

public protocol RecentDataProtocol

Meta-data to be passed to gtk_recent_manager_add_full() when registering a recently used resource.

The RecentDataProtocol protocol exposes the methods and properties of an underlying GtkRecentData 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 RecentData. Alternatively, use RecentDataRef as a lighweight, unowned reference if you already have an instance you just want to use.

  • ptr

    Untyped pointer to the underlying GtkRecentData instance.

    Declaration

    Swift

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

    Typed pointer to the underlying GtkRecentData instance.

    Default Implementation

    Return the stored, untyped pointer as a typed pointer to the GtkRecentData instance.

    Declaration

    Swift

    var _ptr: UnsafeMutablePointer<GtkRecentData>! { get }
  • Required Initialiser for types conforming to RecentDataProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

RecentData Record: RecentDataProtocol extension (methods and fields)

  • displayName Extension method

    a UTF-8 encoded string, containing the name of the recently used resource to be displayed, or nil;

    Declaration

    Swift

    @inlinable
    var displayName: UnsafeMutablePointer<gchar>! { get set }
  • description Extension method

    a UTF-8 encoded string, containing a short description of the resource, or nil;

    Declaration

    Swift

    @inlinable
    var description: UnsafeMutablePointer<gchar>! { get set }
  • mimeType Extension method

    the MIME type of the resource;

    Declaration

    Swift

    @inlinable
    var mimeType: UnsafeMutablePointer<gchar>! { get set }
  • appName Extension method

    the name of the application that is registering this recently used resource;

    Declaration

    Swift

    @inlinable
    var appName: UnsafeMutablePointer<gchar>! { get set }
  • appExec Extension method

    command line used to launch this resource; may contain the “`f” and “\u`” escape characters which will be expanded to the resource file path and URI respectively when the command line is retrieved;

    Declaration

    Swift

    @inlinable
    var appExec: UnsafeMutablePointer<gchar>! { get set }
  • groups Extension method

    a vector of strings containing groups names;

    Declaration

    Swift

    @inlinable
    var groups: UnsafeMutablePointer<UnsafeMutablePointer<gchar>?>! { get set }
  • isPrivate Extension method

    whether this resource should be displayed only by the applications that have registered it or not.

    Declaration

    Swift

    @inlinable
    var isPrivate: gboolean { get set }