window.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_WINDOW_H
00024 #define OMGUI_WINDOW_H
00025 
00026 #include <omgui/toplevel.h>
00027 #include <omgui/initializer/window.h>
00028 
00029 namespace omgui {
00030     class MenuBar;
00031     
00042 class OMGUI_API Window : public TopLevel
00043 {
00044 public:
00045     typedef omgui::api::Window api_type;
00046     typedef WindowInitializer Initializer;
00047     typedef omgui::event_traits<Window> event_traits;
00048 
00054     static Pointer<Window> create(const Initializer &initializer, object_id id = OBJECT_ID_ANY);
00055 
00065     void set_min_content_size(const omgui::Size &size);
00066 
00076     void set_max_content_size(const omgui::Size &size);
00077 
00081     omgui::Size get_min_content_size() const;
00082 
00086     omgui::Size get_max_content_size() const;
00087 
00093     Pointer<omgui::Panel> set_content_panel(const Pointer<omgui::Panel> &p);
00094 
00098     Pointer<omgui::Panel> get_content_panel() const;
00099 
00124     string get_window_placement() const;
00125 
00132     void set_window_placement(const string &placement);
00133 
00138     void set_menu_bar(const Pointer<MenuBar> &menubar);
00139 
00145     Pointer<MenuBar> get_menu_bar() const;
00146 
00147 private:
00148     api_type *m_impl;
00149 
00150 protected:
00151     Window(object_id id);
00152     Window(object_id id, api_type *impl);
00153 
00157     void initialize(const Initializer &initializer);
00158 
00159 public:
00160     api_type *get_impl() const;
00161 };
00162 
00163 } // omgui
00164 
00165 
00166 
00167 #endif // OMGUI_WINDOW_H

doxygen SourceForge.net Logo