42 lines
931 B
C++
42 lines
931 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 wdg, graph_reference)
|
|
{
|
|
wdg.caption(STR("panel widget"));
|
|
window_ = wdg.handle();
|
|
|
|
API::ignore_mouse_focus(wdg, true);
|
|
|
|
}
|
|
|
|
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
|