aboutsummaryrefslogtreecommitdiff
path: root/src/window.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.h')
-rw-r--r--src/window.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/window.h b/src/window.h
new file mode 100644
index 0000000..9f3962c
--- /dev/null
+++ b/src/window.h
@@ -0,0 +1,24 @@
+/* See LICENSE file for copyright and license details. */
+
+#ifndef __CHERRY_WINDOW_H__
+#define __CHERRY_WINDOW_H__
+
+#include "dimension.h"
+
+typedef struct {
+ char *title;
+ CherryDimension *dimension;
+ int x, y;
+ int visible;
+
+ /* Xlib stuff */
+ Window window_handler;
+} CherryWindow;
+
+CherryWindow *cherry_window_new(void);
+void cherry_window_set_title(CherryWindow *, char *);
+void cherry_window_set_dimension(CherryWindow *, int, int);
+void cherry_window_set_position(CherryWindow *, int, int);
+void cherry_window_set_visible(CherryWindow *, int);
+
+#endif /* __CHERRY_WINDOW_H__ */