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_LAYOUT_H__ |
20 | #define __GDK_TOPLEVEL_LAYOUT_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/gdkmonitor.h> |
27 | #include <gdk/gdktypes.h> |
28 | #include <gdk/gdkversionmacros.h> |
29 | |
30 | G_BEGIN_DECLS |
31 | |
32 | typedef struct _GdkToplevelLayout GdkToplevelLayout; |
33 | |
34 | #define GDK_TYPE_TOPLEVEL_LAYOUT (gdk_toplevel_layout_get_type ()) |
35 | |
36 | GDK_AVAILABLE_IN_ALL |
37 | GType gdk_toplevel_layout_get_type (void); |
38 | |
39 | GDK_AVAILABLE_IN_ALL |
40 | GdkToplevelLayout * gdk_toplevel_layout_new (void); |
41 | |
42 | GDK_AVAILABLE_IN_ALL |
43 | GdkToplevelLayout * gdk_toplevel_layout_ref (GdkToplevelLayout *layout); |
44 | |
45 | GDK_AVAILABLE_IN_ALL |
46 | void gdk_toplevel_layout_unref (GdkToplevelLayout *layout); |
47 | |
48 | GDK_AVAILABLE_IN_ALL |
49 | GdkToplevelLayout * gdk_toplevel_layout_copy (GdkToplevelLayout *layout); |
50 | |
51 | GDK_AVAILABLE_IN_ALL |
52 | gboolean gdk_toplevel_layout_equal (GdkToplevelLayout *layout, |
53 | GdkToplevelLayout *other); |
54 | |
55 | GDK_AVAILABLE_IN_ALL |
56 | void gdk_toplevel_layout_set_maximized (GdkToplevelLayout *layout, |
57 | gboolean maximized); |
58 | GDK_AVAILABLE_IN_ALL |
59 | void gdk_toplevel_layout_set_fullscreen (GdkToplevelLayout *layout, |
60 | gboolean fullscreen, |
61 | GdkMonitor *monitor); |
62 | |
63 | GDK_AVAILABLE_IN_ALL |
64 | gboolean gdk_toplevel_layout_get_maximized (GdkToplevelLayout *layout, |
65 | gboolean *maximized); |
66 | |
67 | GDK_AVAILABLE_IN_ALL |
68 | gboolean gdk_toplevel_layout_get_fullscreen (GdkToplevelLayout *layout, |
69 | gboolean *fullscreen); |
70 | |
71 | GDK_AVAILABLE_IN_ALL |
72 | GdkMonitor * gdk_toplevel_layout_get_fullscreen_monitor (GdkToplevelLayout *layout); |
73 | |
74 | GDK_AVAILABLE_IN_ALL |
75 | void gdk_toplevel_layout_set_resizable (GdkToplevelLayout *layout, |
76 | gboolean resizable); |
77 | |
78 | GDK_AVAILABLE_IN_ALL |
79 | gboolean gdk_toplevel_layout_get_resizable (GdkToplevelLayout *layout); |
80 | |
81 | G_END_DECLS |
82 | |
83 | #endif /* __GDK_TOPLEVEL_LAYOUT_H__ */ |
84 | |