1 | /* GDK - The GIMP Drawing Kit |
2 | * Copyright (C) 2020 Red Hat |
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 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 | */ |
18 | |
19 | #ifndef __GDK_TOPLEVEL_SIZE_PRIVATE_H__ |
20 | #define __GDK_TOPLEVEL_SIZE_PRIVATE_H__ |
21 | |
22 | #include "gdktoplevelsize.h" |
23 | |
24 | struct _GdkToplevelSize |
25 | { |
26 | int bounds_width; |
27 | int bounds_height; |
28 | |
29 | int width; |
30 | int height; |
31 | int min_width; |
32 | int min_height; |
33 | |
34 | struct { |
35 | gboolean is_valid; |
36 | int left; |
37 | int right; |
38 | int top; |
39 | int bottom; |
40 | } shadow; |
41 | }; |
42 | |
43 | void gdk_toplevel_size_init (GdkToplevelSize *size, |
44 | int bounds_width, |
45 | int bounds_height); |
46 | |
47 | void gdk_toplevel_size_validate (GdkToplevelSize *size); |
48 | |
49 | #endif /* __GDK_TOPLEVEL_SIZE_PRIVATE_H__ */ |
50 | |