本文整理汇总了C++中CGraphic::SetBrushColor方法的典型用法代码示例。如果您正苦于以下问题:C++ CGraphic::SetBrushColor方法的具体用法?C++ CGraphic::SetBrushColor怎么用?C++ CGraphic::SetBrushColor使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CGraphic
的用法示例。
在下文中一共展示了CGraphic::SetBrushColor方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Draw
void CNormalListBoxItem::Draw(CGraphic& aGraphic,TPoint& aPoint) const
{
UtilityTools::WriteLogsL(_L("CNormalListBoxItem::Draw"));
ASSERT(iSlideText);
TRect rect(iItemSize);
rect.Move(aPoint);
if(iActive)
{
aGraphic.SetPenColor(KTextColor);
aGraphic.SetPenStyle(CGraphicsContext::ESolidPen);
aGraphic.SetBrushColor(KListSelectedColor);
aGraphic.SetBrushStyle(CGraphicsContext::ESolidBrush);
aGraphic.DrawRect(rect);
aGraphic.SetBrushStyle(CGraphicsContext::ENullBrush);
}
if(iIcon)
{
rect.iTl.iX += iIcon->SizeInPixels().iWidth;
}
if(iIcon)
{
ASSERT(iIconMask);
aGraphic.BitBltMasked(aPoint,iIcon,iIconMask);
}
iSlideText->SetClientRect(rect);
iSlideText->Draw(aGraphic);
aPoint.iY += iItemSize.iHeight;
UtilityTools::WriteLogsL(_L("CNormalListBoxItem::Draw End"));
}
示例2: Draw
//////////////////////////////////////////////////////////////////////////
//From CControl
//////////////////////////////////////////////////////////////////////////
void CSelectGroup::Draw(CGraphic& gc)const
{
TInt index=0;
for(TInt i=0; i<iMaxLinePerPage; i++)
{
index=i+iFirstIndex;
if(index>=iSelectArray.Count())
break;
if(index==iSelectedIndex)
{
TRect rect(iStartPoint+TPoint(0,i*iLineHeight),iItemSize);
gc.SetPenColor(KPopMenuRectColor);
gc.SetPenStyle(CGraphicsContext::ESolidPen);
gc.SetBrushColor(KNaviPaneSelectedItemColor);
gc.SetBrushStyle(CGraphicsContext::ESolidBrush);
gc.DrawRect(rect);
gc.SetBrushStyle(CGraphicsContext::ENullBrush);
gc.SetPenColor(KRgbWhite);
}
iSelectArray[index]->DrawItem(gc,TRect(iStartPoint+TPoint(0,i*iLineHeight),iItemSize));
}
if(iScrollbar)
iScrollbar->Draw(gc);
}
示例3: Draw
//////////////////////////////////////////////////////////////////////////
//From CControl
//////////////////////////////////////////////////////////////////////////
void CContentInfoDialog::Draw(CGraphic& gc)const
{
gc.SetPenColor(TRgb(255,255,255));
gc.SetBrushColor(TRgb(64,61,90));
gc.SetPenStyle(CBitmapContext::ESolidPen);
gc.SetBrushStyle(CBitmapContext::ESolidBrush);
gc.DrawRoundRect(iBackRect);
TPoint point=iStartPoint;
if(iBool&&iShowBmp==NULL)
{
gc.DrawRoundRect(TRect(iStartPoint-TPoint(2,2),TSize(iIconSize.iWidth+4,iIconSize.iHeight+4)));
gc.DrawText(iMainEngine.GetDesById(ECoCoTextRes_GetImage),TRect(point,iIconSize),CGraphicsContext::ELeft);
point.iY=point.iY+iIconSize.iHeight;
}
if(iShowBmp)
{
/*TPoint iconPoint(0,0);
TSize iconSize=iIconSize;
if(iSelectIndex<iAllLine)
{
iconPoint.iY=iconPoint.iY+iTextSize.iHeight*iSelectIndex;
iconSize.iHeight=iIconSize.iHeight-iTextSize.iHeight*iSelectIndex;
if(iconPoint.iY>=0&&iconSize.iHeight>0)
gc.BitBlt(point,iShowBmp,TRect(iconPoint,iconSize));
}*/
gc.BitBlt(point,iShowBmp);
point.iY=point.iY+iIconSize.iHeight;
}
TInt index=0;
for(TInt i=0;i<iMaxLine;i++)
{
index=i+iFirstIndex;
if(index>=iDesArray->Count())
break;
gc.DrawText((*iDesArray)[index],TRect(point+TPoint(0,i*iTextSize.iHeight),iTextSize),CGraphicsContext::ELeft);
}
gc.SetBrushStyle(CGraphicsContext::ENullBrush);
if(iScrollbar)
iScrollbar->Draw(gc);
}