Пример #1
0
const CL_Rect &MotionBlurShaderImpl::getDrawRect(const CL_Rect &p_requested)
{
	m_drawRect = p_requested;
	m_drawRect.expand(m_radius);

	return m_drawRect;
}
Пример #2
0
CL_Rect CL_GUIThemePart::get_render_box(const CL_Rect &content_box_rect) const
{
	impl->check_content_shrink_box_is_cached(*this);
	CL_Rect box = content_box_rect;

	CL_Rect &R = impl->cached_content_box_shrink_rect;
	box.expand(R.left, R.top, R.right, R.bottom);
	return box;
}