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.
-
Untyped pointer to the underlying
GtkRecentData
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
_ptr
Default implementationTyped 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)
-
displayName
Extension methoda UTF-8 encoded string, containing the name of the recently used resource to be displayed, or
nil
;Declaration
Swift
@inlinable var displayName: UnsafeMutablePointer<CChar>! { get set }
-
description
Extension methoda UTF-8 encoded string, containing a short description of the resource, or
nil
;Declaration
Swift
@inlinable var description: UnsafeMutablePointer<CChar>! { get set }
-
mimeType
Extension methodthe MIME type of the resource;
Declaration
Swift
@inlinable var mimeType: UnsafeMutablePointer<CChar>! { get set }
-
appName
Extension methodthe name of the application that is registering this recently used resource;
Declaration
Swift
@inlinable var appName: UnsafeMutablePointer<CChar>! { get set }
-
appExec
Extension methodcommand 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<CChar>! { get set }
-
groups
Extension methoda vector of strings containing groups names;
Declaration
Swift
@inlinable var groups: UnsafeMutablePointer<UnsafeMutablePointer<CChar>?>! { get set }
-
isPrivate
Extension methodwhether this resource should be displayed only by the applications that have registered it or not.
Declaration
Swift
@inlinable var isPrivate: gboolean { get set }