ThemingEngineRef
public struct ThemingEngineRef : ThemingEngineProtocol, GWeakCapturing
GtkThemingEngine was the object used for rendering themed content
in GTK+ widgets. It used to allow overriding GTK+‘s default
implementation of rendering functions by allowing engines to be
loaded as modules.
GtkThemingEngine has been deprecated in GTK+ 3.14 and will be
ignored for rendering. The advancements in CSS theming are good
enough to allow themers to achieve their goals without the need
to modify source code.
The ThemingEngineRef type acts as a lightweight Swift reference to an underlying GtkThemingEngine instance.
It exposes methods that can operate on this data type through ThemingEngineProtocol conformance.
Use ThemingEngineRef only as an unowned reference to an existing GtkThemingEngine instance.
-
Untyped pointer to the underlying `GtkThemingEngine` instance.For type-safe access, use the generated, typed pointer
theming_engine_ptrproperty instead.Declaration
Swift
public let ptr: UnsafeMutableRawPointer!
-
Designated initialiser from the underlying
Cdata typeDeclaration
Swift
@inlinable init(_ p: UnsafeMutablePointer<GtkThemingEngine>) -
Designated initialiser from a constant pointer to the underlying
Cdata typeDeclaration
Swift
@inlinable init(_ p: UnsafePointer<GtkThemingEngine>) -
Conditional initialiser from an optional pointer to the underlying
Cdata typeDeclaration
Swift
@inlinable init!(_ maybePointer: UnsafeMutablePointer<GtkThemingEngine>?) -
Conditional initialiser from an optional, non-mutable pointer to the underlying
Cdata typeDeclaration
Swift
@inlinable init!(_ maybePointer: UnsafePointer<GtkThemingEngine>?) -
Conditional initialiser from an optional
gpointerDeclaration
Swift
@inlinable init!(gpointer g: gpointer?) -
Conditional initialiser from an optional, non-mutable
gconstpointerDeclaration
Swift
@inlinable init!(gconstpointer g: gconstpointer?) -
Reference intialiser for a related type that implements
ThemingEngineProtocolDeclaration
Swift
@inlinable init<T>(_ other: T) where T : ThemingEngineProtocol -
This factory is syntactic sugar for setting weak pointers wrapped in
GWeak<T>Declaration
Swift
@inlinable static func unowned<T>(_ other: T) -> ThemingEngineRef where T : ThemingEngineProtocol -
Unsafe typed initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
ThemingEngineProtocol.Declaration
Swift
@inlinable init<T>(cPointer: UnsafeMutablePointer<T>) -
Unsafe typed initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
ThemingEngineProtocol.Declaration
Swift
@inlinable init<T>(constPointer: UnsafePointer<T>) -
Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
ThemingEngineProtocol.Declaration
Swift
@inlinable init(mutating raw: UnsafeRawPointer) -
Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
ThemingEngineProtocol.Declaration
Swift
@inlinable init(raw: UnsafeMutableRawPointer) -
Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
ThemingEngineProtocol.Declaration
Swift
@inlinable init(opaquePointer: OpaquePointer) -
Loads and initializes a theming engine module from thestandard directories.
load is deprecated: This method is deprecated.
Declaration
Swift
@available(*, deprecated) @inlinable static func load(name: UnsafePointer<gchar>!) -> ThemingEngineRef!
View on GitHub
Install in Dash
ThemingEngineRef Structure Reference