enums.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _LIBPANELAPPLETMM_ENUMS_H
00004 #define _LIBPANELAPPLETMM_ENUMS_H
00005 
00006 #include <glibmm.h>
00007 
00008 /* $Id: enums.hg,v 1.5 2003/12/07 20:42:58 mxpxpod Exp $ */
00009 // -*- C++ -*- // this is for the .hg, I realize gensig puts one in
00010 
00011 /* Copyright 2003 libpanelappletmm Development Team
00012  *
00013  * This library is free software; you can redistribute it and/or
00014  * modify it under the terms of the GNU Library General Public
00015  * License as published by the Free Software Foundation; either
00016  * version 2 of the License, or (at your option) any later version.
00017  *
00018  * This library is distributed in the hope that it will be useful,
00019  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00020  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00021  * Library General Public License for more details.
00022  *
00023  * You should have received a copy of the GNU Library General Public
00024  * License along with this library; if not, write to the Free
00025  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00026  */
00027 
00028 
00029 namespace Gnome
00030 {
00031 
00032 namespace Panel
00033 {
00034 
00035 
00041 enum AppletBackgroundType
00042 {
00043   NO_BACKGROUND,
00044   COLOR_BACKGROUND,
00045   PIXMAP_BACKGROUND
00046 };
00047 
00048 
00060 enum AppletFlags
00061 {
00062   APPLET_FLAGS_NONE = 0,
00063   APPLET_EXPAND_MAJOR = 1 << 0,
00064   APPLET_EXPAND_MINOR = 1 << 1,
00065   APPLET_HAS_HANDLE = 1 << 2
00066 };
00067 
00069 inline AppletFlags operator|(AppletFlags lhs, AppletFlags rhs)
00070   { return static_cast<AppletFlags>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs)); }
00071 
00073 inline AppletFlags operator&(AppletFlags lhs, AppletFlags rhs)
00074   { return static_cast<AppletFlags>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs)); }
00075 
00077 inline AppletFlags operator^(AppletFlags lhs, AppletFlags rhs)
00078   { return static_cast<AppletFlags>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs)); }
00079 
00081 inline AppletFlags operator~(AppletFlags flags)
00082   { return static_cast<AppletFlags>(~static_cast<unsigned>(flags)); }
00083 
00085 inline AppletFlags& operator|=(AppletFlags& lhs, AppletFlags rhs)
00086   { return (lhs = static_cast<AppletFlags>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs))); }
00087 
00089 inline AppletFlags& operator&=(AppletFlags& lhs, AppletFlags rhs)
00090   { return (lhs = static_cast<AppletFlags>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs))); }
00091 
00093 inline AppletFlags& operator^=(AppletFlags& lhs, AppletFlags rhs)
00094   { return (lhs = static_cast<AppletFlags>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs))); }
00095 
00096 
00097 enum AppletOrient
00098 {
00099   APPLET_ORIENT_UP,
00100   APPLET_ORIENT_DOWN,
00101   APPLET_ORIENT_LEFT,
00102   APPLET_ORIENT_RIGHT
00103 };
00104 
00105 } // namespace Panel
00106 } // namespace Gnome
00107 
00108 
00109 #endif /* _LIBPANELAPPLETMM_ENUMS_H */
00110 

Generated on Sun Aug 26 21:08:56 2007 for libpanelappletmm by  doxygen 1.5.3