48 lines
1.0 KiB
C++
48 lines
1.0 KiB
C++
/*
|
|
* A Frame 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: nana/gui/widgets/frame.cpp
|
|
*
|
|
* A frame provides a way to contain the platform window in a stdex GUI Window
|
|
*/
|
|
|
|
#include <nana/gui/widgets/frame.hpp>
|
|
|
|
namespace nana
|
|
{
|
|
//class frame:: public widget_object<category::frame_tag>
|
|
frame::frame(){}
|
|
|
|
frame::frame(window wd, bool visible)
|
|
{
|
|
create(wd, rectangle(), visible);
|
|
}
|
|
|
|
frame::frame(window wd, const nana::rectangle& r, bool visible)
|
|
{
|
|
create(wd, r, visible);
|
|
}
|
|
|
|
bool frame::insert(native_window_type wd)
|
|
{
|
|
return API::insert_frame(handle(), wd);
|
|
}
|
|
|
|
native_window_type frame::element(unsigned index)
|
|
{
|
|
return API::frame_element(handle(), index);
|
|
}
|
|
|
|
native_window_type frame::container() const
|
|
{
|
|
return API::frame_container(handle());
|
|
}
|
|
//end class frame
|
|
}//end namespace nana
|
|
|