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
GtkRecentDatainstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
_ptrDefault implementationTyped pointer to the underlying
GtkRecentDatainstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GtkRecentDatainstance.Declaration
Swift
var _ptr: UnsafeMutablePointer<GtkRecentData>! { get } -
Required Initialiser for types conforming to
RecentDataProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
-
displayNameExtension 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 } -
descriptionExtension methoda UTF-8 encoded string, containing a short description of the resource, or
nil;Declaration
Swift
@inlinable var description: UnsafeMutablePointer<CChar>! { get set } -
mimeTypeExtension methodthe MIME type of the resource;
Declaration
Swift
@inlinable var mimeType: UnsafeMutablePointer<CChar>! { get set } -
appNameExtension methodthe name of the application that is registering this recently used resource;
Declaration
Swift
@inlinable var appName: UnsafeMutablePointer<CChar>! { get set } -
appExecExtension 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 } -
groupsExtension methoda vector of strings containing groups names;
Declaration
Swift
@inlinable var groups: UnsafeMutablePointer<UnsafeMutablePointer<CChar>?>! { get set } -
isPrivateExtension methodwhether this resource should be displayed only by the applications that have registered it or not.
Declaration
Swift
@inlinable var isPrivate: gboolean { get set }
View on GitHub
Install in Dash
RecentDataProtocol Protocol Reference