1 | /* |
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 | * Authors: Matthias Clasen |
18 | */ |
19 | |
20 | #pragma once |
21 | |
22 | #include <gtk/gtk.h> |
23 | |
24 | #define CONSTRAINT_EDITOR_TYPE (constraint_editor_get_type ()) |
25 | |
26 | G_DECLARE_FINAL_TYPE (ConstraintEditor, constraint_editor, CONSTRAINT, EDITOR, GtkWidget) |
27 | |
28 | ConstraintEditor * constraint_editor_new (GListModel *model, |
29 | GtkConstraint *constraint); |
30 | |
31 | void constraint_editor_serialize_constraint (GString *str, |
32 | int indent, |
33 | GtkConstraint *constraint); |
34 | char *constraint_editor_constraint_to_string (GtkConstraint *constraint); |
35 | |