1/* gtkconstraintguide.h: Flexible space for constraints
2 * Copyright 2019 Red Hat, Inc.
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: Matthias Clasen
18 */
19
20#pragma once
21
22#include <gtk/gtktypes.h>
23#include <gtk/gtkenums.h>
24#include <gtk/gtktypebuiltins.h>
25
26G_BEGIN_DECLS
27
28#define GTK_TYPE_CONSTRAINT_GUIDE (gtk_constraint_guide_get_type ())
29
30GDK_AVAILABLE_IN_ALL
31G_DECLARE_FINAL_TYPE (GtkConstraintGuide, gtk_constraint_guide, GTK, CONSTRAINT_GUIDE, GObject)
32
33GDK_AVAILABLE_IN_ALL
34GtkConstraintGuide * gtk_constraint_guide_new (void);
35
36GDK_AVAILABLE_IN_ALL
37void gtk_constraint_guide_set_min_size (GtkConstraintGuide *guide,
38 int width,
39 int height);
40GDK_AVAILABLE_IN_ALL
41void gtk_constraint_guide_get_min_size (GtkConstraintGuide *guide,
42 int *width,
43 int *height);
44GDK_AVAILABLE_IN_ALL
45void gtk_constraint_guide_set_nat_size (GtkConstraintGuide *guide,
46 int width,
47 int height);
48GDK_AVAILABLE_IN_ALL
49void gtk_constraint_guide_get_nat_size (GtkConstraintGuide *guide,
50 int *width,
51 int *height);
52GDK_AVAILABLE_IN_ALL
53void gtk_constraint_guide_set_max_size (GtkConstraintGuide *guide,
54 int width,
55 int height);
56GDK_AVAILABLE_IN_ALL
57void gtk_constraint_guide_get_max_size (GtkConstraintGuide *guide,
58 int *width,
59 int *height);
60
61GDK_AVAILABLE_IN_ALL
62GtkConstraintStrength gtk_constraint_guide_get_strength (GtkConstraintGuide *guide);
63GDK_AVAILABLE_IN_ALL
64void gtk_constraint_guide_set_strength (GtkConstraintGuide *guide,
65 GtkConstraintStrength strength);
66
67GDK_AVAILABLE_IN_ALL
68void gtk_constraint_guide_set_name (GtkConstraintGuide *guide,
69 const char *name);
70GDK_AVAILABLE_IN_ALL
71const char * gtk_constraint_guide_get_name (GtkConstraintGuide *guide);
72
73G_END_DECLS
74

source code of gtk/gtk/gtkconstraintguide.h