Class CustomFilter

All Implemented Interfaces:
PointerInterface

public class CustomFilter extends Filter
`GtkCustomFilter` determines whether to include items with a callback.

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

  • Constructor Details

    • 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 @match_func to filter
      items.

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

      If the filter func changes its filtering behavior,
      gtk_filter_changed() needs to be called.
      Parameters:
      match_func - function to filter items
      user_data - user data to pass to @match_func
      user_destroy - destroy notify for @user_data
  • Method Details

    • 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,
      gtk_filter_changed() needs to be called.

      If a previous function was set, its @user_destroy will be
      called now.
      Parameters:
      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()