当前位置: 首页>>代码示例>>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;未经允许,请勿转载。