Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 10:17:38

0001 /* GObject - GLib Type, Object, Parameter and Signal Library
0002  *
0003  * Copyright (C) 2015-2022 Christian Hergert <christian@hergert.me>
0004  * Copyright (C) 2015 Garrett Regier <garrettregier@gmail.com>
0005  *
0006  * This library is free software; you can redistribute it and/or
0007  * modify it under the terms of the GNU Lesser General Public
0008  * License as published by the Free Software Foundation; either
0009  * version 2.1 of the License, or (at your option) any later version.
0010  *
0011  * This library is distributed in the hope that it will be useful,
0012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0014  * Lesser General Public License for more details.
0015  *
0016  * You should have received a copy of the GNU Lesser General
0017  * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
0018  *
0019  * SPDX-License-Identifier: LGPL-2.1-or-later
0020  */
0021 
0022 #ifndef __G_BINDING_GROUP_H__
0023 #define __G_BINDING_GROUP_H__
0024 
0025 #if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
0026 #error "Only <glib-object.h> can be included directly."
0027 #endif
0028 
0029 #include <glib.h>
0030 #include <gobject/gobject.h>
0031 #include <gobject/gbinding.h>
0032 
0033 G_BEGIN_DECLS
0034 
0035 #define G_BINDING_GROUP(obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), G_TYPE_BINDING_GROUP, GBindingGroup))
0036 #define G_IS_BINDING_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), G_TYPE_BINDING_GROUP))
0037 #define G_TYPE_BINDING_GROUP    (g_binding_group_get_type())
0038 
0039 typedef struct _GBindingGroup GBindingGroup;
0040 
0041 GOBJECT_AVAILABLE_IN_2_72
0042 GType          g_binding_group_get_type           (void) G_GNUC_CONST;
0043 GOBJECT_AVAILABLE_IN_2_72
0044 GBindingGroup *g_binding_group_new                (void);
0045 GOBJECT_AVAILABLE_IN_2_72
0046 gpointer       g_binding_group_dup_source         (GBindingGroup         *self);
0047 GOBJECT_AVAILABLE_IN_2_72
0048 void           g_binding_group_set_source         (GBindingGroup         *self,
0049                                                    gpointer               source);
0050 GOBJECT_AVAILABLE_IN_2_72
0051 void           g_binding_group_bind               (GBindingGroup         *self,
0052                                                    const gchar           *source_property,
0053                                                    gpointer               target,
0054                                                    const gchar           *target_property,
0055                                                    GBindingFlags          flags);
0056 GOBJECT_AVAILABLE_IN_2_72
0057 void           g_binding_group_bind_full          (GBindingGroup         *self,
0058                                                    const gchar           *source_property,
0059                                                    gpointer               target,
0060                                                    const gchar           *target_property,
0061                                                    GBindingFlags          flags,
0062                                                    GBindingTransformFunc  transform_to,
0063                                                    GBindingTransformFunc  transform_from,
0064                                                    gpointer               user_data,
0065                                                    GDestroyNotify         user_data_destroy);
0066 GOBJECT_AVAILABLE_IN_2_72
0067 void           g_binding_group_bind_with_closures (GBindingGroup         *self,
0068                                                    const gchar           *source_property,
0069                                                    gpointer               target,
0070                                                    const gchar           *target_property,
0071                                                    GBindingFlags          flags,
0072                                                    GClosure              *transform_to,
0073                                                    GClosure              *transform_from);
0074 
0075 G_END_DECLS
0076 
0077 #endif /* __G_BINDING_GROUP_H__ */