Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gtkconstraintlayout.h
Go to the documentation of this file.
1/* gtkconstraintlayout.h: Layout manager using constraints
2 * Copyright 2019 GNOME Foundation
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 * Author: Emmanuele Bassi
18 */
19#pragma once
20
22#include <gtk/gtkconstraint.h>
24
26
27#define GTK_TYPE_CONSTRAINT_LAYOUT (gtk_constraint_layout_get_type ())
28#define GTK_TYPE_CONSTRAINT_LAYOUT_CHILD (gtk_constraint_layout_child_get_type ())
29#define GTK_CONSTRAINT_VFL_PARSER_ERROR (gtk_constraint_vfl_parser_error_quark ())
30
32G_DECLARE_FINAL_TYPE (GtkConstraintLayoutChild, gtk_constraint_layout_child, GTK, CONSTRAINT_LAYOUT_CHILD, GtkLayoutChild)
33
35G_DECLARE_FINAL_TYPE (GtkConstraintLayout, gtk_constraint_layout, GTK, CONSTRAINT_LAYOUT, GtkLayoutManager)
36
39
42
44void gtk_constraint_layout_add_constraint (GtkConstraintLayout *layout,
45 GtkConstraint *constraint);
47void gtk_constraint_layout_remove_constraint (GtkConstraintLayout *layout,
48 GtkConstraint *constraint);
49
51void gtk_constraint_layout_add_guide (GtkConstraintLayout *layout,
52 GtkConstraintGuide *guide);
54void gtk_constraint_layout_remove_guide (GtkConstraintLayout *layout,
55 GtkConstraintGuide *guide);
57void gtk_constraint_layout_remove_all_constraints (GtkConstraintLayout *layout);
58
61 const char * const lines[],
62 gsize n_lines,
63 int hspacing,
64 int vspacing,
65 GError **error,
66 const char *first_view,
70 const char * const lines[],
71 gsize n_lines,
72 int hspacing,
73 int vspacing,
74 GHashTable *views,
75 GError **error);
76
78GListModel * gtk_constraint_layout_observe_constraints (GtkConstraintLayout *layout);
80GListModel * gtk_constraint_layout_observe_guides (GtkConstraintLayout *layout);
81
#define GDK_AVAILABLE_IN_ALL
typedefG_BEGIN_DECLS struct _GHashTable GHashTable
Definition ghash.h:40
unsigned long gsize
Definition glibconfig.h:83
typedefG_BEGIN_DECLS struct _GList GList
Definition glist.h:39
#define G_END_DECLS
Definition gmacros.h:910
#define G_GNUC_NULL_TERMINATED
Definition gmacros.h:326
#define G_BEGIN_DECLS
Definition gmacros.h:909
G_BEGIN_DECLS typedef guint32 GQuark
Definition gquark.h:38
GDK_AVAILABLE_IN_ALL GListModel * gtk_constraint_layout_observe_constraints(GtkConstraintLayout *layout)
GDK_AVAILABLE_IN_ALL void gtk_constraint_layout_remove_all_constraints(GtkConstraintLayout *layout)
GDK_AVAILABLE_IN_ALL void gtk_constraint_layout_remove_constraint(GtkConstraintLayout *layout, GtkConstraint *constraint)
GDK_AVAILABLE_IN_ALL GListModel * gtk_constraint_layout_observe_guides(GtkConstraintLayout *layout)
GDK_AVAILABLE_IN_ALL void gtk_constraint_layout_add_constraint(GtkConstraintLayout *layout, GtkConstraint *constraint)
GDK_AVAILABLE_IN_ALL void gtk_constraint_layout_add_guide(GtkConstraintLayout *layout, GtkConstraintGuide *guide)
GDK_AVAILABLE_IN_ALL void gtk_constraint_layout_remove_guide(GtkConstraintLayout *layout, GtkConstraintGuide *guide)
GDK_AVAILABLE_IN_ALL GList * gtk_constraint_layout_add_constraints_from_description(GtkConstraintLayout *layout, const char *const lines[], gsize n_lines, int hspacing, int vspacing, GError **error, const char *first_view,...) G_GNUC_NULL_TERMINATED
GDK_AVAILABLE_IN_ALL GtkLayoutManager * gtk_constraint_layout_new(void)
GDK_AVAILABLE_IN_ALL GList * gtk_constraint_layout_add_constraints_from_descriptionv(GtkConstraintLayout *layout, const char *const lines[], gsize n_lines, int hspacing, int vspacing, GHashTable *views, GError **error)
GDK_AVAILABLE_IN_ALL GDK_AVAILABLE_IN_ALL GDK_AVAILABLE_IN_ALL GQuark gtk_constraint_vfl_parser_error_quark(void)
struct _GtkLayoutManager GtkLayoutManager
Definition gtktypes.h:49
#define G_DECLARE_FINAL_TYPE(ModuleObjName, module_obj_name, MODULE, OBJ_NAME, ParentName)
Definition gtype.h:1602
static void error(LoadState *S, const char *why)