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 | |
26 | G_BEGIN_DECLS |
27 | |
28 | #define GTK_TYPE_CONSTRAINT_GUIDE (gtk_constraint_guide_get_type ()) |
29 | |
30 | GDK_AVAILABLE_IN_ALL |
31 | G_DECLARE_FINAL_TYPE (GtkConstraintGuide, gtk_constraint_guide, GTK, CONSTRAINT_GUIDE, GObject) |
32 | |
33 | GDK_AVAILABLE_IN_ALL |
34 | GtkConstraintGuide * gtk_constraint_guide_new (void); |
35 | |
36 | GDK_AVAILABLE_IN_ALL |
37 | void gtk_constraint_guide_set_min_size (GtkConstraintGuide *guide, |
38 | int width, |
39 | int height); |
40 | GDK_AVAILABLE_IN_ALL |
41 | void gtk_constraint_guide_get_min_size (GtkConstraintGuide *guide, |
42 | int *width, |
43 | int *height); |
44 | GDK_AVAILABLE_IN_ALL |
45 | void gtk_constraint_guide_set_nat_size (GtkConstraintGuide *guide, |
46 | int width, |
47 | int height); |
48 | GDK_AVAILABLE_IN_ALL |
49 | void gtk_constraint_guide_get_nat_size (GtkConstraintGuide *guide, |
50 | int *width, |
51 | int *height); |
52 | GDK_AVAILABLE_IN_ALL |
53 | void gtk_constraint_guide_set_max_size (GtkConstraintGuide *guide, |
54 | int width, |
55 | int height); |
56 | GDK_AVAILABLE_IN_ALL |
57 | void gtk_constraint_guide_get_max_size (GtkConstraintGuide *guide, |
58 | int *width, |
59 | int *height); |
60 | |
61 | GDK_AVAILABLE_IN_ALL |
62 | GtkConstraintStrength gtk_constraint_guide_get_strength (GtkConstraintGuide *guide); |
63 | GDK_AVAILABLE_IN_ALL |
64 | void gtk_constraint_guide_set_strength (GtkConstraintGuide *guide, |
65 | GtkConstraintStrength strength); |
66 | |
67 | GDK_AVAILABLE_IN_ALL |
68 | void gtk_constraint_guide_set_name (GtkConstraintGuide *guide, |
69 | const char *name); |
70 | GDK_AVAILABLE_IN_ALL |
71 | const char * gtk_constraint_guide_get_name (GtkConstraintGuide *guide); |
72 | |
73 | G_END_DECLS |
74 | |