00001 /* 00002 ** ClanLib SDK 00003 ** Copyright (c) 1997-2011 The ClanLib Team 00004 ** 00005 ** This software is provided 'as-is', without any express or implied 00006 ** warranty. In no event will the authors be held liable for any damages 00007 ** arising from the use of this software. 00008 ** 00009 ** Permission is granted to anyone to use this software for any purpose, 00010 ** including commercial applications, and to alter it and redistribute it 00011 ** freely, subject to the following restrictions: 00012 ** 00013 ** 1. The origin of this software must not be misrepresented; you must not 00014 ** claim that you wrote the original software. If you use this software 00015 ** in a product, an acknowledgment in the product documentation would be 00016 ** appreciated but is not required. 00017 ** 2. Altered source versions must be plainly marked as such, and must not be 00018 ** misrepresented as being the original software. 00019 ** 3. This notice may not be removed or altered from any source distribution. 00020 ** 00021 ** Note: Some of the libraries ClanLib may link to may have additional 00022 ** requirements or restrictions. 00023 ** 00024 ** File Author(s): 00025 ** 00026 ** Magnus Norddahl 00027 ** Harry Storbacka 00028 ** Mark Page 00029 */ 00030 00033 00034 #pragma once 00035 00036 #include "api_gui.h" 00037 #include "gui_window_manager.h" 00038 00039 class CL_DisplayWindow; 00040 class CL_GUIWindowManagerTexture_Impl; 00041 class CL_FrameBuffer; 00042 class CL_TextureGroup; 00043 class CL_GUIWindowManagerProvider_Texture; 00044 class CL_GUIWindowManagerTextureWindow; 00045 00049 class CL_API_GUI CL_GUIWindowManagerTexture : public CL_GUIWindowManager 00050 { 00053 public: 00054 00056 CL_GUIWindowManagerTexture(); 00057 00061 CL_GUIWindowManagerTexture(CL_DisplayWindow display_window); 00062 CL_GUIWindowManagerTexture(const CL_GUIWindowManager &wm); 00063 ~CL_GUIWindowManagerTexture(); 00065 00068 public: 00070 CL_GUIWindowManagerProvider_Texture *get_provider() const; 00071 00076 std::vector<CL_GUIWindowManagerTextureWindow> get_windows(bool only_visible = true) const; 00078 00081 public: 00083 CL_Callback_v0 &func_repaint(); 00084 00086 CL_Callback_v1<CL_FrameBuffer &> &func_setup_framebuffer(); 00087 00089 CL_Callback_v2<CL_InputEvent &, CL_InputState &> &func_input_intercept(); 00091 00094 public: 00095 00099 void set_texture_group(CL_TextureGroup &new_texture_group); 00100 00106 void draw_windows(CL_GraphicContext &gc); 00107 00112 void process(); 00113 00115 00118 private: 00119 00121 }; 00122