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_VIEW_TYPE (constraint_view_get_type ()) |
25 | |
26 | G_MODULE_EXPORT |
27 | G_DECLARE_FINAL_TYPE (ConstraintView, constraint_view, CONSTRAINT, VIEW, GtkWidget) |
28 | |
29 | ConstraintView * constraint_view_new (void); |
30 | |
31 | void constraint_view_add_child (ConstraintView *view, |
32 | const char *name); |
33 | void constraint_view_remove_child (ConstraintView *view, |
34 | GtkWidget *child); |
35 | void constraint_view_add_guide (ConstraintView *view, |
36 | GtkConstraintGuide *guide); |
37 | void constraint_view_remove_guide (ConstraintView *view, |
38 | GtkConstraintGuide *guide); |
39 | void constraint_view_guide_changed (ConstraintView *view, |
40 | GtkConstraintGuide *guide); |
41 | void constraint_view_add_constraint (ConstraintView *view, |
42 | GtkConstraint *constraint); |
43 | void constraint_view_remove_constraint (ConstraintView *view, |
44 | GtkConstraint *constraint); |
45 | GListModel * constraint_view_get_model (ConstraintView *view); |
46 | |