Begin() 공개 메소드

public Begin ( IQPaintDevice arg1 ) : bool
arg1 IQPaintDevice
리턴 bool
예제 #1
0
파일: cannonfield.cs 프로젝트: KDE/qyoto
 private void paintShot(QPainter painter)
 {
     painter.Begin(this); // should not be necessary
     painter.SetPen(Qt.PenStyle.NoPen);
     painter.SetBrush(new QBrush(Qt.GlobalColor.black));
     painter.DrawRect(shotRect());
     painter.End(); // should not be necessary
 }
예제 #2
0
파일: cannonfield.cs 프로젝트: KDE/qyoto
    private void paintCannon(QPainter painter)
    {
        painter.Begin(this); // should not be necessary
        painter.SetPen(Qt.PenStyle.NoPen);
        painter.SetBrush(new QBrush(Qt.GlobalColor.blue));

        painter.Save();
        painter.Translate(0, Height());
        painter.DrawPie(new QRect(-35, -35, 70, 70), 0, 90 * 16);
        painter.Rotate(-currentAngle);
        painter.DrawRect(barrelRect);
        painter.Restore();
        painter.End(); // should not be necessary
    }