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.
-
Untyped pointer to the underlying
GdkPaintableInterfaceinstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
_ptrDefault implementationTyped pointer to the underlying
GdkPaintableInterfaceinstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GdkPaintableInterfaceinstance.Declaration
Swift
var _ptr: UnsafeMutablePointer<GdkPaintableInterface>! { get } -
Required Initialiser for types conforming to
PaintableInterfaceProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
View on GitHub
Install in Dash
PaintableInterfaceProtocol Protocol Reference