Interface TreeViewSearchEqualFunc

All Superinterfaces:
FunctionPointer
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface @Deprecated @Generated("org.javagi.JavaGI") public interface TreeViewSearchEqualFunc extends FunctionPointer
Deprecated.

Functional interface declaration of the TreeViewSearchEqualFunc callback.

See Also:
  • Method Details

    • run

      @Deprecated boolean run(TreeModel model, int column, String key, TreeIter iter)
      Deprecated.
      There is no replacement.
      A function used for checking whether a row in model matches a search key string entered by the user. Note the return value is reversed from what you would normally expect, though it has some similarity to strcmp() returning 0 for equal strings.
      Parameters:
      model - the GtkTreeModel being searched
      column - the search column set by gtk_tree_view_set_search_column()
      key - the key string to compare with
      iter - a GtkTreeIter pointing the row of model that should be compared with key.
      Returns:
      false if the row matches, true otherwise.
    • upcall

      default int upcall(MemorySegment model, int column, MemorySegment key, MemorySegment iter, MemorySegment searchData)
      Deprecated.
      The upcall method is called from native code. The parameters are marshaled and run(TreeModel, int, String, TreeIter) is executed.
    • toCallback

      default MemorySegment toCallback(Arena arena)
      Deprecated.
      Creates a native function pointer to the upcall(MemorySegment, int, MemorySegment, MemorySegment, MemorySegment) method.
      Specified by:
      toCallback in interface FunctionPointer
      Parameters:
      arena - the arena in which the function pointer is allocated
      Returns:
      the native function pointer