aboutsummaryrefslogtreecommitdiff
path: root/src/window.h
blob: 9f3962c58def1199b09656b236c25765ecf47ce7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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__ */