1 /* $Id$ */
2 /* Copyright (c) 2012 Pierre Pronchery <khorben@defora.org> */
3 /* This file is part of DeforaOS Desktop Browser */
4 /* Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions are
6  * met:
7  *
8  * 1. Redistributions of source code must retain the above copyright notice,
9  *    this list of conditions and the following disclaimer.
10  *
11  * 2. Redistributions in binary form must reproduce the above copyright notice,
12  *    this list of conditions and the following disclaimer in the documentation
13  *    and/or other materials provided with the distribution.
14  *
15  * 3. Neither the name of the authors nor the names of the contributors may be
16  *    used to endorse or promote products derived from this software without
17  *    specific prior written permission.
18  *
19  * THIS SOFTWARE IS PROVIDED BY ITS AUTHORS AND CONTRIBUTORS "AS IS" AND ANY
20  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
21  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22  * DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR ANY
23  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
24  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
25  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
26  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
29 
30 
31 
32 #ifndef DESKTOP_BROWSER_DESKTOP_H
33 # define DESKTOP_BROWSER_DESKTOP_H
34 
35 # include <gtk/gtk.h>
36 # include <Desktop.h>
37 
38 
39 /* Desktop */
40 /* public */
41 /* types */
42 typedef enum _DesktopAlignment
43 {
44 	DESKTOP_ALIGNMENT_VERTICAL = 0,
45 	DESKTOP_ALIGNMENT_HORIZONTAL
46 } DesktopAlignment;
47 
48 typedef enum _DesktopIcons
49 {
50 	DESKTOP_ICONS_NONE = 0,
51 	DESKTOP_ICONS_APPLICATIONS,
52 	DESKTOP_ICONS_CATEGORIES,
53 	DESKTOP_ICONS_FILES,
54 	DESKTOP_ICONS_HOMESCREEN
55 } DesktopIcons;
56 # define DESKTOP_ICONS_LAST DESKTOP_ICONS_HOMESCREEN
57 # define DESKTOP_ICONS_COUNT (DESKTOP_ICONS_LAST + 1)
58 
59 typedef enum _DesktopLayout
60 {
61 	DESKTOP_LAYOUT_NORMAL = 0,
62 	DESKTOP_LAYOUT_LANDSCAPE,
63 	DESKTOP_LAYOUT_PORTRAIT,
64 	DESKTOP_LAYOUT_ROTATE,
65 	DESKTOP_LAYOUT_TOGGLE
66 } DesktopLayout;
67 
68 typedef enum _DesktopMessage
69 {
70 	DESKTOP_MESSAGE_SET_ALIGNMENT = 0,
71 	DESKTOP_MESSAGE_SET_ICONS,
72 	DESKTOP_MESSAGE_SET_LAYOUT,
73 	DESKTOP_MESSAGE_SHOW
74 } DesktopMessage;
75 
76 typedef enum _DesktopShow
77 {
78 	DESKTOP_SHOW_SETTINGS = 0
79 } DesktopMessageShow;
80 
81 
82 /* constants */
83 # define DESKTOP_CLIENT_MESSAGE	"DEFORAOS_DESKTOP_DESKTOP_CLIENT"
84 
85 #endif /* !DESKTOP_BROWSER_DESKTOP_H */
86