Example #1
0
Rect Tab_Impl::get_client_rect()
{
	Rect hr = tab_header->get_geometry();
	Rect g = tab->get_geometry().get_size();
	g.top = hr.bottom;
	Rect content = tab->get_content_box();
	return content;
}
Example #2
0
void Tab_Impl::on_resized()
{
	Rect header_rect = tab->get_geometry().get_size();
	header_rect.bottom = tab_header->get_css_height();

	tab_header->set_geometry(header_rect);

	std::vector<TabPage*>::iterator it;
	for (it = pages.begin(); it!=pages.end(); ++it)
	{
		Rect cr = get_client_rect();
		(*it)->set_geometry(cr);
	}
}