/* * A Panel Implementation * Copyright(C) 2003-2017 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 namespace nana { namespace drawerbase { namespace panel { //class drawer void drawer::attached(widget_reference wdg, graph_reference) { wdg.caption("panel widget"); window_ = wdg.handle(); API::ignore_mouse_focus(wdg, true); } void drawer::refresh(graph_reference graph) { if (!API::dev::copy_transparent_background(window_, graph)) graph.rectangle(true, API::bgcolor(window_)); } //end class drawer }//end namespace panel }//end namespace drawerbase }//end namespace nana