diff options
author | Perberos <[email protected]> | 2011-12-01 22:56:10 -0300 |
---|---|---|
committer | Perberos <[email protected]> | 2011-12-01 22:56:10 -0300 |
commit | c51ef797a707f4e2c6f9688d4378f2b0e9898a66 (patch) | |
tree | 019ae92bb53c19b30077545cb14743cbd1b57aef /mate-panel/panel-enums.h | |
download | mate-panel-c51ef797a707f4e2c6f9688d4378f2b0e9898a66.tar.bz2 mate-panel-c51ef797a707f4e2c6f9688d4378f2b0e9898a66.tar.xz |
moving from https://github.com/perberos/mate-desktop-environment
Diffstat (limited to 'mate-panel/panel-enums.h')
-rw-r--r-- | mate-panel/panel-enums.h | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/mate-panel/panel-enums.h b/mate-panel/panel-enums.h new file mode 100644 index 00000000..b9418fbb --- /dev/null +++ b/mate-panel/panel-enums.h @@ -0,0 +1,110 @@ +/* + * panel-enums.h: + * + * Copyright (C) 2003 Sun Microsystems, Inc. + * + * 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 of the + * License, 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., 59 Temple Place - Suite 330, Boston, MA + * 02111-1307, USA. + + * Authors: + * Mark McLoughlin <[email protected]> + */ + +#ifndef __PANEL_ENUMS_H__ +#define __PANEL_ENUMS_H__ + +#include <glib.h> + +#ifdef __cplusplus +extern "C" { +#endif + +typedef enum { + PANEL_ORIENTATION_TOP = 1 << 0, + PANEL_ORIENTATION_RIGHT = 1 << 1, + PANEL_ORIENTATION_BOTTOM = 1 << 2, + PANEL_ORIENTATION_LEFT = 1 << 3 +} PanelOrientation; + +#define PANEL_HORIZONTAL_MASK (PANEL_ORIENTATION_TOP | PANEL_ORIENTATION_BOTTOM) +#define PANEL_VERTICAL_MASK (PANEL_ORIENTATION_LEFT | PANEL_ORIENTATION_RIGHT) + +typedef enum { + PANEL_EDGE_NONE = 0, + PANEL_EDGE_TOP = 1 << 0, + PANEL_EDGE_BOTTOM = 1 << 1, + PANEL_EDGE_LEFT = 1 << 2, + PANEL_EDGE_RIGHT = 1 << 3 +} PanelFrameEdge; + +typedef enum { + PANEL_STATE_NORMAL = 0, + PANEL_STATE_AUTO_HIDDEN = 1, + PANEL_STATE_HIDDEN_UP = 2, + PANEL_STATE_HIDDEN_DOWN = 3, + PANEL_STATE_HIDDEN_LEFT = 4, + PANEL_STATE_HIDDEN_RIGHT = 5 +} PanelState; + +typedef enum { + PANEL_ANIMATION_SLOW = 0, + PANEL_ANIMATION_MEDIUM = 1, + PANEL_ANIMATION_FAST = 2 +} PanelAnimationSpeed; + +typedef enum { + PANEL_BACK_NONE = 0, + PANEL_BACK_COLOR = 1, + PANEL_BACK_IMAGE = 2 +} PanelBackgroundType; + +typedef enum { + PANEL_MATECONF_TOPLEVELS, + PANEL_MATECONF_OBJECTS, + PANEL_MATECONF_APPLETS +} PanelMateConfKeyType; + +typedef enum { + PANEL_OBJECT_DRAWER, + PANEL_OBJECT_MENU, + PANEL_OBJECT_LAUNCHER, + PANEL_OBJECT_APPLET, + PANEL_OBJECT_ACTION, + PANEL_OBJECT_MENU_BAR, + PANEL_OBJECT_SEPARATOR, + /* The following two are for backwards compatibility with 2.0.x */ + PANEL_OBJECT_LOGOUT, + PANEL_OBJECT_LOCK +} PanelObjectType; + +typedef enum { + PANEL_ACTION_NONE = 0, + PANEL_ACTION_LOCK, + PANEL_ACTION_LOGOUT, + PANEL_ACTION_RUN, + PANEL_ACTION_SEARCH, + PANEL_ACTION_FORCE_QUIT, + PANEL_ACTION_CONNECT_SERVER, + PANEL_ACTION_SHUTDOWN, + /* compatibility with MATE < 2.13.90 */ + PANEL_ACTION_SCREENSHOT, + PANEL_ACTION_LAST +} PanelActionButtonType; + +#ifdef __cplusplus +} +#endif + +#endif /* __PANEL_ENUMS_H__ */ |