當前位置: 首頁>>代碼示例>>C#>>正文


C# Qyoto.QRect類代碼示例

本文整理匯總了C#中Qyoto.QRect的典型用法代碼示例。如果您正苦於以下問題:C# QRect類的具體用法?C# QRect怎麽用?C# QRect使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


QRect類屬於Qyoto命名空間,在下文中一共展示了QRect類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: PaintInterface

 public override void PaintInterface(    QPainter painter,
                                         QStyleOptionGraphicsItem option,
                                         QRect contentsRect )
 {
     svg.Resize(Size());
     svg.Paint(painter, 0, 0);
 }
開發者ID:KDE,項目名稱:kimono,代碼行數:7,代碼來源:tiger.cs

示例2: MapFromView

 /// <remarks>
 ///  Maps a QRect from a view's coordinates to local coordinates.
 /// <param> name="view" the view from which rect should be mapped
 /// </param><param> name="rect" the rect to be mapped
 ///          </param></remarks>        <short>    Maps a QRect from a view's coordinates to local coordinates.</short>
 public QRectF MapFromView(QGraphicsView view, QRect rect)
 {
     return applet.MapFromView(view, rect);
 }
開發者ID:KDE,項目名稱:kimono,代碼行數:9,代碼來源:PlasmaScripting_Applet.cs

示例3: SetBoundingRect

 public void SetBoundingRect(QRect r)
 {
     interceptor.Invoke("setBoundingRect#", "setBoundingRect(const QRect&)", typeof(void), typeof(QRect), r);
 }
開發者ID:0xd34df00d,項目名稱:Qross,代碼行數:4,代碼來源:QPicture.cs

示例4: Write

 public static QDBusArgument Write(QDBusArgument a, QRect rect)
 {
     return (QDBusArgument) staticInterceptor.Invoke("operator<<##", "operator<<(QDBusArgument&, const QRect&)", typeof(QDBusArgument), typeof(QDBusArgument), a, typeof(QRect), rect);
 }
開發者ID:KDE,項目名稱:qyoto,代碼行數:4,代碼來源:Qt.cs

示例5: Read

 public static QDBusArgument Read(QDBusArgument a, QRect rect)
 {
     return (QDBusArgument) staticInterceptor.Invoke("operator>>##", "operator>>(const QDBusArgument&, QRect&)", typeof(QDBusArgument), typeof(QDBusArgument), a, typeof(QRect), rect);
 }
開發者ID:KDE,項目名稱:qyoto,代碼行數:4,代碼來源:Qt.cs

示例6: QDrawWinPanel

 public static void QDrawWinPanel(QPainter p, QRect r, QPalette pal)
 {
     staticInterceptor.Invoke("qDrawWinPanel###", "qDrawWinPanel(QPainter*, const QRect&, const QPalette&)", typeof(void), typeof(QPainter), p, typeof(QRect), r, typeof(QPalette), pal);
 }
開發者ID:KDE,項目名稱:qyoto,代碼行數:4,代碼來源:Qt.cs

示例7: QDrawWinButton

 public static void QDrawWinButton(QPainter p, QRect r, QPalette pal, bool sunken, QBrush fill)
 {
     staticInterceptor.Invoke("qDrawWinButton###$#", "qDrawWinButton(QPainter*, const QRect&, const QPalette&, bool, const QBrush*)", typeof(void), typeof(QPainter), p, typeof(QRect), r, typeof(QPalette), pal, typeof(bool), sunken, typeof(QBrush), fill);
 }
開發者ID:KDE,項目名稱:qyoto,代碼行數:4,代碼來源:Qt.cs

示例8: QDrawShadeRect

 public static void QDrawShadeRect(QPainter p, QRect r, QPalette pal, bool sunken, int lineWidth, int midLineWidth, QBrush fill)
 {
     staticInterceptor.Invoke("qDrawShadeRect###$$$#", "qDrawShadeRect(QPainter*, const QRect&, const QPalette&, bool, int, int, const QBrush*)", typeof(void), typeof(QPainter), p, typeof(QRect), r, typeof(QPalette), pal, typeof(bool), sunken, typeof(int), lineWidth, typeof(int), midLineWidth, typeof(QBrush), fill);
 }
開發者ID:KDE,項目名稱:qyoto,代碼行數:4,代碼來源:Qt.cs

示例9: Paint

 public void Paint(QPainter painter, QRect rect, int rating)
 {
     interceptor.Invoke("paint##$", "paint(QPainter*, const QRect&, int) const", typeof(void), typeof(QPainter), painter, typeof(QRect), rect, typeof(int), rating);
 }
開發者ID:KDE,項目名稱:kimono,代碼行數:4,代碼來源:KRatingPainter.cs

示例10: AlignmentRect

 protected QRect AlignmentRect(QRect arg1)
 {
     return (QRect) interceptor.Invoke("alignmentRect#", "alignmentRect(const QRect&) const", typeof(QRect), typeof(QRect), arg1);
 }
開發者ID:KDE,項目名稱:qyoto,代碼行數:4,代碼來源:QLayout.cs

示例11: SetGeometry

 public virtual void SetGeometry(QRect arg1)
 {
     interceptor.Invoke("setGeometry#", "setGeometry(const QRect&)", typeof(void), typeof(QRect), arg1);
 }
開發者ID:KDE,項目名稱:qyoto,代碼行數:4,代碼來源:QLayout.cs

示例12: targetRect

 private QRect targetRect()
 {
     QRect result = new QRect(0, 0, 20, 10);
     result.MoveCenter(new QPoint(target.X(), Height() - 1 - target.Y()));
     return result;
 }
開發者ID:KDE,項目名稱:qyoto,代碼行數:6,代碼來源:cannonfield.cs

示例13: shotRect

    private QRect shotRect()
    {
        const double gravity = 4;

        double time = timerCount / 20.0;
        double velocity = shootForce;
        double radians = shootAngle * 3.14159265 / 180;

        double velx = velocity * Math.Cos(radians);
        double vely = velocity * Math.Sin(radians);
        double x0 = (barrelRect.Right() + 5) * Math.Cos(radians);
        double y0 = (barrelRect.Right() + 5) * Math.Sin(radians);
        double x = x0 + velx * time;
        double y = y0 + vely * time - 0.5 * gravity * time * time;

        QRect result = new QRect(0, 0, 6, 6);
        result.MoveCenter(new QPoint((int) Math.Round(x), Height() - 1 - (int) Math.Round(y)));
        return result;
    }
開發者ID:KDE,項目名稱:qyoto,代碼行數:19,代碼來源:cannonfield.cs

示例14: cannonRect

 private QRect cannonRect()
 {
     QRect result = new QRect(0, 0, 50, 50);
     result.MoveBottomLeft(Rect.BottomLeft());
     return result;
 }
開發者ID:KDE,項目名稱:qyoto,代碼行數:6,代碼來源:cannonfield.cs

示例15: PaintInterface

 /// <remarks>
 ///  This method is called when the interface should be painted.
 /// <param> name="painter" the QPainter to use to do the paintiner
 /// </param><param> name="option" the style options object
 /// </param><param> name="contentsRect" the rect to paint within; automatically adjusted for
 ///                      the background, if any
 /// </param></remarks>        <short>    This method is called when the interface should be painted.</short>
 public virtual void PaintInterface(QPainter painter, QStyleOptionGraphicsItem option, QRect contentsRect)
 {
 }
開發者ID:KDE,項目名稱:kimono,代碼行數:10,代碼來源:PlasmaScripting_Applet.cs


注:本文中的Qyoto.QRect類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。