panel.h

Go to the documentation of this file.
00001 
00007 /*
00008     This library is free software; you can redistribute it and/or
00009     modify it under the terms of the GNU Lesser General Public
00010     License as published by the Free Software Foundation; either
00011     version 2.1 of the License, or (at your option) any later version.
00012 
00013     This library is distributed in the hope that it will be useful,
00014     but WITHOUT ANY WARRANTY; without even the implied warranty of
00015     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016     Lesser General Public License for more details.
00017 
00018     You should have received a copy of the GNU Lesser General Public
00019     License along with this library; if not, write to the Free Software
00020     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00021 */
00022 
00023 #ifndef OMGUI_PANEL_H
00024 #define OMGUI_PANEL_H
00025 
00026 #include <omgui/widget.h>
00027 #include <omgui/initializer/panel.h>
00028 
00029 namespace omgui {
00030 
00038 class OMGUI_API Panel : public Widget
00039 {
00040 public:
00041     typedef omgui::api::Panel api_type;
00042 
00046     bool is_orphaned() const;
00047 
00053     void remove_child(Widget *child);
00054 
00063     void update_layout();
00064 
00070     void invalidate_cached_child_values();
00071 
00072 private:
00073     api_type *m_impl;
00074 
00075 protected:
00076     Panel(object_id id, api_type *impl);
00077 
00078 public:
00079     api_type *get_impl() const;
00080 };
00081 
00082 } // omgui
00083 
00084 #endif // OMGUI_PANEL_H

doxygen SourceForge.net Logo