| 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 | |
| 21 | #pragma once |
| 22 | |
| 23 | #include <gtk/gtktypes.h>cxx . . $ `<file>/gtk/gtktypes.h`/ |
| 24 | |
| 25 | G_BEGIN_DECLScxx . . $ `<external>/12741050725406041920/gmacros.h:947:9`! |
| 26 | |
| 27 | #define GTK_TYPE_EXPRESSIONcxx . . $ `gtk/gtkexpression.h:27:9`! (gtk_expression_get_type ()) |
| 28 | #define GTK_TYPE_EXPRESSION_WATCHcxx . . $ `gtk/gtkexpression.h:28:9`! (gtk_expression_watch_get_type()) |
| 29 | |
| 30 | #define GTK_IS_EXPRESSIONcxx . . $ `gtk/gtkexpression.h:30:9`!(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_EXPRESSION)) |
| 31 | #define GTK_EXPRESSIONcxx . . $ `gtk/gtkexpression.h:31:9`!(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_EXPRESSION, GtkExpression)) |
| 32 | |
| 33 | typedef struct _GtkExpressioncxx . . $ _GtkExpression# GtkExpressioncxx . . $ GtkExpression#; |
| 34 | typedef struct _GtkExpressionWatchcxx . . $ _GtkExpressionWatch# GtkExpressionWatchcxx . . $ GtkExpressionWatch#; |
| 35 | |
| 36 | /** |
| 37 | * GtkExpressionNotify: |
| 38 | * @user_data: data passed to gtk_expression_watch() |
| 39 | * |
| 40 | * Callback called by gtk_expression_watch() when the |
| 41 | * expression value changes. |
| 42 | */ |
| 43 | typedef void (* GtkExpressionNotifycxx . . $ GtkExpressionNotify#) (gpointercxx . . $ gpointer# user_data); |
| 44 | |
| 45 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 46 | GTypecxx . . $ GType# gtk_expression_get_typecxx . . $ gtk_expression_get_type(f708dce9a8856c70). (void) G_GNUC_CONSTcxx . . $ `<external>/12741050725406041920/gmacros.h:640:9`!; |
| 47 | |
| 48 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 49 | GtkExpressioncxx . . $ GtkExpression# * gtk_expression_refcxx . . $ gtk_expression_ref(5c18c661b62d3779). (GtkExpressioncxx . . $ GtkExpression# *self); |
| 50 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 51 | void gtk_expression_unrefcxx . . $ gtk_expression_unref(fe7c01ec17da7ed1). (GtkExpressioncxx . . $ GtkExpression# *self); |
| 52 | G_DEFINE_AUTOPTR_CLEANUP_FUNCcxx . . $ GtkExpression_queueautoptr#(GtkExpression, gtk_expression_unref) |
| 53 | |
| 54 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 55 | GTypecxx . . $ GType# gtk_expression_get_value_typecxx . . $ gtk_expression_get_value_type(946983320ab000a9). (GtkExpressioncxx . . $ GtkExpression# *self); |
| 56 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 57 | gbooleancxx . . $ gboolean# gtk_expression_is_staticcxx . . $ gtk_expression_is_static(62d8f08f66757aa3). (GtkExpressioncxx . . $ GtkExpression# *self); |
| 58 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 59 | gbooleancxx . . $ gboolean# gtk_expression_evaluatecxx . . $ gtk_expression_evaluate(79db7ce165a3e6bb). (GtkExpressioncxx . . $ GtkExpression# *self, |
| 60 | gpointercxx . . $ gpointer# this_, |
| 61 | GValuecxx . . $ GValue# *value); |
| 62 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 63 | GtkExpressionWatchcxx . . $ GtkExpressionWatch# * gtk_expression_watchcxx . . $ gtk_expression_watch(31e856e9e2247fff). (GtkExpressioncxx . . $ GtkExpression# *self, |
| 64 | gpointercxx . . $ gpointer# this_, |
| 65 | GtkExpressionNotifycxx . . $ GtkExpressionNotify# notify, |
| 66 | gpointercxx . . $ gpointer# user_data, |
| 67 | GDestroyNotifycxx . . $ GDestroyNotify# user_destroy); |
| 68 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 69 | GtkExpressionWatchcxx . . $ GtkExpressionWatch# * gtk_expression_bindcxx . . $ gtk_expression_bind(2a09057e86dde455). (GtkExpressioncxx . . $ GtkExpression# *self, |
| 70 | gpointercxx . . $ gpointer# target, |
| 71 | const char * property, |
| 72 | gpointercxx . . $ gpointer# this_); |
| 73 | |
| 74 | GDK_AVAILABLE_IN_4_2cxx . . $ `build/gdk/version/gdk-visibility.h:97:9`! |
| 75 | GTypecxx . . $ GType# gtk_expression_watch_get_typecxx . . $ gtk_expression_watch_get_type(f708dce9a8856c70). (void) G_GNUC_CONSTcxx . . $ `<external>/12741050725406041920/gmacros.h:640:9`!; |
| 76 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 77 | GtkExpressionWatchcxx . . $ GtkExpressionWatch# * gtk_expression_watch_refcxx . . $ gtk_expression_watch_ref(b2d9bdaca1d1b499). (GtkExpressionWatchcxx . . $ GtkExpressionWatch# *watch); |
| 78 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 79 | void gtk_expression_watch_unrefcxx . . $ gtk_expression_watch_unref(5d7a9a7ad716289e). (GtkExpressionWatchcxx . . $ GtkExpressionWatch# *watch); |
| 80 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 81 | gbooleancxx . . $ gboolean# gtk_expression_watch_evaluatecxx . . $ gtk_expression_watch_evaluate(f765141a17a53d24). (GtkExpressionWatchcxx . . $ GtkExpressionWatch# *watch, |
| 82 | GValuecxx . . $ GValue# *value); |
| 83 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 84 | void gtk_expression_watch_unwatchcxx . . $ gtk_expression_watch_unwatch(5d7a9a7ad716289e). (GtkExpressionWatchcxx . . $ GtkExpressionWatch# *watch); |
| 85 | |
| 86 | #define GTK_TYPE_PROPERTY_EXPRESSIONcxx . . $ `gtk/gtkexpression.h:86:9`! (gtk_property_expression_get_type()) |
| 87 | typedef struct _GtkPropertyExpressioncxx . . $ _GtkPropertyExpression# GtkPropertyExpressioncxx . . $ GtkPropertyExpression#; |
| 88 | |
| 89 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 90 | GTypecxx . . $ GType# gtk_property_expression_get_typecxx . . $ gtk_property_expression_get_type(f708dce9a8856c70). (void) G_GNUC_CONSTcxx . . $ `<external>/12741050725406041920/gmacros.h:640:9`!; |
| 91 | |
| 92 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 93 | GtkExpressioncxx . . $ GtkExpression# * gtk_property_expression_newcxx . . $ gtk_property_expression_new(d6719bc77753bae2). (GTypecxx . . $ GType# this_type, |
| 94 | GtkExpressioncxx . . $ GtkExpression# *expression, |
| 95 | const char *property_name); |
| 96 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 97 | GtkExpressioncxx . . $ GtkExpression# * gtk_property_expression_new_for_pspeccxx . . $ gtk_property_expression_new_for_pspec(dee6222bc920286d). (GtkExpressioncxx . . $ GtkExpression# *expression, |
| 98 | GParamSpeccxx . . $ GParamSpec# *pspec); |
| 99 | |
| 100 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 101 | GtkExpressioncxx . . $ GtkExpression# * gtk_property_expression_get_expressioncxx . . $ gtk_property_expression_get_expression(5c18c661b62d3779). (GtkExpressioncxx . . $ GtkExpression# *expression); |
| 102 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 103 | GParamSpeccxx . . $ GParamSpec# * gtk_property_expression_get_pspeccxx . . $ gtk_property_expression_get_pspec(ba83fc285f518b73). (GtkExpressioncxx . . $ GtkExpression# *expression); |
| 104 | |
| 105 | #define GTK_TYPE_CONSTANT_EXPRESSIONcxx . . $ `gtk/gtkexpression.h:105:9`! (gtk_constant_expression_get_type()) |
| 106 | typedef struct _GtkConstantExpressioncxx . . $ _GtkConstantExpression# GtkConstantExpressioncxx . . $ GtkConstantExpression#; |
| 107 | |
| 108 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 109 | GTypecxx . . $ GType# gtk_constant_expression_get_typecxx . . $ gtk_constant_expression_get_type(f708dce9a8856c70). (void) G_GNUC_CONSTcxx . . $ `<external>/12741050725406041920/gmacros.h:640:9`!; |
| 110 | |
| 111 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 112 | GtkExpressioncxx . . $ GtkExpression# * gtk_constant_expression_newcxx . . $ gtk_constant_expression_new(602f5f29ac990fe0). (GTypecxx . . $ GType# value_type, |
| 113 | ...); |
| 114 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 115 | GtkExpressioncxx . . $ GtkExpression# * gtk_constant_expression_new_for_valuecxx . . $ gtk_constant_expression_new_for_value(af5957a86253b693). (const GValuecxx . . $ GValue# *value); |
| 116 | |
| 117 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 118 | const GValuecxx . . $ GValue# * gtk_constant_expression_get_valuecxx . . $ gtk_constant_expression_get_value(ea4bb707dc88a1c7). (GtkExpressioncxx . . $ GtkExpression# *expression); |
| 119 | |
| 120 | #define GTK_TYPE_OBJECT_EXPRESSIONcxx . . $ `gtk/gtkexpression.h:120:9`! (gtk_object_expression_get_type()) |
| 121 | typedef struct _GtkObjectExpressioncxx . . $ _GtkObjectExpression# GtkObjectExpressioncxx . . $ GtkObjectExpression#; |
| 122 | |
| 123 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 124 | GTypecxx . . $ GType# gtk_object_expression_get_typecxx . . $ gtk_object_expression_get_type(f708dce9a8856c70). (void) G_GNUC_CONSTcxx . . $ `<external>/12741050725406041920/gmacros.h:640:9`!; |
| 125 | |
| 126 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 127 | GtkExpressioncxx . . $ GtkExpression# * gtk_object_expression_newcxx . . $ gtk_object_expression_new(4baeeee38d9cbbf1). (GObjectcxx . . $ GObject# *object); |
| 128 | |
| 129 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 130 | GObjectcxx . . $ GObject# * gtk_object_expression_get_objectcxx . . $ gtk_object_expression_get_object(54e324d815f4e2ed). (GtkExpressioncxx . . $ GtkExpression# *expression); |
| 131 | |
| 132 | #define GTK_TYPE_CLOSURE_EXPRESSIONcxx . . $ `gtk/gtkexpression.h:132:9`! (gtk_closure_expression_get_type()) |
| 133 | typedef struct _GtkClosureExpressioncxx . . $ _GtkClosureExpression# GtkClosureExpressioncxx . . $ GtkClosureExpression#; |
| 134 | |
| 135 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 136 | GTypecxx . . $ GType# gtk_closure_expression_get_typecxx . . $ gtk_closure_expression_get_type(f708dce9a8856c70). (void) G_GNUC_CONSTcxx . . $ `<external>/12741050725406041920/gmacros.h:640:9`!; |
| 137 | |
| 138 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 139 | GtkExpressioncxx . . $ GtkExpression# * gtk_closure_expression_newcxx . . $ gtk_closure_expression_new(7af53348766e3f7c). (GTypecxx . . $ GType# value_type, |
| 140 | GClosurecxx . . $ GClosure# *closure, |
| 141 | guintcxx . . $ guint# n_params, |
| 142 | GtkExpressioncxx . . $ GtkExpression# **params); |
| 143 | |
| 144 | #define GTK_TYPE_CCLOSURE_EXPRESSIONcxx . . $ `gtk/gtkexpression.h:144:9`! (gtk_cclosure_expression_get_type()) |
| 145 | typedef struct _GtkCClosureExpressioncxx . . $ _GtkCClosureExpression# GtkCClosureExpressioncxx . . $ GtkCClosureExpression#; |
| 146 | |
| 147 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 148 | GTypecxx . . $ GType# gtk_cclosure_expression_get_typecxx . . $ gtk_cclosure_expression_get_type(f708dce9a8856c70). (void) G_GNUC_CONSTcxx . . $ `<external>/12741050725406041920/gmacros.h:640:9`!; |
| 149 | |
| 150 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 151 | GtkExpressioncxx . . $ GtkExpression# * gtk_cclosure_expression_newcxx . . $ gtk_cclosure_expression_new(243abf66fba4de24). (GTypecxx . . $ GType# value_type, |
| 152 | GClosureMarshalcxx . . $ GClosureMarshal# marshal, |
| 153 | guintcxx . . $ guint# n_params, |
| 154 | GtkExpressioncxx . . $ GtkExpression# **params, |
| 155 | GCallbackcxx . . $ GCallback# callback_func, |
| 156 | gpointercxx . . $ gpointer# user_data, |
| 157 | GClosureNotifycxx . . $ GClosureNotify# user_destroy); |
| 158 | |
| 159 | #define GTK_TYPE_TRY_EXPRESSIONcxx . . $ `gtk/gtkexpression.h:159:9`! (gtk_try_expression_get_type()) |
| 160 | typedef struct _GtkTryExpressioncxx . . $ _GtkTryExpression# GtkTryExpressioncxx . . $ GtkTryExpression#; |
| 161 | |
| 162 | GDK_AVAILABLE_IN_4_22cxx . . $ `build/gdk/version/gdk-visibility.h:437:9`! |
| 163 | GTypecxx . . $ GType# gtk_try_expression_get_typecxx . . $ gtk_try_expression_get_type(f708dce9a8856c70). (void) G_GNUC_CONSTcxx . . $ `<external>/12741050725406041920/gmacros.h:640:9`!; |
| 164 | |
| 165 | GDK_AVAILABLE_IN_4_22cxx . . $ `build/gdk/version/gdk-visibility.h:437:9`! |
| 166 | GtkExpressioncxx . . $ GtkExpression# * gtk_try_expression_newcxx . . $ gtk_try_expression_new(2d380b206dbd520c). (guintcxx . . $ guint# n_expressions, |
| 167 | GtkExpressioncxx . . $ GtkExpression# **expressions); |
| 168 | |
| 169 | /* GObject integration, so we can use GtkBuilder */ |
| 170 | |
| 171 | /** |
| 172 | * GTK_VALUE_HOLDS_EXPRESSION: |
| 173 | * @value: a `GValue` |
| 174 | * |
| 175 | * Evaluates to true if @value was initialized with `GTK_TYPE_EXPRESSION` |
| 176 | */ |
| 177 | #define GTK_VALUE_HOLDS_EXPRESSIONcxx . . $ `gtk/gtkexpression.h:177:9`!(value) (G_VALUE_HOLDS ((value), GTK_TYPE_EXPRESSION)) |
| 178 | |
| 179 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 180 | void gtk_value_set_expressioncxx . . $ gtk_value_set_expression(1b6b53eb803c00ab). (GValuecxx . . $ GValue# *value, |
| 181 | GtkExpressioncxx . . $ GtkExpression# *expression); |
| 182 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 183 | void gtk_value_take_expressioncxx . . $ gtk_value_take_expression(1b6b53eb803c00ab). (GValuecxx . . $ GValue# *value, |
| 184 | GtkExpressioncxx . . $ GtkExpression# *expression); |
| 185 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 186 | GtkExpressioncxx . . $ GtkExpression# * gtk_value_get_expressioncxx . . $ gtk_value_get_expression(af5957a86253b693). (const GValuecxx . . $ GValue# *value); |
| 187 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 188 | GtkExpressioncxx . . $ GtkExpression# * gtk_value_dup_expressioncxx . . $ gtk_value_dup_expression(af5957a86253b693). (const GValuecxx . . $ GValue# *value); |
| 189 | |
| 190 | #define GTK_TYPE_PARAM_SPEC_EXPRESSIONcxx . . $ `gtk/gtkexpression.h:190:9`! (gtk_param_expression_get_type()) |
| 191 | #define GTK_PARAM_SPEC_EXPRESSIONcxx . . $ `gtk/gtkexpression.h:191:9`!(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PARAM_SPEC_EXPRESSION, GtkParamSpecExpression)) |
| 192 | #define GTK_IS_PARAM_SPEC_EXPRESSIONcxx . . $ `gtk/gtkexpression.h:192:9`!(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PARAM_SPEC_EXPRESSION)) |
| 193 | |
| 194 | /** |
| 195 | * GtkParamSpecExpression: |
| 196 | * |
| 197 | * A `GParamSpec` for properties holding a `GtkExpression`. |
| 198 | */ |
| 199 | typedef structcxx . . $ $anonymous_type_60a0b49b75e8f4f_0# { |
| 200 | /*< private >*/ |
| 201 | GParamSpeccxx . . $ GParamSpec# parent_instancecxx . . $ $anonymous_type_60a0b49b75e8f4f_0#parent_instance.; |
| 202 | } GtkParamSpecExpressioncxx . . $ GtkParamSpecExpression#; |
| 203 | |
| 204 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 205 | GTypecxx . . $ GType# gtk_param_expression_get_typecxx . . $ gtk_param_expression_get_type(f708dce9a8856c70). (void) G_GNUC_CONSTcxx . . $ `<external>/12741050725406041920/gmacros.h:640:9`!; |
| 206 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 207 | GParamSpeccxx . . $ GParamSpec# * gtk_param_spec_expressioncxx . . $ gtk_param_spec_expression(62b842d07fa2276c). (const char *name, |
| 208 | const char *nick, |
| 209 | const char *blurb, |
| 210 | GParamFlagscxx . . $ GParamFlags# flags); |
| 211 | |
| 212 | G_END_DECLScxx . . $ `<external>/12741050725406041920/gmacros.h:948:9`! |
| 213 |