Наследование: 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);
 }