TreeRowReferenceProtocol

public protocol TreeRowReferenceProtocol

A GtkTreeRowReference tracks model changes so that it always refers to the same row (a GtkTreePath refers to a position, not a fixed row). Create a new GtkTreeRowReference with gtk_tree_row_reference_new().

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

  • ptr

    Untyped pointer to the underlying GtkTreeRowReference instance.

    Declaration

    Swift

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

    Typed pointer to the underlying GtkTreeRowReference instance.

    Default Implementation

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

    Declaration

    Swift

    var tree_row_reference_ptr: UnsafeMutablePointer<GtkTreeRowReference>! { get }
  • Required Initialiser for types conforming to TreeRowReferenceProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

TreeRowReference Record: TreeRowReferenceProtocol extension (methods and fields)

  • copy() Extension method

    Copies a GtkTreeRowReference.

    Declaration

    Swift

    @inlinable
    func copy() -> TreeRowReferenceRef!
  • free() Extension method

    Free’s reference. reference may be nil

    Declaration

    Swift

    @inlinable
    func free()
  • getModel() Extension method

    Returns the model that the row reference is monitoring.

    Declaration

    Swift

    @inlinable
    func getModel() -> TreeModelRef!
  • getPath() Extension method

    Returns a path that the row reference currently points to, or nil if the path pointed to is no longer valid.

    Declaration

    Swift

    @inlinable
    func getPath() -> TreePathRef!
  • valid() Extension method

    Returns true if the reference is non-nil and refers to a current valid path.

    Declaration

    Swift

    @inlinable
    func valid() -> Bool
  • model Extension method

    Returns the model that the row reference is monitoring.

    Declaration

    Swift

    @inlinable
    var model: TreeModelRef! { get }
  • path Extension method

    Returns a path that the row reference currently points to, or nil if the path pointed to is no longer valid.

    Declaration

    Swift

    @inlinable
    var path: TreePathRef! { get }