39 lines
896 B
C++
39 lines
896 B
C++
/*
|
|
* A Panel Implementation
|
|
* Copyright(C) 2003-2013 Jinhao(cnjinhao@hotmail.com)
|
|
*
|
|
* Distributed under the Boost Software License, Version 1.0.
|
|
* (See accompanying file LICENSE_1_0.txt or copy at
|
|
* http://www.boost.org/LICENSE_1_0.txt)
|
|
*
|
|
* @file: source/gui/widgets/panel.cpp
|
|
*
|
|
* @brief: panel is a widget used for placing some widgets.
|
|
*/
|
|
|
|
#include <nana/gui/widgets/panel.hpp>
|
|
|
|
namespace nana
|
|
{
|
|
namespace drawerbase
|
|
{
|
|
namespace panel
|
|
{
|
|
//class drawer
|
|
void drawer::attached(widget_reference widget, graph_reference)
|
|
{
|
|
widget.caption(STR("Nana Panel"));
|
|
window_ = widget.handle();
|
|
}
|
|
|
|
void drawer::refresh(graph_reference graph)
|
|
{
|
|
if(bground_mode::basic != API::effects_bground_mode(window_))
|
|
graph.rectangle(true, API::bgcolor(window_));
|
|
}
|
|
//end class drawer
|
|
}//end namespace panel
|
|
|
|
}//end namespace drawerbase
|
|
}//end namespace nana
|