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