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.

  • ptr
    Untyped pointer to the underlying `GtkThemingEngine` instance.
    

    For type-safe access, use the generated, typed pointer theming_engine_ptr property instead.

    Declaration

    Swift

    public let ptr: UnsafeMutableRawPointer!

ThemingEngine Class

  • Designated initialiser from the underlying C data type

    Declaration

    Swift

    @inlinable
    init(_ p: UnsafeMutablePointer<GtkThemingEngine>)
  • Designated initialiser from a constant pointer to the underlying C data type

    Declaration

    Swift

    @inlinable
    init(_ p: UnsafePointer<GtkThemingEngine>)
  • Conditional initialiser from an optional pointer to the underlying C data type

    Declaration

    Swift

    @inlinable
    init!(_ maybePointer: UnsafeMutablePointer<GtkThemingEngine>?)
  • Conditional initialiser from an optional, non-mutable pointer to the underlying C data type

    Declaration

    Swift

    @inlinable
    init!(_ maybePointer: UnsafePointer<GtkThemingEngine>?)
  • Conditional initialiser from an optional gpointer

    Declaration

    Swift

    @inlinable
    init!(gpointer g: gpointer?)
  • Conditional initialiser from an optional, non-mutable gconstpointer

    Declaration

    Swift

    @inlinable
    init!(gconstpointer g: gconstpointer?)
  • Reference intialiser for a related type that implements ThemingEngineProtocol

    Declaration

    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 the
    

    standard directories.

    load is deprecated: This method is deprecated.

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    static func load(name: UnsafePointer<gchar>!) -> ThemingEngineRef!