Class BoolFilter

All Implemented Interfaces:
PointerInterface

public class BoolFilter extends Filter
`GtkBoolFilter` evaluates a boolean `GtkExpression`
to determine whether to include items.

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

  • Constructor Details

    • BoolFilter

      public BoolFilter(PointerContainer pointer)
    • BoolFilter

      public BoolFilter(@Nullable Expression expression)
      Creates a new bool filter.
      Parameters:
      expression - The expression to evaluate
  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getExpression

      public Expression getExpression()
      Gets the expression that the filter uses to evaluate if
      an item should be filtered.
      Returns:
      a `GtkExpression`
    • getInvert

      public boolean getInvert()
      Returns whether the filter inverts the expression.
      Returns:
      %TRUE if the filter inverts
    • setExpression

      public void setExpression(@Nullable Expression expression)
      Sets the expression that the filter uses to check if items
      should be filtered.

      The expression must have a value type of %G_TYPE_BOOLEAN.
      Parameters:
      expression - a `GtkExpression`
    • setInvert

      public void setInvert(boolean invert)
      Sets whether the filter should invert the expression.
      Parameters:
      invert - %TRUE to invert
    • 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()