Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

gui_manager.cpp

Go to the documentation of this file.
00001 /*
00002         ClanGUI, copyrights by various people. Have a look in the CREDITS file.
00003         
00004         This sourcecode is distributed using the Library GNU Public Licence,
00005         version 2 or (at your option) any later version. Please read LICENSE
00006         for details.
00007 */
00008 
00009 #include "precomp.h"
00010 #include <stdio.h>
00011 #include "API/Display/Display/display.h"
00012 #include "API/GUI/gui_manager.h"
00013 #include "gui_manager_generic.h"
00014 
00016 // CL_GUIManager Construction:
00017 
00018 CL_GUIManager::CL_GUIManager(CL_StyleManager *style)
00019 :
00020         CL_Component(CL_Rect(0, 0, CL_Display::get_width(), CL_Display::get_height()), NULL, style)
00021 {
00022         impl = new CL_GUIManager_Generic(this);
00023 }
00024 
00025 CL_GUIManager::CL_GUIManager(CL_Component *parent, CL_StyleManager *style)
00026 :
00027         CL_Component(CL_Rect(0, 0, CL_Display::get_width(), CL_Display::get_height()), NULL, style)
00028 {
00029         impl = new CL_GUIManager_Generic(this, parent);
00030 }
00031 
00032 CL_GUIManager::~CL_GUIManager()
00033 {
00034         delete impl;
00035 }
00036 
00038 // CL_GUIManager Attributes:
00039 
00040 CL_Component *CL_GUIManager::get_focus()
00041 {
00042         return impl->get_focus();
00043 }
00044 
00046 // CL_GUIManager Operations:
00047 
00048 void CL_GUIManager::set_focus(CL_Component *component)
00049 {
00050         impl->set_focus(component);
00051 }
00052 
00053 void CL_GUIManager::run()
00054 {
00055         impl->run();
00056 }
00057 
00058 void CL_GUIManager::show()
00059 {
00060         impl->show();
00061 }
00062 
00063 void CL_GUIManager::quit()
00064 {
00065         impl->quit();
00066 }
00067 
00068 void CL_GUIManager::enable_input()
00069 {
00070         impl->enable_input();
00071 }
00072 
00073 void CL_GUIManager::disable_input()
00074 {
00075         impl->disable_input();
00076 }
00077 
00078 void CL_GUIManager::gui_capture_mouse(CL_Component *component)
00079 {
00080         impl->gui_capture_mouse(component);
00081 }
00082 
00083 void CL_GUIManager::gui_release_mouse()
00084 {
00085         impl->gui_release_mouse();
00086 }

Generated at Wed Apr 4 19:54:00 2001 for ClanLib by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001