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); } }
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); }
public QPen(QPen pen) : this((Type) null) { CreateProxy(); interceptor.Invoke("QPen#", "QPen(const QPen&)", typeof(void), typeof(QPen), pen); }
public void SetTextOutline(QPen pen) { interceptor.Invoke("setTextOutline#", "setTextOutline(const QPen&)", typeof(void), typeof(QPen), pen); }
public static QDataStream Read(QDataStream arg1, QPen arg2) { return (QDataStream) staticInterceptor.Invoke("operator>>##", "operator>>(QDataStream&, QPen&)", typeof(QDataStream), typeof(QDataStream), arg1, typeof(QPen), arg2); }
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); }
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); }
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); }
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)); }
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)); }
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)); }
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)); }
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)); }
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)); }
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)); }
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); }
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); }
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)); }
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); }
public QPen(QPen pen) : this((Type)null) { CreateProxy(); interceptor.Invoke("QPen#", "QPen(const QPen&)", typeof(void), typeof(QPen), pen); }
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); }
public void SetPen(QPen pen) { interceptor.Invoke("setPen#", "setPen(const QPen&)", typeof(void), typeof(QPen), pen); }
public void StrokePath(QPainterPath path, QPen pen) { interceptor.Invoke("strokePath##", "strokePath(const QPainterPath&, const QPen&)", typeof(void), typeof(QPainterPath), path, typeof(QPen), pen); }
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); }