상속: 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
파일: QPen.cs 프로젝트: micro-chen/qyoto
 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);
 }