1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
|
/*
$Id: gui_manager.cpp,v 1.16 2001/09/08 19:12:50 japj Exp $
ClanGUI, copyrights by various people. Have a look in the CREDITS file.
This sourcecode is distributed using the Library GNU Public Licence,
version 2 or (at your option) any later version. Please read LICENSE
for details.
*/
#include "precomp.h"
#include <cstdio>
#include "API/Display/Display/display.h"
#include "API/GUI/gui_manager.h"
#include "gui_manager_generic.h"
/////////////////////////////////////////////////////////////////////////////
// CL_GUIManager Construction:
CL_GUIManager::CL_GUIManager(CL_StyleManager *style)
:
CL_Component(CL_Rect(0, 0, CL_Display::get_width(), CL_Display::get_height()), NULL, style)
{
impl = new CL_GUIManager_Generic(this);
}
CL_GUIManager::CL_GUIManager(CL_Component *parent, CL_StyleManager *style)
:
CL_Component(CL_Rect(0, 0, CL_Display::get_width(), CL_Display::get_height()), NULL, style)
{
impl = new CL_GUIManager_Generic(this, parent);
}
CL_GUIManager::~CL_GUIManager()
{
delete impl;
}
/////////////////////////////////////////////////////////////////////////////
// CL_GUIManager Attributes:
CL_Component *CL_GUIManager::get_focus()
{
return impl->get_focus();
}
/////////////////////////////////////////////////////////////////////////////
// CL_GUIManager Operations:
void CL_GUIManager::set_focus(CL_Component *component)
{
impl->set_focus(component);
}
void CL_GUIManager::run()
{
impl->run();
}
void CL_GUIManager::show()
{
impl->show();
}
void CL_GUIManager::quit()
{
impl->quit();
}
void CL_GUIManager::enable_input()
{
impl->enable_input();
}
void CL_GUIManager::disable_input()
{
impl->disable_input();
}
void CL_GUIManager::gui_capture_mouse(CL_Component *component)
{
impl->gui_capture_mouse(component);
}
void CL_GUIManager::gui_release_mouse()
{
impl->gui_release_mouse();
}
|