1 | /* gtkconstrainttypesprivate.h: Private types for the constraint solver |
2 | * Copyright 2019 GNOME Foundation |
3 | * |
4 | * SPDX-License-Identifier: LGPL-2.1-or-later |
5 | * |
6 | * This library is free software; you can redistribute it and/or |
7 | * modify it under the terms of the GNU Lesser General Public |
8 | * License as published by the Free Software Foundation; either |
9 | * version 2.1 of the License, or (at your option) any later version. |
10 | * |
11 | * This library is distributed in the hope that it will be useful, |
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
14 | * Lesser General Public License for more details. |
15 | * |
16 | * You should have received a copy of the GNU Lesser General Public |
17 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. |
18 | * |
19 | * Author: Emmanuele Bassi |
20 | */ |
21 | |
22 | #pragma once |
23 | |
24 | #include <gtk/gtktypes.h> |
25 | #include <gtk/gtkenums.h> |
26 | |
27 | G_BEGIN_DECLS |
28 | |
29 | typedef struct _GtkConstraintVariable GtkConstraintVariable; |
30 | typedef struct _GtkConstraintExpression GtkConstraintExpression; |
31 | typedef struct _GtkConstraintExpressionBuilder GtkConstraintExpressionBuilder; |
32 | |
33 | /*< private > |
34 | * GtkConstraintRef: |
35 | * |
36 | * A reference to a constraint stored inside the solver; while `GtkConstraint` |
37 | * represent the public API, a `GtkConstraintRef` represents data stored inside |
38 | * the solver. A `GtkConstraintRef` is completely opaque, and should only be |
39 | * used to remove a constraint from the solver. |
40 | */ |
41 | typedef struct _GtkConstraintRef GtkConstraintRef; |
42 | |
43 | /*< private > |
44 | * GtkConstraintSolver: |
45 | * |
46 | * A simplex solver using the Cassowary constraint solving algorithm. |
47 | */ |
48 | typedef struct _GtkConstraintSolver GtkConstraintSolver; |
49 | |
50 | G_END_DECLS |
51 | |