Inheritance: Object, IDisposable
示例#1
0
 public QGraphicsPathItem(QPainterPath path)
     : this((Type) null)
 {
     CreateProxy();
     interceptor.Invoke("QGraphicsPathItem#", "QGraphicsPathItem(const QPainterPath&)", typeof(void), typeof(QPainterPath), path);
 }
示例#2
0
 public void SetClipPath(QPainterPath path)
 {
     interceptor.Invoke("setClipPath#", "setClipPath(const QPainterPath&)", typeof(void), typeof(QPainterPath), path);
 }
示例#3
0
 public QPainterPath MapToItem(IQGraphicsItem item, QPainterPath path)
 {
     return (QPainterPath) interceptor.Invoke("mapToItem##", "mapToItem(const QGraphicsItem*, const QPainterPath&) const", typeof(QPainterPath), typeof(IQGraphicsItem), item, typeof(QPainterPath), path);
 }
示例#4
0
文件: mouse.cs 项目: KDE/qyoto
    public override void Paint(QPainter painter, QStyleOptionGraphicsItem option, QWidget widget)
    {
        // Body
        painter.SetBrush(color);
        painter.DrawEllipse(-10, -20, 20, 40);

        // Eyes
        painter.SetBrush(Qt.GlobalColor.white);
        painter.DrawEllipse(-10, -17, 8, 8);
        painter.DrawEllipse(2, -17, 8, 8);

        // Nose
        painter.SetBrush(Qt.GlobalColor.black);
        painter.DrawEllipse(new QRectF(-2, -22, 4, 4));

        // Pupils
        painter.DrawEllipse(new QRectF(-8.0 + mouseEyeDirection, -17, 4, 4));
        painter.DrawEllipse(new QRectF(4.0 + mouseEyeDirection, -17, 4, 4));

        // Ears
        painter.SetBrush(Scene().CollidingItems(this).Count == 0 ? Qt.GlobalColor.darkYellow : Qt.GlobalColor.red);
        painter.DrawEllipse(-17, -12, 16, 16);
        painter.DrawEllipse(1, -12, 16, 16);

        // Tail
        QPainterPath path = new QPainterPath(new QPointF(0, 20));
        path.CubicTo(-5, 22, -5, 22, 0, 25);
        path.CubicTo(5, 27, 5, 32, 0, 30);
        path.CubicTo(-5, 32, -5, 42, 0, 35);
        painter.SetBrush(Qt.BrushStyle.NoBrush);
        painter.DrawPath(path);
    }
示例#5
0
 public void SetSelectionArea(QPainterPath path, QTransform deviceTransform)
 {
     interceptor.Invoke("setSelectionArea##", "setSelectionArea(const QPainterPath&, const QTransform&)", typeof(void), typeof(QPainterPath), path, typeof(QTransform), deviceTransform);
 }
示例#6
0
文件: Qt.cs 项目: KDE/qyoto
 public static QDataStream Write(QDataStream arg1, QPainterPath arg2)
 {
     return (QDataStream) staticInterceptor.Invoke("operator<<##", "operator<<(QDataStream&, const QPainterPath&)", typeof(QDataStream), typeof(QDataStream), arg1, typeof(QPainterPath), arg2);
 }
示例#7
0
 public void SetSelectionArea(QPainterPath path, Qt.ItemSelectionMode arg2)
 {
     interceptor.Invoke("setSelectionArea#$", "setSelectionArea(const QPainterPath&, Qt::ItemSelectionMode)", typeof(void), typeof(QPainterPath), path, typeof(Qt.ItemSelectionMode), arg2);
 }
示例#8
0
 public List<IQGraphicsItem> Items(QPainterPath path, Qt.ItemSelectionMode mode, Qt.SortOrder order, QTransform deviceTransform)
 {
     return (List<IQGraphicsItem>) interceptor.Invoke("items#$$#", "items(const QPainterPath&, Qt::ItemSelectionMode, Qt::SortOrder, const QTransform&) const", typeof(List<IQGraphicsItem>), typeof(QPainterPath), path, typeof(Qt.ItemSelectionMode), mode, typeof(Qt.SortOrder), order, typeof(QTransform), deviceTransform);
 }
示例#9
0
 public List <IQGraphicsItem> Items(QPainterPath path)
 {
     return((List <IQGraphicsItem>)interceptor.Invoke("items#", "items(const QPainterPath&) const", typeof(List <IQGraphicsItem>), typeof(QPainterPath), path));
 }
示例#10
0
 public void SetSelectionArea(QPainterPath path)
 {
     interceptor.Invoke("setSelectionArea#", "setSelectionArea(const QPainterPath&)", typeof(void), typeof(QPainterPath), path);
 }
示例#11
0
 public List <IQGraphicsItem> Items(QPainterPath path, Qt.ItemSelectionMode mode)
 {
     return((List <IQGraphicsItem>)interceptor.Invoke("items#$", "items(const QPainterPath&, Qt::ItemSelectionMode) const", typeof(List <IQGraphicsItem>), typeof(QPainterPath), path, typeof(Qt.ItemSelectionMode), mode));
 }
示例#12
0
 public QPainterPath MapFromScene(QPainterPath path)
 {
     return((QPainterPath)interceptor.Invoke("mapFromScene#", "mapFromScene(const QPainterPath&) const", typeof(QPainterPath), typeof(QPainterPath), path));
 }
示例#13
0
 public QPainterPath CreateStroke(QPainterPath path)
 {
     return((QPainterPath)interceptor.Invoke("createStroke#", "createStroke(const QPainterPath&) const", typeof(QPainterPath), typeof(QPainterPath), path));
 }
示例#14
0
 public void DrawPath(QPainterPath path)
 {
     interceptor.Invoke("drawPath#", "drawPath(const QPainterPath&)", typeof(void), typeof(QPainterPath), path);
 }
示例#15
0
 public QGraphicsPathItem AddPath(QPainterPath path, QPen pen, QBrush brush)
 {
     return((QGraphicsPathItem)interceptor.Invoke("addPath###", "addPath(const QPainterPath&, const QPen&, const QBrush&)", typeof(QGraphicsPathItem), typeof(QPainterPath), path, typeof(QPen), pen, typeof(QBrush), brush));
 }
示例#16
0
 public QGraphicsPathItem AddPath(QPainterPath path, QPen pen)
 {
     return (QGraphicsPathItem) interceptor.Invoke("addPath##", "addPath(const QPainterPath&, const QPen&)", typeof(QGraphicsPathItem), typeof(QPainterPath), path, typeof(QPen), pen);
 }
示例#17
0
 public QGraphicsPathItem AddPath(QPainterPath path)
 {
     return((QGraphicsPathItem)interceptor.Invoke("addPath#", "addPath(const QPainterPath&)", typeof(QGraphicsPathItem), typeof(QPainterPath), path));
 }
示例#18
0
 public List<IQGraphicsItem> Items(QPainterPath path)
 {
     return (List<IQGraphicsItem>) interceptor.Invoke("items#", "items(const QPainterPath&) const", typeof(List<IQGraphicsItem>), typeof(QPainterPath), path);
 }
示例#19
0
 public QPainterPath Map(QPainterPath p)
 {
     return((QPainterPath)interceptor.Invoke("map#", "map(const QPainterPath&) const", typeof(QPainterPath), typeof(QPainterPath), p));
 }
示例#20
0
 public void SetSelectionArea(QPainterPath path, Qt.ItemSelectionMode mode, QTransform deviceTransform)
 {
     interceptor.Invoke("setSelectionArea#$#", "setSelectionArea(const QPainterPath&, Qt::ItemSelectionMode, const QTransform&)", typeof(void), typeof(QPainterPath), path, typeof(Qt.ItemSelectionMode), mode, typeof(QTransform), deviceTransform);
 }
 public QPainterPath MapToItem(IQGraphicsItem item, QPainterPath path)
 {
     return applet.MapToItem(item, path);
 }
示例#22
0
 public virtual bool CollidesWithPath(QPainterPath path)
 {
     return (bool) interceptor.Invoke("collidesWithPath#", "collidesWithPath(const QPainterPath&) const", typeof(bool), typeof(QPainterPath), path);
 }
 public QPainterPath MapToParent(QPainterPath path)
 {
     return applet.MapToParent(path);
 }
示例#24
0
 public QGraphicsPathItem(QPainterPath path) : this((Type)null)
 {
     CreateProxy();
     interceptor.Invoke("QGraphicsPathItem#", "QGraphicsPathItem(const QPainterPath&)", typeof(void), typeof(QPainterPath), path);
 }
 public QPainterPath MapToScene(QPainterPath path)
 {
     return applet.MapToScene(path);
 }
示例#26
0
 public QGraphicsPathItem(QPainterPath path, IQGraphicsItem parent)
     : this((Type) null)
 {
     CreateProxy();
     interceptor.Invoke("QGraphicsPathItem##", "QGraphicsPathItem(const QPainterPath&, QGraphicsItem*)", typeof(void), typeof(QPainterPath), path, typeof(IQGraphicsItem), parent);
 }
示例#27
0
 public virtual void DrawPath(QPainterPath path)
 {
     interceptor.Invoke("drawPath#", "drawPath(const QPainterPath&)", typeof(void), typeof(QPainterPath), path);
 }
示例#28
0
 public void SetClipPath(QPainterPath path, Qt.ClipOperation op)
 {
     interceptor.Invoke("setClipPath#$", "setClipPath(const QPainterPath&, Qt::ClipOperation)", typeof(void), typeof(QPainterPath), path, typeof(Qt.ClipOperation), op);
 }
示例#29
0
 public QPainterPath Map(QPainterPath p)
 {
     return (QPainterPath) interceptor.Invoke("map#", "map(const QPainterPath&) const", typeof(QPainterPath), typeof(QPainterPath), p);
 }
示例#30
0
 public void StrokePath(QPainterPath path, QPen pen)
 {
     interceptor.Invoke("strokePath##", "strokePath(const QPainterPath&, const QPen&)", typeof(void), typeof(QPainterPath), path, typeof(QPen), pen);
 }
示例#31
0
 public QPainterPath CreateStroke(QPainterPath path)
 {
     return (QPainterPath) interceptor.Invoke("createStroke#", "createStroke(const QPainterPath&) const", typeof(QPainterPath), typeof(QPainterPath), path);
 }
示例#32
0
 public void FillPath(QPainterPath path, QBrush brush)
 {
     interceptor.Invoke("fillPath##", "fillPath(const QPainterPath&, const QBrush&)", typeof(void), typeof(QPainterPath), path, typeof(QBrush), brush);
 }
示例#33
0
 public void AddPath(QPainterPath path)
 {
     interceptor.Invoke("addPath#", "addPath(const QPainterPath&)", typeof(void), typeof(QPainterPath), path);
 }
示例#34
0
 public QGraphicsPathItem AddPath(QPainterPath path)
 {
     return (QGraphicsPathItem) interceptor.Invoke("addPath#", "addPath(const QPainterPath&)", typeof(QGraphicsPathItem), typeof(QPainterPath), path);
 }
示例#35
0
 public void ConnectPath(QPainterPath path)
 {
     interceptor.Invoke("connectPath#", "connectPath(const QPainterPath&)", typeof(void), typeof(QPainterPath), path);
 }
示例#36
0
 public List<IQGraphicsItem> Items(QPainterPath path, Qt.ItemSelectionMode mode)
 {
     return (List<IQGraphicsItem>) interceptor.Invoke("items#$", "items(const QPainterPath&, Qt::ItemSelectionMode) const", typeof(List<IQGraphicsItem>), typeof(QPainterPath), path, typeof(Qt.ItemSelectionMode), mode);
 }
示例#37
0
 public bool Intersects(QPainterPath p)
 {
     return((bool)interceptor.Invoke("intersects#", "intersects(const QPainterPath&) const", typeof(bool), typeof(QPainterPath), p));
 }
示例#38
0
 public void SetSelectionArea(QPainterPath path)
 {
     interceptor.Invoke("setSelectionArea#", "setSelectionArea(const QPainterPath&)", typeof(void), typeof(QPainterPath), path);
 }
示例#39
0
 public bool Contains(QPainterPath p)
 {
     return((bool)interceptor.Invoke("contains#", "contains(const QPainterPath&) const", typeof(bool), typeof(QPainterPath), p));
 }
示例#40
0
 public void SetSelectionArea(QPainterPath path, Qt.ItemSelectionMode mode)
 {
     interceptor.Invoke("setSelectionArea#$", "setSelectionArea(const QPainterPath&, Qt::ItemSelectionMode)", typeof(void), typeof(QPainterPath), path, typeof(Qt.ItemSelectionMode), mode);
 }
示例#41
0
 public QPainterPath Intersected(QPainterPath r)
 {
     return((QPainterPath)interceptor.Invoke("intersected#", "intersected(const QPainterPath&) const", typeof(QPainterPath), typeof(QPainterPath), r));
 }
示例#42
0
文件: Qt.cs 项目: KDE/qyoto
 public static QDataStream Read(QDataStream arg1, QPainterPath arg2)
 {
     return (QDataStream) staticInterceptor.Invoke("operator>>##", "operator>>(QDataStream&, QPainterPath&)", typeof(QDataStream), typeof(QDataStream), arg1, typeof(QPainterPath), arg2);
 }
示例#43
0
 public QPainterPath SubtractedInverted(QPainterPath r)
 {
     return((QPainterPath)interceptor.Invoke("subtractedInverted#", "subtractedInverted(const QPainterPath&) const", typeof(QPainterPath), typeof(QPainterPath), r));
 }
示例#44
0
 public virtual bool CollidesWithPath(QPainterPath path, Qt.ItemSelectionMode mode)
 {
     return (bool) interceptor.Invoke("collidesWithPath#$", "collidesWithPath(const QPainterPath&, Qt::ItemSelectionMode) const", typeof(bool), typeof(QPainterPath), path, typeof(Qt.ItemSelectionMode), mode);
 }
示例#45
0
 public QPainterPath(QPainterPath other) : this((Type)null)
 {
     CreateProxy();
     interceptor.Invoke("QPainterPath#", "QPainterPath(const QPainterPath&)", typeof(void), typeof(QPainterPath), other);
 }
示例#46
0
 public QPainterPath MapFromParent(QPainterPath path)
 {
     return (QPainterPath) interceptor.Invoke("mapFromParent#", "mapFromParent(const QPainterPath&) const", typeof(QPainterPath), typeof(QPainterPath), path);
 }
示例#47
0
文件: mouse.cs 项目: KDE/qyoto
 public QPainterPath Shape()
 {
     QPainterPath path = new QPainterPath();
     path.AddRect(-10, -20, 20, 40);
     return path;
 }
示例#48
0
 public QPainterPath MapToScene(QPainterPath path)
 {
     return (QPainterPath) interceptor.Invoke("mapToScene#", "mapToScene(const QPainterPath&) const", typeof(QPainterPath), typeof(QPainterPath), path);
 }
示例#49
0
 public QGraphicsPathItem(QPainterPath path, IQGraphicsItem parent) : this((Type)null)
 {
     CreateProxy();
     interceptor.Invoke("QGraphicsPathItem##", "QGraphicsPathItem(const QPainterPath&, QGraphicsItem*)", typeof(void), typeof(QPainterPath), path, typeof(IQGraphicsItem), parent);
 }