Пример #1
0
void    Label::OnPaint(RenderTarget& target, RenderQueue& queue) const
{
    Widget::OnPaint(target, queue);

    queue.SetColor(GetTextColor());
    target.Draw(mCaption);
}
Пример #2
0
 void    Widget::OnPaint(RenderTarget& target, RenderQueue& queue) const
 {
     queue.SetColor(GetColor());
     target.Draw(Shape::Rectangle(0, 0, mSize.x, mSize.y, GetColor(), 1.f, GetBorderColor()));
 }