aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-glib/types.h
blob: 03ae8010eac5adee0d62ba2ec58f45df31eec115 (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/*
Types that are used in several objects.

Copyright 2011 Canonical Ltd.

Authors:
    Ted Gould <ted@canonical.com>

This program is free software: you can redistribute it and/or modify it 
under the terms of either or both of the following licenses:

1) the GNU Lesser General Public License version 3, as published by the 
Free Software Foundation; and/or
2) the GNU Lesser General Public License version 2.1, as published by 
the Free Software Foundation.

This program is distributed in the hope that it will be useful, but 
WITHOUT ANY WARRANTY; without even the implied warranties of 
MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR 
PURPOSE.  See the applicable version of the GNU Lesser General Public 
License for more details.

You should have received a copy of both the GNU Lesser General Public 
License version 3 and version 2.1 along with this program.  If not, see 
<http://www.gnu.org/licenses/>
*/

#ifndef __DBUSMENU_TYPES_H__
#define __DBUSMENU_TYPES_H__

#include <glib.h>

G_BEGIN_DECLS

/**
	DbusmenuTextDirection:
	@DBUSMENU_TEXT_DIRECTION_NONE: Unspecified text direction
	@DBUSMENU_TEXT_DIRECTION_LTR: Left-to-right text direction
	@DBUSMENU_TEXT_DIRECTION_RTL: Right-to-left text direction

	The direction of text that the strings that this server
	will be sending strings as.
*/
typedef enum { /*< prefix=DBUSMENU_TEXT_DIRECTION >*/
	DBUSMENU_TEXT_DIRECTION_NONE, /*< nick=none >*/
	DBUSMENU_TEXT_DIRECTION_LTR,  /*< nick=ltr  >*/
	DBUSMENU_TEXT_DIRECTION_RTL   /*< nick=rtl  >*/
} DbusmenuTextDirection;

/**
	DbusmenuStatus:
	@DBUSMENU_STATUS_NORMAL: Everything is normal
	@DBUSMENU_STATUS_NOTICE: The menus should be shown at a higher priority

	Tracks how the menus should be presented to the user.
*/
typedef enum { /*< prefix=DBUSMENU_STATUS >*/
	DBUSMENU_STATUS_NORMAL,   /*< nick=normal >*/
	DBUSMENU_STATUS_NOTICE    /*< nick=notice >*/
} DbusmenuStatus;

/**
	SECTION:types
	@short_description: Types that are used by both client and
		server.
	@stability: Unstable
	@include: libdbusmenu-glib/types.h

	Enums that are used to describe states of the server across the
	bus.  They are sent over dbus using their nicks but then turned
	back into enums by the client.
*/
G_END_DECLS

#endif /* __DBUSMENU_TYPES_H__ */