| 1 | /* |
| 2 | * Copyright © 2019 Benjamin Otte |
| 3 | * |
| 4 | * This library is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of the GNU Lesser General Public |
| 6 | * License as published by the Free Software Foundation; either |
| 7 | * version 2.1 of the License, or (at your option) any later version. |
| 8 | * |
| 9 | * This library is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 | * Lesser General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU Lesser General Public |
| 15 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. |
| 16 | * |
| 17 | * Authors: Benjamin Otte <[email protected]> |
| 18 | */ |
| 19 | |
| 20 | #pragma once |
| 21 | |
| 22 | #if !defined (__GTK_H_INSIDE__cxx . . $ `gtk/gtk.h:27:9`!) && !defined (GTK_COMPILATIONcxx . . $ `<built-in>:420:9`!) |
| 23 | #error "Only <gtk/gtk.h> can be included directly." |
| 24 | #endif |
| 25 | |
| 26 | #include <gtk/gtkfilter.h>cxx . . $ `<file>/gtk/gtkfilter.h`/ |
| 27 | |
| 28 | G_BEGIN_DECLScxx . . $ `<external>/12741050725406041920/gmacros.h:947:9`! |
| 29 | |
| 30 | /** |
| 31 | * GtkCustomFilterFunc: |
| 32 | * @item: (type GObject): the item to be matched |
| 33 | * @user_data: user data |
| 34 | * |
| 35 | * User function that is called to determine if the @item should be matched. |
| 36 | * |
| 37 | * If the filter matches the item, this function must return true. |
| 38 | * If the item should be filtered out, false must be returned. |
| 39 | * |
| 40 | * Returns: true to keep the item around |
| 41 | */ |
| 42 | typedef gbooleancxx . . $ gboolean# (* GtkCustomFilterFunccxx . . $ GtkCustomFilterFunc#) (gpointercxx . . $ gpointer# item, gpointercxx . . $ gpointer# user_data); |
| 43 | |
| 44 | #define GTK_TYPE_CUSTOM_FILTERcxx . . $ `gtk/gtkcustomfilter.h:44:9`! (gtk_custom_filter_get_type ()) |
| 45 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 46 | G_DECLARE_FINAL_TYPEcxx . . $ glib_autoptr_clear_GtkCustomFilterClass(e8710c2b2ddfe57a). (GtkCustomFilter, gtk_custom_filter, GTK, CUSTOM_FILTER, GtkFilter) |
| 47 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 48 | GtkCustomFiltercxx . . $ GtkCustomFilter# * gtk_custom_filter_newcxx . . $ gtk_custom_filter_new(6a4ff718ad6aebb2). (GtkCustomFilterFunccxx . . $ GtkCustomFilterFunc# match_func, |
| 49 | gpointercxx . . $ gpointer# user_data, |
| 50 | GDestroyNotifycxx . . $ GDestroyNotify# user_destroy); |
| 51 | |
| 52 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 53 | void gtk_custom_filter_set_filter_funccxx . . $ gtk_custom_filter_set_filter_func(dc07f102e51dd72c). (GtkCustomFiltercxx . . $ GtkCustomFilter# *self, |
| 54 | GtkCustomFilterFunccxx . . $ GtkCustomFilterFunc# match_func, |
| 55 | gpointercxx . . $ gpointer# user_data, |
| 56 | GDestroyNotifycxx . . $ GDestroyNotify# user_destroy); |
| 57 | |
| 58 | G_END_DECLScxx . . $ `<external>/12741050725406041920/gmacros.h:948:9`! |
| 59 |