| 1 | /* |
| 2 | * Copyright © 2025 Igalia S.L. |
| 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: Georges Basile Stavracas Neto <[email protected]> |
| 18 | */ |
| 19 | |
| 20 | #pragma once |
| 21 | |
| 22 | #include "gtkfilter.h"cxx . . $ `<file>/gtk/gtkfilter.h`/ |
| 23 | |
| 24 | #include <gtk/gtkexpression.h>cxx . . $ `<file>/gtk/gtkexpression.h`/ |
| 25 | |
| 26 | G_BEGIN_DECLScxx . . $ `<external>/12741050725406041920/gmacros.h:947:9`! |
| 27 | |
| 28 | /*<private> |
| 29 | * GtkFilterWatchCallback: |
| 30 | * @item: (type GObject): the item to be watched |
| 31 | * @user_data: user data |
| 32 | * |
| 33 | * User function that is called @item changes while being watches. |
| 34 | * |
| 35 | * Since: 4.20 |
| 36 | */ |
| 37 | typedef void (*GtkFilterWatchCallbackcxx . . $ GtkFilterWatchCallback#) (gpointercxx . . $ gpointer# item, |
| 38 | gpointercxx . . $ gpointer# user_data); |
| 39 | |
| 40 | typedef struct _GtkFilterClassPrivatecxx . . $ _GtkFilterClassPrivate# |
| 41 | { |
| 42 | /* private vfuncs */ |
| 43 | gpointercxx . . $ gpointer# (* watchcxx . . $ _GtkFilterClassPrivate#watch.) (GtkFiltercxx . . $ GtkFilter# *self, |
| 44 | gpointercxx . . $ gpointer# item, |
| 45 | GtkFilterWatchCallbackcxx . . $ GtkFilterWatchCallback# watch_func, |
| 46 | gpointercxx . . $ gpointer# user_data, |
| 47 | GDestroyNotifycxx . . $ GDestroyNotify# destroy); |
| 48 | |
| 49 | void (* unwatchcxx . . $ _GtkFilterClassPrivate#unwatch.) (GtkFiltercxx . . $ GtkFilter# *self, |
| 50 | gpointercxx . . $ gpointer# watch); |
| 51 | } GtkFilterClassPrivatecxx . . $ GtkFilterClassPrivate#; |
| 52 | |
| 53 | gpointercxx . . $ gpointer# gtk_filter_watchcxx . . $ gtk_filter_watch(f4ca998fdb5a5e64). (GtkFiltercxx . . $ GtkFilter# *self, |
| 54 | gpointercxx . . $ gpointer# item, |
| 55 | GtkFilterWatchCallbackcxx . . $ GtkFilterWatchCallback# watch_func, |
| 56 | gpointercxx . . $ gpointer# user_data, |
| 57 | GDestroyNotifycxx . . $ GDestroyNotify# destroy); |
| 58 | |
| 59 | void gtk_filter_unwatchcxx . . $ gtk_filter_unwatch(61ad5fec2b3446ff). (GtkFiltercxx . . $ GtkFilter# *self, |
| 60 | gpointercxx . . $ gpointer# watch); |
| 61 | |
| 62 | G_END_DECLScxx . . $ `<external>/12741050725406041920/gmacros.h:948:9`! |