Наследование: Object, IDisposable
Пример #1
0
        protected override void PaintEvent(Qyoto.QPaintEvent arg1)
        {
            using (QPainter p = new QPainter(this)) {
                var rect = ContentsRect();
                //var fm = new QFontMetrics(Font);

                //if (fm.Width(Text) > rect.Width()) {
                    var gradient = new QLinearGradient(rect.TopLeft(), rect.TopRight());
                    gradient.SetColorAt(0.8, Palette.Color(QPalette.ColorRole.WindowText));
                    gradient.SetColorAt(1.0, new QColor(Qt.GlobalColor.transparent));
                    var pen = new QPen();
                    pen.SetBrush(new QBrush(gradient));
                    p.SetPen(pen);
                //}

                p.DrawText(rect, (int)Qt.TextFlag.TextSingleLine, Text);
            }
        }
Пример #2
0
 public QGraphicsEllipseItem AddEllipse(QRectF rect, QPen pen, QBrush brush)
 {
     return (QGraphicsEllipseItem) interceptor.Invoke("addEllipse###", "addEllipse(const QRectF&, const QPen&, const QBrush&)", typeof(QGraphicsEllipseItem), typeof(QRectF), rect, typeof(QPen), pen, typeof(QBrush), brush);
 }
Пример #3
0
Файл: QPen.cs Проект: KDE/qyoto
 public QPen(QPen pen)
     : this((Type) null)
 {
     CreateProxy();
     interceptor.Invoke("QPen#", "QPen(const QPen&)", typeof(void), typeof(QPen), pen);
 }
Пример #4
0
 public void SetTextOutline(QPen pen)
 {
     interceptor.Invoke("setTextOutline#", "setTextOutline(const QPen&)", typeof(void), typeof(QPen), pen);
 }
Пример #5
0
Файл: Qt.cs Проект: KDE/qyoto
 public static QDataStream Read(QDataStream arg1, QPen arg2)
 {
     return (QDataStream) staticInterceptor.Invoke("operator>>##", "operator>>(QDataStream&, QPen&)", typeof(QDataStream), typeof(QDataStream), arg1, typeof(QPen), arg2);
 }
Пример #6
0
 public QGraphicsRectItem AddRect(double x, double y, double w, double h, QPen pen)
 {
     return (QGraphicsRectItem) interceptor.Invoke("addRect$$$$#", "addRect(qreal, qreal, qreal, qreal, const QPen&)", typeof(QGraphicsRectItem), typeof(double), x, typeof(double), y, typeof(double), w, typeof(double), h, typeof(QPen), pen);
 }
Пример #7
0
 public QGraphicsPolygonItem AddPolygon(QPolygonF polygon, QPen pen)
 {
     return (QGraphicsPolygonItem) interceptor.Invoke("addPolygon##", "addPolygon(const QPolygonF&, const QPen&)", typeof(QGraphicsPolygonItem), typeof(QPolygonF), polygon, typeof(QPen), pen);
 }
Пример #8
0
 public QGraphicsLineItem AddLine(double x1, double y1, double x2, double y2, QPen pen)
 {
     return (QGraphicsLineItem) interceptor.Invoke("addLine$$$$#", "addLine(qreal, qreal, qreal, qreal, const QPen&)", typeof(QGraphicsLineItem), typeof(double), x1, typeof(double), y1, typeof(double), x2, typeof(double), y2, typeof(QPen), pen);
 }
Пример #9
0
 public QGraphicsLineItem AddLine(double x1, double y1, double x2, double y2, QPen pen)
 {
     return((QGraphicsLineItem)interceptor.Invoke("addLine$$$$#", "addLine(qreal, qreal, qreal, qreal, const QPen&)", typeof(QGraphicsLineItem), typeof(double), x1, typeof(double), y1, typeof(double), x2, typeof(double), y2, typeof(QPen), pen));
 }
Пример #10
0
 public QGraphicsEllipseItem AddEllipse(double x, double y, double w, double h, QPen pen, QBrush brush)
 {
     return((QGraphicsEllipseItem)interceptor.Invoke("addEllipse$$$$##", "addEllipse(qreal, qreal, qreal, qreal, const QPen&, const QBrush&)", typeof(QGraphicsEllipseItem), typeof(double), x, typeof(double), y, typeof(double), w, typeof(double), h, typeof(QPen), pen, typeof(QBrush), brush));
 }
Пример #11
0
 public QGraphicsRectItem AddRect(QRectF rect, QPen pen)
 {
     return((QGraphicsRectItem)interceptor.Invoke("addRect##", "addRect(const QRectF&, const QPen&)", typeof(QGraphicsRectItem), typeof(QRectF), rect, typeof(QPen), pen));
 }
Пример #12
0
 public QGraphicsPolygonItem AddPolygon(QPolygonF polygon, QPen pen)
 {
     return((QGraphicsPolygonItem)interceptor.Invoke("addPolygon##", "addPolygon(const QPolygonF&, const QPen&)", typeof(QGraphicsPolygonItem), typeof(QPolygonF), polygon, typeof(QPen), pen));
 }
Пример #13
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));
 }
Пример #14
0
 public QGraphicsLineItem AddLine(QLineF line, QPen pen)
 {
     return((QGraphicsLineItem)interceptor.Invoke("addLine##", "addLine(const QLineF&, const QPen&)", typeof(QGraphicsLineItem), typeof(QLineF), line, typeof(QPen), pen));
 }
Пример #15
0
 public QGraphicsEllipseItem AddEllipse(QRectF rect, QPen pen, QBrush brush)
 {
     return((QGraphicsEllipseItem)interceptor.Invoke("addEllipse###", "addEllipse(const QRectF&, const QPen&, const QBrush&)", typeof(QGraphicsEllipseItem), typeof(QRectF), rect, typeof(QPen), pen, typeof(QBrush), brush));
 }
Пример #16
0
 public QGraphicsEllipseItem AddEllipse(double x, double y, double w, double h, QPen pen, QBrush brush)
 {
     return (QGraphicsEllipseItem) interceptor.Invoke("addEllipse$$$$##", "addEllipse(qreal, qreal, qreal, qreal, const QPen&, const QBrush&)", typeof(QGraphicsEllipseItem), typeof(double), x, typeof(double), y, typeof(double), w, typeof(double), h, typeof(QPen), pen, typeof(QBrush), brush);
 }
Пример #17
0
 public QGraphicsLineItem AddLine(QLineF line, QPen pen)
 {
     return (QGraphicsLineItem) interceptor.Invoke("addLine##", "addLine(const QLineF&, const QPen&)", typeof(QGraphicsLineItem), typeof(QLineF), line, typeof(QPen), pen);
 }
Пример #18
0
 public QGraphicsRectItem AddRect(double x, double y, double w, double h, QPen pen)
 {
     return((QGraphicsRectItem)interceptor.Invoke("addRect$$$$#", "addRect(qreal, qreal, qreal, qreal, const QPen&)", typeof(QGraphicsRectItem), typeof(double), x, typeof(double), y, typeof(double), w, typeof(double), h, typeof(QPen), pen));
 }
Пример #19
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);
 }
Пример #20
0
 public QPen(QPen pen) : this((Type)null)
 {
     CreateProxy();
     interceptor.Invoke("QPen#", "QPen(const QPen&)", typeof(void), typeof(QPen), pen);
 }
Пример #21
0
 public QGraphicsRectItem AddRect(QRectF rect, QPen pen)
 {
     return (QGraphicsRectItem) interceptor.Invoke("addRect##", "addRect(const QRectF&, const QPen&)", typeof(QGraphicsRectItem), typeof(QRectF), rect, typeof(QPen), pen);
 }
Пример #22
0
 public void SetPen(QPen pen)
 {
     interceptor.Invoke("setPen#", "setPen(const QPen&)", typeof(void), typeof(QPen), pen);
 }
Пример #23
0
 public void SetPen(QPen pen)
 {
     interceptor.Invoke("setPen#", "setPen(const QPen&)", typeof(void), typeof(QPen), pen);
 }
Пример #24
0
 public void StrokePath(QPainterPath path, QPen pen)
 {
     interceptor.Invoke("strokePath##", "strokePath(const QPainterPath&, const QPen&)", typeof(void), typeof(QPainterPath), path, typeof(QPen), pen);
 }
Пример #25
0
Файл: Qt.cs Проект: KDE/qyoto
 public static QDataStream Write(QDataStream arg1, QPen arg2)
 {
     return (QDataStream) staticInterceptor.Invoke("operator<<##", "operator<<(QDataStream&, const QPen&)", typeof(QDataStream), typeof(QDataStream), arg1, typeof(QPen), arg2);
 }
Пример #26
0
 public void SetTextOutline(QPen pen)
 {
     interceptor.Invoke("setTextOutline#", "setTextOutline(const QPen&)", typeof(void), typeof(QPen), pen);
 }