- Your Widget Set For OpenGL
Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | Related Pages

ulayeredpane.hpp

00001 /*************************************************************************** 00002 LibUFO - UI For OpenGL 00003 copyright : (C) 2001-2005 by Johannes Schmidt 00004 email : schmidtjf at users.sourceforge.net 00005 ------------------- 00006 00007 file : include/ufo/widgets/ulayeredpane.hpp 00008 begin : Mon Aug 13 2001 00009 $Id: ulayeredpane.hpp,v 1.9 2005/05/21 15:17:23 schmidtjf Exp $ 00010 ***************************************************************************/ 00011 00012 /*************************************************************************** 00013 * This library is free software; you can redistribute it and/or * 00014 * modify it under the terms of the GNU Lesser General Public * 00015 * License as published by the Free Software Foundation; either * 00016 * version 2.1 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 * Lesser General Public License for more details. * 00022 * * 00023 * You should have received a copy of the GNU Lesser General Public * 00024 * License along with this library; if not, write to the Free Software * 00025 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * 00026 ***************************************************************************/ 00027 00028 #ifndef ULAYEREDPANE_HPP 00029 #define ULAYEREDPANE_HPP 00030 00031 #include "uwidget.hpp" 00032 00033 #include "../util/uinteger.hpp" 00034 00035 namespace ufo { 00036 00048 class UFO_EXPORT ULayeredPane : public UWidget { 00049 UFO_DECLARE_DYNAMIC_CLASS(ULayeredPane) 00050 public: 00051 ULayeredPane(); 00052 00059 void putLayerProperty(UWidget * w, int layer); 00060 00064 void setLayer(UWidget * w, int layer); 00073 void setLayer(UWidget * w, int layer, int position); 00078 int getLayer(const UWidget * w) const; 00079 00083 void setPosition(UWidget * w, int position); 00087 int getPosition(const UWidget * w) const; 00088 00091 void moveToFront(UWidget * w); 00094 void moveToBack(UWidget * w); 00095 00096 00100 int getLayerBegin(int layer) const; 00104 int getLayerEnd(int layer) const; 00111 int indexForLayer(int layer, int position) const; 00112 00113 00114 protected: 00122 void addImpl(UWidget * w, UObject * constraints, int index); 00123 00124 00125 public: // Public attributes 00126 static const UInteger * DefaultLayer; 00127 static const UInteger * FrameLayer; 00128 static const UInteger * PopupLayer; 00129 // FIXME 00130 // drag and drop is not supported 00131 static const UInteger * DragLayer; 00132 00133 static const UInteger * RootPaneLayer; 00134 00135 private: 00136 static const std::string LayerProperty; 00137 }; 00138 00139 } // namespace ufo 00140 00141 #endif // ULAYEREDPANE_HPP

The libUFO Project - written by Johannes Schmidt