IconViewRef

public struct IconViewRef : IconViewProtocol, GWeakCapturing

GtkIconView provides an alternative view on a GtkTreeModel. It displays the model as a grid of icons with labels. Like GtkTreeView, it allows to select one or multiple items (depending on the selection mode, see gtk_icon_view_set_selection_mode()). In addition to selection with the arrow keys, GtkIconView supports rubberband selection, which is controlled by dragging the pointer.

Note that if the tree model is backed by an actual tree store (as opposed to a flat list where the mapping to icons is obvious), GtkIconView will only display the first level of the tree and ignore the tree’s branches.

CSS nodes

(plain Language Example):

iconview.view
╰── [rubberband]

GtkIconView has a single CSS node with name iconview and style class .view. For rubberband selection, a subnode with name rubberband is used.

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

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

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

    Declaration

    Swift

    public let ptr: UnsafeMutableRawPointer!

IconView Class

  • Designated initialiser from the underlying C data type

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

    @inlinable
    init!(_ maybePointer: UnsafePointer<GtkIconView>?)
  • 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 IconViewProtocol

    Declaration

    Swift

    @inlinable
    init<T>(_ other: T) where T : IconViewProtocol
  • This factory is syntactic sugar for setting weak pointers wrapped in GWeak<T>

    Declaration

    Swift

    @inlinable
    static func unowned<T>(_ other: T) -> IconViewRef where T : IconViewProtocol
  • Unsafe typed initialiser. Do not use unless you know the underlying data type the pointer points to conforms to IconViewProtocol.

    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 IconViewProtocol.

    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 IconViewProtocol.

    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 IconViewProtocol.

    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 IconViewProtocol.

    Declaration

    Swift

    @inlinable
    init(opaquePointer: OpaquePointer)
  • Creates a new GtkIconView widget

    Declaration

    Swift

    @inlinable
    init()
  • Creates a new GtkIconView widget using the specified area to layout cells inside the icons.

    Declaration

    Swift

    @inlinable
    init<CellAreaT>(area: CellAreaT) where CellAreaT : CellAreaProtocol
  • Creates a new GtkIconView widget with the model model.

    Declaration

    Swift

    @inlinable
    init<TreeModelT>(model: TreeModelT) where TreeModelT : TreeModelProtocol
  • Creates a new GtkIconView widget using the specified area to layout cells inside the icons.

    Declaration

    Swift

    @inlinable
    static func newWith<CellAreaT>(area: CellAreaT) -> WidgetRef! where CellAreaT : CellAreaProtocol
  • Creates a new GtkIconView widget with the model model.

    Declaration

    Swift

    @inlinable
    static func newWith<TreeModelT>(model: TreeModelT) -> WidgetRef! where TreeModelT : TreeModelProtocol