Inheritance: Object, IDisposable
Beispiel #1
0
 public QGraphicsPathItem(QPainterPath path)
     : this((Type) null)
 {
     CreateProxy();
     interceptor.Invoke("QGraphicsPathItem#", "QGraphicsPathItem(const QPainterPath&)", typeof(void), typeof(QPainterPath), path);
 }
Beispiel #2
0
 public void SetClipPath(QPainterPath path)
 {
     interceptor.Invoke("setClipPath#", "setClipPath(const QPainterPath&)", typeof(void), typeof(QPainterPath), path);
 }
Beispiel #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);
 }
Beispiel #4
0
    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);
    }
Beispiel #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);
 }
Beispiel #6
0
Datei: Qt.cs Projekt: 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);
 }
Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #9
0
 public List <IQGraphicsItem> Items(QPainterPath path)
 {
     return((List <IQGraphicsItem>)interceptor.Invoke("items#", "items(const QPainterPath&) const", typeof(List <IQGraphicsItem>), typeof(QPainterPath), path));
 }
Beispiel #10
0
 public void SetSelectionArea(QPainterPath path)
 {
     interceptor.Invoke("setSelectionArea#", "setSelectionArea(const QPainterPath&)", typeof(void), typeof(QPainterPath), path);
 }
Beispiel #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));
 }
Beispiel #12
0
 public QPainterPath MapFromScene(QPainterPath path)
 {
     return((QPainterPath)interceptor.Invoke("mapFromScene#", "mapFromScene(const QPainterPath&) const", typeof(QPainterPath), typeof(QPainterPath), path));
 }
Beispiel #13
0
 public QPainterPath CreateStroke(QPainterPath path)
 {
     return((QPainterPath)interceptor.Invoke("createStroke#", "createStroke(const QPainterPath&) const", typeof(QPainterPath), typeof(QPainterPath), path));
 }
Beispiel #14
0
 public void DrawPath(QPainterPath path)
 {
     interceptor.Invoke("drawPath#", "drawPath(const QPainterPath&)", typeof(void), typeof(QPainterPath), path);
 }
Beispiel #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));
 }
Beispiel #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);
 }
Beispiel #17
0
 public QGraphicsPathItem AddPath(QPainterPath path)
 {
     return((QGraphicsPathItem)interceptor.Invoke("addPath#", "addPath(const QPainterPath&)", typeof(QGraphicsPathItem), typeof(QPainterPath), path));
 }
Beispiel #18
0
 public List<IQGraphicsItem> Items(QPainterPath path)
 {
     return (List<IQGraphicsItem>) interceptor.Invoke("items#", "items(const QPainterPath&) const", typeof(List<IQGraphicsItem>), typeof(QPainterPath), path);
 }
Beispiel #19
0
 public QPainterPath Map(QPainterPath p)
 {
     return((QPainterPath)interceptor.Invoke("map#", "map(const QPainterPath&) const", typeof(QPainterPath), typeof(QPainterPath), p));
 }
Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #27
0
 public virtual void DrawPath(QPainterPath path)
 {
     interceptor.Invoke("drawPath#", "drawPath(const QPainterPath&)", typeof(void), typeof(QPainterPath), path);
 }
Beispiel #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);
 }
Beispiel #29
0
 public QPainterPath Map(QPainterPath p)
 {
     return (QPainterPath) interceptor.Invoke("map#", "map(const QPainterPath&) const", typeof(QPainterPath), typeof(QPainterPath), p);
 }
Beispiel #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);
 }
Beispiel #31
0
 public QPainterPath CreateStroke(QPainterPath path)
 {
     return (QPainterPath) interceptor.Invoke("createStroke#", "createStroke(const QPainterPath&) const", typeof(QPainterPath), typeof(QPainterPath), path);
 }
Beispiel #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);
 }
Beispiel #33
0
 public void AddPath(QPainterPath path)
 {
     interceptor.Invoke("addPath#", "addPath(const QPainterPath&)", typeof(void), typeof(QPainterPath), path);
 }
Beispiel #34
0
 public QGraphicsPathItem AddPath(QPainterPath path)
 {
     return (QGraphicsPathItem) interceptor.Invoke("addPath#", "addPath(const QPainterPath&)", typeof(QGraphicsPathItem), typeof(QPainterPath), path);
 }
Beispiel #35
0
 public void ConnectPath(QPainterPath path)
 {
     interceptor.Invoke("connectPath#", "connectPath(const QPainterPath&)", typeof(void), typeof(QPainterPath), path);
 }
Beispiel #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);
 }
Beispiel #37
0
 public bool Intersects(QPainterPath p)
 {
     return((bool)interceptor.Invoke("intersects#", "intersects(const QPainterPath&) const", typeof(bool), typeof(QPainterPath), p));
 }
Beispiel #38
0
 public void SetSelectionArea(QPainterPath path)
 {
     interceptor.Invoke("setSelectionArea#", "setSelectionArea(const QPainterPath&)", typeof(void), typeof(QPainterPath), path);
 }
Beispiel #39
0
 public bool Contains(QPainterPath p)
 {
     return((bool)interceptor.Invoke("contains#", "contains(const QPainterPath&) const", typeof(bool), typeof(QPainterPath), p));
 }
Beispiel #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);
 }
Beispiel #41
0
 public QPainterPath Intersected(QPainterPath r)
 {
     return((QPainterPath)interceptor.Invoke("intersected#", "intersected(const QPainterPath&) const", typeof(QPainterPath), typeof(QPainterPath), r));
 }
Beispiel #42
0
Datei: Qt.cs Projekt: 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);
 }
Beispiel #43
0
 public QPainterPath SubtractedInverted(QPainterPath r)
 {
     return((QPainterPath)interceptor.Invoke("subtractedInverted#", "subtractedInverted(const QPainterPath&) const", typeof(QPainterPath), typeof(QPainterPath), r));
 }
Beispiel #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);
 }
Beispiel #45
0
 public QPainterPath(QPainterPath other) : this((Type)null)
 {
     CreateProxy();
     interceptor.Invoke("QPainterPath#", "QPainterPath(const QPainterPath&)", typeof(void), typeof(QPainterPath), other);
 }
Beispiel #46
0
 public QPainterPath MapFromParent(QPainterPath path)
 {
     return (QPainterPath) interceptor.Invoke("mapFromParent#", "mapFromParent(const QPainterPath&) const", typeof(QPainterPath), typeof(QPainterPath), path);
 }
Beispiel #47
0
 public QPainterPath Shape()
 {
     QPainterPath path = new QPainterPath();
     path.AddRect(-10, -20, 20, 40);
     return path;
 }
Beispiel #48
0
 public QPainterPath MapToScene(QPainterPath path)
 {
     return (QPainterPath) interceptor.Invoke("mapToScene#", "mapToScene(const QPainterPath&) const", typeof(QPainterPath), typeof(QPainterPath), path);
 }
Beispiel #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);
 }