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_H__
20#define __GDK_TOPLEVEL_SIZE_H__
21
22#if !defined(__GDK_H_INSIDE__) && !defined(GTK_COMPILATION)
23#error "Only <gdk/gdk.h> can be included directly."
24#endif
25
26#include <gdk/gdktypes.h>
27#include <gdk/gdkversionmacros.h>
28
29G_BEGIN_DECLS
30
31typedef struct _GdkToplevelSize GdkToplevelSize;
32
33#define GDK_TYPE_TOPLEVEL_SIZE (gdk_toplevel_size_get_type ())
34
35GDK_AVAILABLE_IN_ALL
36GType gdk_toplevel_size_get_type (void);
37
38GDK_AVAILABLE_IN_ALL
39void gdk_toplevel_size_get_bounds (GdkToplevelSize *size,
40 int *bounds_width,
41 int *bounds_height);
42
43GDK_AVAILABLE_IN_ALL
44void gdk_toplevel_size_set_size (GdkToplevelSize *size,
45 int width,
46 int height);
47GDK_AVAILABLE_IN_ALL
48void gdk_toplevel_size_set_min_size (GdkToplevelSize *size,
49 int min_width,
50 int min_height);
51
52GDK_AVAILABLE_IN_ALL
53void gdk_toplevel_size_set_shadow_width (GdkToplevelSize *size,
54 int left,
55 int right,
56 int top,
57 int bottom);
58
59G_END_DECLS
60
61#endif /* __GDK_TOPLEVEL_SIZE_H__ */
62

source code of gtk/gdk/gdktoplevelsize.h