本文整理汇总了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);
}
示例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);
}
示例3: SetBoundingRect
public void SetBoundingRect(QRect r)
{
interceptor.Invoke("setBoundingRect#", "setBoundingRect(const QRect&)", typeof(void), typeof(QRect), r);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例10: AlignmentRect
protected QRect AlignmentRect(QRect arg1)
{
return (QRect) interceptor.Invoke("alignmentRect#", "alignmentRect(const QRect&) const", typeof(QRect), typeof(QRect), arg1);
}
示例11: SetGeometry
public virtual void SetGeometry(QRect arg1)
{
interceptor.Invoke("setGeometry#", "setGeometry(const QRect&)", typeof(void), typeof(QRect), arg1);
}
示例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;
}
示例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;
}
示例14: cannonRect
private QRect cannonRect()
{
QRect result = new QRect(0, 0, 50, 50);
result.MoveBottomLeft(Rect.BottomLeft());
return result;
}
示例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)
{
}