本文整理汇总了C++中TRect::BoundingRect方法的典型用法代码示例。如果您正苦于以下问题:C++ TRect::BoundingRect方法的具体用法?C++ TRect::BoundingRect怎么用?C++ TRect::BoundingRect使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TRect
的用法示例。
在下文中一共展示了TRect::BoundingRect方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Popup
EXPORT_C void CBubbleCtrl::Popup(const TRect& aRect)
{
SetRect(aRect);
if(iFreeze)
{
iShowing = ETrue;
SetHidenFlag(EFalse);
return;
}
if(!iShowing || aRect != Rect() || iNeedRedraw)
{
iShowing = ETrue;
TRect rect = Rect();
SetRect(aRect);
SetHidenFlag(EFalse);
BringToTop();
//redraw the control under bubble control
if(aRect != rect)
RootControl()->ReDrawRect(rect);
Draw();
rect.BoundingRect(aRect);
UpdateAreaImmed(rect,ETrue);
iNeedRedraw = EFalse;
}
}
示例2: ExpandRectWithShadow
void CHuiRasterizedTextMesh::ExpandRectWithShadow(TRect& aRect) const
{
if ( iVisual && iLines.Count() )
{
CHuiDropShadow* shadowHandler = iVisual->DropShadowHandler();
if ( shadowHandler &&
shadowHandler->IsShadowVisible() &&
iLines[0].iTexture )
{
const TInt requestedBlurredSize = HUI_ROUND_FLOAT_TO_INT( 2*shadowHandler->iRadius.Now() );
THuiTextureHandle shadow;
// take the first line as an example
TBool haveShadowTexture = iLines[0].iTexture->GetShadowTexture( shadow,requestedBlurredSize );
if ( haveShadowTexture )
{
const TRect shadowRect = shadowHandler->ShadowDrawingTRect(
aRect.iTl,
aRect.Size(),
shadow.Size(),
*iVisual );
aRect.BoundingRect( shadowRect );
}
}
}
}
示例3: BoundingRect
inline const TRect BoundingRect(TRect aFirst, const TRect& aSecond)
{
aFirst.BoundingRect(aSecond);
return aFirst;
}