1/* GObject - GLib Type, Object, Parameter and Signal Library
2 *
3 * Copyright (C) 2015-2022 Christian Hergert <christian@hergert.me>
4 * Copyright (C) 2015 Garrett Regier <garrettregier@gmail.com>
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General
17 * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
18 *
19 * SPDX-License-Identifier: LGPL-2.1-or-later
20 */
21
22#ifndef __G_BINDING_GROUP_H__
23#define __G_BINDING_GROUP_H__
24
25#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
26#error "Only <glib-object.h> can be included directly."
27#endif
28
29#include <glib.h>
30#include <gobject/gobject.h>
31#include <gobject/gbinding.h>
32
33G_BEGIN_DECLS
34
35#define G_BINDING_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), G_TYPE_BINDING_GROUP, GBindingGroup))
36#define G_IS_BINDING_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), G_TYPE_BINDING_GROUP))
37#define G_TYPE_BINDING_GROUP (g_binding_group_get_type())
38
39/**
40 * GBindingGroup:
41 *
42 * GBindingGroup is an opaque structure whose members
43 * cannot be accessed directly.
44 *
45 * Since: 2.72
46 */
47typedef struct _GBindingGroup GBindingGroup;
48
49GLIB_AVAILABLE_IN_2_72
50GType g_binding_group_get_type (void) G_GNUC_CONST;
51GLIB_AVAILABLE_IN_2_72
52GBindingGroup *g_binding_group_new (void);
53GLIB_AVAILABLE_IN_2_72
54gpointer g_binding_group_dup_source (GBindingGroup *self);
55GLIB_AVAILABLE_IN_2_72
56void g_binding_group_set_source (GBindingGroup *self,
57 gpointer source);
58GLIB_AVAILABLE_IN_2_72
59void g_binding_group_bind (GBindingGroup *self,
60 const gchar *source_property,
61 gpointer target,
62 const gchar *target_property,
63 GBindingFlags flags);
64GLIB_AVAILABLE_IN_2_72
65void g_binding_group_bind_full (GBindingGroup *self,
66 const gchar *source_property,
67 gpointer target,
68 const gchar *target_property,
69 GBindingFlags flags,
70 GBindingTransformFunc transform_to,
71 GBindingTransformFunc transform_from,
72 gpointer user_data,
73 GDestroyNotify user_data_destroy);
74GLIB_AVAILABLE_IN_2_72
75void g_binding_group_bind_with_closures (GBindingGroup *self,
76 const gchar *source_property,
77 gpointer target,
78 const gchar *target_property,
79 GBindingFlags flags,
80 GClosure *transform_to,
81 GClosure *transform_from);
82
83G_END_DECLS
84
85#endif /* __G_BINDING_GROUP_H__ */
86

source code of include/glib-2.0/gobject/gbindinggroup.h