PaintableInterfaceProtocol

public protocol PaintableInterfaceProtocol

The PaintableInterfaceProtocol protocol exposes the methods and properties of an underlying GdkPaintableInterface 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 PaintableInterface. Alternatively, use PaintableInterfaceRef as a lighweight, unowned reference if you already have an instance you just want to use.

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.

    Declaration

    Swift

    var ptr: UnsafeMutableRawPointer! { get }
  • _ptr Default implementation

    Typed pointer to the underlying GdkPaintableInterface instance.

    Default Implementation

    Return the stored, untyped pointer as a typed pointer to the GdkPaintableInterface instance.

    Declaration

    Swift

    var _ptr: UnsafeMutablePointer<GdkPaintableInterface>! { get }
  • Required Initialiser for types conforming to PaintableInterfaceProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)