summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-01-29 17:42:23 +0100
committerraveit65 <[email protected]>2021-03-01 13:55:09 +0100
commitbc5c7f0bc2db56fbc8475eab9b651b8a77effe91 (patch)
tree9f212308a42ecb5230a409364795cd4f598d80d0 /src/include
parent5b6170f917cdb1cbd3752c963a6ad4d2a58b35d8 (diff)
downloadmarco-bc5c7f0bc2db56fbc8475eab9b651b8a77effe91.tar.bz2
marco-bc5c7f0bc2db56fbc8475eab9b651b8a77effe91.tar.xz
window: turn into a GObject
Diffstat (limited to 'src/include')
-rw-r--r--src/include/window.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/include/window.h b/src/include/window.h
index 0aa208e4..6dece7d3 100644
--- a/src/include/window.h
+++ b/src/include/window.h
@@ -23,12 +23,18 @@
#define META_WINDOW_H
#include <glib.h>
+#include <glib-object.h>
#include <cairo.h>
#include <X11/Xlib.h>
#include "boxes.h"
#include "types.h"
+G_BEGIN_DECLS
+
+#define META_TYPE_WINDOW meta_window_get_type ()
+G_DECLARE_FINAL_TYPE (MetaWindow, meta_window, META, WINDOW, GObject)
+
MetaFrame *meta_window_get_frame (MetaWindow *window);
gboolean meta_window_has_focus (MetaWindow *window);
gboolean meta_window_is_shaded (MetaWindow *window);
@@ -40,4 +46,6 @@ MetaWindow *meta_window_get_transient_for (MetaWindow *window);
gboolean meta_window_is_maximized (MetaWindow *window);
cairo_region_t *meta_window_get_frame_bounds (MetaWindow *window);
+G_END_DECLS
+
#endif