Interface FontChooser.OnFontFilterFunc

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

@FunctionalInterface public static interface FontChooser.OnFontFilterFunc
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    The type of function that is used for deciding what fonts get
    shown in a `GtkFontChooser`.
  • Method Details

    • onFontFilterFunc

      boolean onFontFilterFunc(CallbackHandler __self, @Nonnull FontFamily family, @Nonnull FontFace face, @Nullable Pointer data)
      The type of function that is used for deciding what fonts get
      shown in a `GtkFontChooser`.

      See [method@Gtk.FontChooser.set_filter_func].
      Parameters:
      family - a `PangoFontFamily`
      face - a `PangoFontFace` belonging to @family
      data - user data passed to gtk_font_chooser_set_filter_func()
      Returns:
      %TRUE if the font should be displayed