本文整理汇总了C++中Surface::FillRoundRect方法的典型用法代码示例。如果您正苦于以下问题:C++ Surface::FillRoundRect方法的具体用法?C++ Surface::FillRoundRect怎么用?C++ Surface::FillRoundRect使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Surface
的用法示例。
在下文中一共展示了Surface::FillRoundRect方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: render
void
LoadingView::doDraw(Surface &viewArea, Surface &clientArea)
{
if (dirty)
render();
screen->fill(Color::black);
backgroundSurface.blt(clientArea, 0, 0);
clientArea.FillRoundRect(iRect(165, 40, 635, 225), 10, Color::black);
clientArea.RoundRect(iRect(165, 40, 635, 225), 10, Color::yellow);
surface.blt(clientArea, 172, 45);
View::doDraw(viewArea, clientArea);
}
示例2: doDraw
void PrepareTeam::doDraw( Surface& dest )
{
menuImage.bltTrans(dest, menuImageXY.x, menuImageXY.y); // blit full
dest.FillRoundRect(rect, 12, ctWindowsbackground);
dest.RoundRect(rect,12, ctWindowsBorder);
// DrawInfo(dest);
// drawTeams(dest);
// vsImage.bltTrans(dest, firstrect.max.x+40, firstrect.max.y-vsImage.getHeight()-10);
// StateTeam1->UpdateState(false);
// StateTeam2->UpdateState(false);
View::doDraw( dest );
}
示例3: draw
// draw
//---------------------------------------------------------------------------
void Choice::draw(Surface &dest) const
{
iRect r(rect);
dest.RoundRect(iRect(r.getLocationX(), r.getLocationY(), r.getWidth() - 2, r.getHeight() - 2), 4, Color::gray96);
dest.RoundRect(iRect(r.getLocationX()+1, r.getLocationY()+1, r.getWidth() - 1, r.getHeight() - 1), 4, componentActiveTextColor);
dest.FillRoundRect(iRect(r.getLocationX()+1, r.getLocationY()+1, r.getWidth() - 2, r.getHeight() - 2), 4, componentBodyColor);
const TextRenderer *t;
int width = r.getWidth();
if ( !selecting )
{
t = choice_renders[index];
t->draw(dest, r.getLocationX() + ((width - t->getWidth()) / 2),
r.getLocationY(),
componentActiveTextColor );
}
else
{
r.setHeight( TextRenderingSystem::line_height() );
size_t count = choiceList.size();
for (size_t i = 0; i < count; i++)
{
t = choice_renders[i];
PIX color = componentActiveTextColor;
if ( i == mouseover )
{
// Higlight the selected item.
dest.fillRect(r, componentActiveTextColor);
color = Color::black;
}
t->draw(dest, r.getLocationX() + ((width - t->getWidth()) / 2),
r.getLocationY(),
color );
r.translate(iXY(0, TextRenderingSystem::line_height()));
}
}
//isOpen = 0;
} // end Choice::draw