Klasse CustomFilter

Alle implementierten Schnittstellen:
PointerInterface

public class CustomFilter extends Filter
Determines whether to include items with a callback.

https://docs.gtk.org/gtk4/class.CustomFilter.html

  • Konstruktordetails

    • CustomFilter

      public CustomFilter(PointerContainer pointer)
    • CustomFilter

      public CustomFilter(CustomFilter.OnCustomFilterFunc match_func, @Nullable Pointer user_data, CustomFilter.OnDestroyNotify user_destroy)
      Creates a new filter using the given function to filter items.

      If @match_func is `NULL`, the filter matches all items.

      If the filter func changes its filtering behavior,
      [method@Gtk.Filter.changed] needs to be called.
      Parameter:
      match_func - function to filter items
      user_data - user data to pass to @match_func
      user_destroy - destroy notify for @user_data
  • Methodendetails

    • getClassHandler

      public static ClassHandler getClassHandler()
    • setFilterFunc

      public void setFilterFunc(CustomFilter.OnCustomFilterFunc match_func, @Nullable Pointer user_data, CustomFilter.OnDestroyNotify user_destroy)
      Sets the function used for filtering items.

      If @match_func is `NULL`, the filter matches all items.

      If the filter func changes its filtering behavior,
      [method@Gtk.Filter.changed] needs to be called.

      If a previous function was set, its @user_destroy
      will be called.
      Parameter:
      match_func - function to filter items
      user_data - user data to pass to @match_func
      user_destroy - destroy notify for @user_data
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()