PaintableInterfaceRef

public struct PaintableInterfaceRef : PaintableInterfaceProtocol

The PaintableInterfaceRef type acts as a lightweight Swift reference to an underlying GdkPaintableInterface instance. It exposes methods that can operate on this data type through PaintableInterfaceProtocol conformance. Use PaintableInterfaceRef only as an unowned reference to an existing GdkPaintableInterface instance.

The list of functions that can be implemented for the GdkPaintable interface.

Note that apart from the GdkPaintableInterface.snapshot() function, no virtual function of this interface is mandatory to implement, though it is a good idea to implement GdkPaintableInterface.get_current_image() for non-static paintables and GdkPaintableInterface.get_flags() if the image is not dynamic as the default implementation returns no flags and that will make the implementation likely quite slow.

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

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

    Declaration

    Swift

    public let ptr: UnsafeMutableRawPointer!

MonitorClass Record: MonitorClassProtocol extension (methods and fields)

PaintableInterface Record