SelectionModelInterfaceProtocol
public protocol SelectionModelInterfaceProtocol
The list of virtual functions for the GtkSelectionModel
interface.
No function must be implemented, but unless GtkSelectionModel
is_selected()
is implemented, it will not be possible to select items in the set.
The model does not need to implement any functions to support either selecting or unselecting items. Of course, if the model does not do that, it means that users cannot select or unselect items in a list widget using the model.
All selection functions fall back to GtkSelectionModel
set_selection()
so it is sufficient to implement just that function for full selection
support.
The SelectionModelInterfaceProtocol
protocol exposes the methods and properties of an underlying GtkSelectionModelInterface
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 SelectionModelInterface
.
Alternatively, use SelectionModelInterfaceRef
as a lighweight, unowned
reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
GtkSelectionModelInterface
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
_ptr
Default implementationTyped pointer to the underlying
GtkSelectionModelInterface
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GtkSelectionModelInterface
instance.Declaration
Swift
var _ptr: UnsafeMutablePointer<GtkSelectionModelInterface>! { get }
-
Required Initialiser for types conforming to
SelectionModelInterfaceProtocol
Declaration
Swift
init(raw: UnsafeMutableRawPointer)