| 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 <gdk/gdk.h>cxx . . $ `<file>/gdk/gdk.h`/ |
| 27 | |
| 28 | G_BEGIN_DECLScxx . . $ `<external>/12741050725406041920/gmacros.h:947:9`! |
| 29 | |
| 30 | /** |
| 31 | * GtkFilterMatch: |
| 32 | * @GTK_FILTER_MATCH_SOME: The filter matches some items, |
| 33 | * [[email protected]] may return true or false |
| 34 | * @GTK_FILTER_MATCH_NONE: The filter does not match any item, |
| 35 | * [[email protected]] will always return false |
| 36 | * @GTK_FILTER_MATCH_ALL: The filter matches all items, |
| 37 | * [[email protected]] will alays return true |
| 38 | * |
| 39 | * Describes the known strictness of a filter. |
| 40 | * |
| 41 | * Note that for filters where the strictness is not known, |
| 42 | * `GTK_FILTER_MATCH_SOME` is always an acceptable value, |
| 43 | * even if a filter does match all or no items. |
| 44 | */ |
| 45 | typedef enumcxx . . $ $anonymous_type_8f83026a777af04f_0# { |
| 46 | GTK_FILTER_MATCH_SOMEcxx . . $ GTK_FILTER_MATCH_SOME. = 0, |
| 47 | GTK_FILTER_MATCH_NONEcxx . . $ GTK_FILTER_MATCH_NONE., |
| 48 | GTK_FILTER_MATCH_ALLcxx . . $ GTK_FILTER_MATCH_ALL. |
| 49 | } GtkFilterMatchcxx . . $ GtkFilterMatch#; |
| 50 | |
| 51 | /** |
| 52 | * GtkFilterChange: |
| 53 | * @GTK_FILTER_CHANGE_DIFFERENT: The filter change cannot be |
| 54 | * described with any of the other enumeration values |
| 55 | * @GTK_FILTER_CHANGE_LESS_STRICT: The filter is less strict than |
| 56 | * it was before: All items that it used to return true |
| 57 | * still return true, others now may, too. |
| 58 | * @GTK_FILTER_CHANGE_MORE_STRICT: The filter is more strict than |
| 59 | * it was before: All items that it used to return false |
| 60 | * still return false, others now may, too. |
| 61 | * |
| 62 | * Describes changes in a filter in more detail and allows objects |
| 63 | * using the filter to optimize refiltering items. |
| 64 | * |
| 65 | * If you are writing an implementation and are not sure which |
| 66 | * value to pass, `GTK_FILTER_CHANGE_DIFFERENT` is always a correct |
| 67 | * choice. |
| 68 | * |
| 69 | * New values may be added in the future. |
| 70 | */ |
| 71 | |
| 72 | /** |
| 73 | * GTK_FILTER_CHANGE_DIFFERENT_REWATCH: |
| 74 | * |
| 75 | * Similar to [[email protected]], |
| 76 | * but signs that item watches should be recreated. This is used by |
| 77 | * [[email protected]] to keep the list up-to-date when items |
| 78 | * change. |
| 79 | * |
| 80 | * Since: 4.20 |
| 81 | */ |
| 82 | |
| 83 | /** |
| 84 | * GTK_FILTER_CHANGE_LESS_STRICT_REWATCH: |
| 85 | * |
| 86 | * Similar to [[email protected]_STRICT], |
| 87 | * but signs that item watches should be recreated. This is used by |
| 88 | * [[email protected]] to keep the list up-to-date when items |
| 89 | * change. |
| 90 | * |
| 91 | * Since: 4.20 |
| 92 | */ |
| 93 | |
| 94 | /** |
| 95 | * GTK_FILTER_CHANGE_MORE_STRICT_REWATCH: |
| 96 | * Similar to [[email protected]_STRICT], |
| 97 | * but signs that item watches should be recreated. This is used by |
| 98 | * [[email protected]] to keep the list up-to-date when items |
| 99 | * change. |
| 100 | * |
| 101 | * Since: 4.20 |
| 102 | */ |
| 103 | typedef enumcxx . . $ $anonymous_type_8f83026a777af04f_1# { |
| 104 | GTK_FILTER_CHANGE_DIFFERENTcxx . . $ GTK_FILTER_CHANGE_DIFFERENT. = 0, |
| 105 | GTK_FILTER_CHANGE_LESS_STRICTcxx . . $ GTK_FILTER_CHANGE_LESS_STRICT., |
| 106 | GTK_FILTER_CHANGE_MORE_STRICTcxx . . $ GTK_FILTER_CHANGE_MORE_STRICT., |
| 107 | GTK_FILTER_CHANGE_DIFFERENT_REWATCHcxx . . $ GTK_FILTER_CHANGE_DIFFERENT_REWATCH., |
| 108 | GTK_FILTER_CHANGE_LESS_STRICT_REWATCHcxx . . $ GTK_FILTER_CHANGE_LESS_STRICT_REWATCH., |
| 109 | GTK_FILTER_CHANGE_MORE_STRICT_REWATCHcxx . . $ GTK_FILTER_CHANGE_MORE_STRICT_REWATCH., |
| 110 | } GtkFilterChangecxx . . $ GtkFilterChange#; |
| 111 | |
| 112 | #define GTK_TYPE_FILTERcxx . . $ `gtk/gtkfilter.h:112:9`! (gtk_filter_get_type ()) |
| 113 | |
| 114 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 115 | G_DECLARE_DERIVABLE_TYPEcxx . . $ GtkFilterClass_autoptr# (GtkFilter, gtk_filter, GTK, FILTER, GObject) |
| 116 | |
| 117 | struct _GtkFilterClasscxx . . $ _GtkFilterClass# |
| 118 | { |
| 119 | GObjectClasscxx . . $ GObjectClass# parent_classcxx . . $ _GtkFilterClass#parent_class.; |
| 120 | |
| 121 | gbooleancxx . . $ gboolean# (* matchcxx . . $ _GtkFilterClass#match.) (GtkFiltercxx . . $ GtkFilter# *self, |
| 122 | gpointercxx . . $ gpointer# item); |
| 123 | |
| 124 | /* optional */ |
| 125 | GtkFilterMatchcxx . . $ GtkFilterMatch# (* get_strictnesscxx . . $ _GtkFilterClass#get_strictness.) (GtkFiltercxx . . $ GtkFilter# *self); |
| 126 | |
| 127 | /* Padding for future expansion */ |
| 128 | void (*_gtk_reserved1cxx . . $ _GtkFilterClass#_gtk_reserved1.) (void); |
| 129 | void (*_gtk_reserved2cxx . . $ _GtkFilterClass#_gtk_reserved2.) (void); |
| 130 | void (*_gtk_reserved3cxx . . $ _GtkFilterClass#_gtk_reserved3.) (void); |
| 131 | void (*_gtk_reserved4cxx . . $ _GtkFilterClass#_gtk_reserved4.) (void); |
| 132 | void (*_gtk_reserved5cxx . . $ _GtkFilterClass#_gtk_reserved5.) (void); |
| 133 | void (*_gtk_reserved6cxx . . $ _GtkFilterClass#_gtk_reserved6.) (void); |
| 134 | void (*_gtk_reserved7cxx . . $ _GtkFilterClass#_gtk_reserved7.) (void); |
| 135 | void (*_gtk_reserved8cxx . . $ _GtkFilterClass#_gtk_reserved8.) (void); |
| 136 | }; |
| 137 | |
| 138 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 139 | gbooleancxx . . $ gboolean# gtk_filter_matchcxx . . $ gtk_filter_match(e0150b010de14d8). (GtkFiltercxx . . $ GtkFilter# *self, |
| 140 | gpointercxx . . $ gpointer# item); |
| 141 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 142 | GtkFilterMatchcxx . . $ GtkFilterMatch# gtk_filter_get_strictnesscxx . . $ gtk_filter_get_strictness(b242056dca9c2fa7). (GtkFiltercxx . . $ GtkFilter# *self); |
| 143 | |
| 144 | /* for filter implementations */ |
| 145 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 146 | void gtk_filter_changedcxx . . $ gtk_filter_changed(36443b429ca69cc7). (GtkFiltercxx . . $ GtkFilter# *self, |
| 147 | GtkFilterChangecxx . . $ GtkFilterChange# change); |
| 148 | |
| 149 | |
| 150 | G_END_DECLScxx . . $ `<external>/12741050725406041920/gmacros.h:948:9`! |
| 151 |