summaryrefslogtreecommitdiff
path: root/src/daemon/stack.h
blob: 4159a9beffea3da3710c2a6d1e513d98baba5fdd (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
 *
 * Copyright (C) 2006 Christian Hammond <chipx86@chipx86.com>
 * Copyright (C) 2010 Red Hat, Inc.
 * Copyright (C) 2011 Perberos <perberos@gmail.com>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2, or (at your option)
 * any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301, USA.
 */

#ifndef _NOTIFY_STACK_H_
#define _NOTIFY_STACK_H_

#include <gtk/gtk.h>

#include "daemon.h"

typedef enum {
	NOTIFY_STACK_LOCATION_UNKNOWN = -1,
	NOTIFY_STACK_LOCATION_TOP_LEFT,
	NOTIFY_STACK_LOCATION_TOP_RIGHT,
	NOTIFY_STACK_LOCATION_BOTTOM_LEFT,
	NOTIFY_STACK_LOCATION_BOTTOM_RIGHT,
	NOTIFY_STACK_LOCATION_DEFAULT = NOTIFY_STACK_LOCATION_BOTTOM_RIGHT
} NotifyStackLocation;

typedef struct _NotifyStack NotifyStack;

NotifyStack* notify_stack_new(NotifyDaemon* daemon, GdkScreen* screen, GdkMonitor *monitor, NotifyStackLocation stack_location);
void notify_stack_destroy(NotifyStack* stack);

void notify_stack_set_location(NotifyStack* stack, NotifyStackLocation location);
void notify_stack_add_window(NotifyStack* stack, GtkWindow* nw, gboolean new_notification);
void notify_stack_remove_window(NotifyStack* stack, GtkWindow* nw);
GList* notify_stack_get_windows(NotifyStack* stack);
void notify_stack_queue_update_position(NotifyStack* stack);

#endif /* _NOTIFY_STACK_H_ */