private double wheelsAngle; // used when applying rotation #endregion Fields #region Constructors public Car() : base() { color = new QBrush(Qt.GlobalColor.green); wheelsAngle = 0; speed = 0; SetFlag(QGraphicsItem.GraphicsItemFlag.ItemIsMovable, true); SetFlag(QGraphicsItem.GraphicsItemFlag.ItemIsFocusable, true); }
public QPen(QBrush brush, double width) : this((Type) null) { CreateProxy(); interceptor.Invoke("QPen#$", "QPen(const QBrush&, qreal)", typeof(void), typeof(QBrush), brush, typeof(double), width); }
public void SetBrush(QBrush brush) { interceptor.Invoke("setBrush#", "setBrush(const QBrush&)", typeof(void), typeof(QBrush), brush); }
public void FillRect(int x, int y, int w, int h, QBrush arg5) { interceptor.Invoke("fillRect$$$$#", "fillRect(int, int, int, int, const QBrush&)", typeof(void), typeof(int), x, typeof(int), y, typeof(int), w, typeof(int), h, typeof(QBrush), arg5); }
public void SetBackground(QBrush bg) { interceptor.Invoke("setBackground#", "setBackground(const QBrush&)", typeof(void), typeof(QBrush), bg); }
public void SetForeground(int column, QBrush brush) { interceptor.Invoke("setForeground$#", "setForeground(int, const QBrush&)", typeof(void), typeof(int), column, typeof(QBrush), brush); }
public static void QDrawWinPanel(QPainter p, int x, int y, int w, int h, QPalette pal, bool sunken, QBrush fill) { staticInterceptor.Invoke("qDrawWinPanel#$$$$#$#", "qDrawWinPanel(QPainter*, int, int, int, int, const QPalette&, bool, const QBrush*)", typeof(void), typeof(QPainter), p, typeof(int), x, typeof(int), y, typeof(int), w, typeof(int), h, typeof(QPalette), pal, typeof(bool), sunken, typeof(QBrush), fill); }
public KStatefulBrush(QBrush arg1, QBrush background) : this((Type) null) { CreateProxy(); interceptor.Invoke("KStatefulBrush##", "KStatefulBrush(const QBrush&, const QBrush&)", typeof(void), typeof(QBrush), arg1, typeof(QBrush), background); }
/// <remarks> /// Construct a stateful foreground/decoration brush from a specified /// QBrush (or QColor, via QBrush's implicit constructor). The various /// states are determined from the base QBrush (which fills in the Active /// state) according to the same rules used to build stateful color schemes /// from the system color scheme. The state effects from the given KConfig /// are used (if null, the system state effects are used). /// <param> name="background" The background brush (or color) corresponding to the /// KColorScheme.NormalBackground role and QPalette.Active state for this /// foreground/decoration color. /// </param></remarks> <short> Construct a stateful foreground/decoration brush from a specified QBrush (or QColor, via QBrush's implicit constructor).</short> public KStatefulBrush(QBrush arg1, QBrush background, KSharedConfig arg3) : this((Type) null) { CreateProxy(); interceptor.Invoke("KStatefulBrush##?", "KStatefulBrush(const QBrush&, const QBrush&, KSharedPtr<KSharedConfig>)", typeof(void), typeof(QBrush), arg1, typeof(QBrush), background, typeof(KSharedConfig), arg3); }
public QGraphicsRectItem AddRect(double x, double y, double w, double h, QPen pen, QBrush brush) { return((QGraphicsRectItem)interceptor.Invoke("addRect$$$$##", "addRect(qreal, qreal, qreal, qreal, const QPen&, const QBrush&)", typeof(QGraphicsRectItem), 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, QBrush brush) { return((QGraphicsRectItem)interceptor.Invoke("addRect###", "addRect(const QRectF&, const QPen&, const QBrush&)", typeof(QGraphicsRectItem), typeof(QRectF), rect, typeof(QPen), pen, typeof(QBrush), brush)); }
public QGraphicsPolygonItem AddPolygon(QPolygonF polygon, QPen pen, QBrush brush) { return((QGraphicsPolygonItem)interceptor.Invoke("addPolygon###", "addPolygon(const QPolygonF&, const QPen&, const QBrush&)", typeof(QGraphicsPolygonItem), typeof(QPolygonF), polygon, typeof(QPen), pen, typeof(QBrush), brush)); }
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)); }
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); }
public QGraphicsRectItem AddRect(QRectF rect, QPen pen, QBrush brush) { return (QGraphicsRectItem) interceptor.Invoke("addRect###", "addRect(const QRectF&, const QPen&, const QBrush&)", typeof(QGraphicsRectItem), typeof(QRectF), rect, typeof(QPen), pen, typeof(QBrush), brush); }
public QPen(QBrush brush, double width, Qt.PenStyle s) : this((Type)null) { CreateProxy(); interceptor.Invoke("QPen#$$", "QPen(const QBrush&, qreal, Qt::PenStyle)", typeof(void), typeof(QBrush), brush, typeof(double), width, typeof(Qt.PenStyle), s); }
public static void QDrawPlainRect(QPainter p, QRect r, QColor arg3, int lineWidth, QBrush fill) { staticInterceptor.Invoke("qDrawPlainRect###$#", "qDrawPlainRect(QPainter*, const QRect&, const QColor&, int, const QBrush*)", typeof(void), typeof(QPainter), p, typeof(QRect), r, typeof(QColor), arg3, typeof(int), lineWidth, typeof(QBrush), fill); }
public QPen(QBrush brush, double width) : this((Type)null) { CreateProxy(); interceptor.Invoke("QPen#$", "QPen(const QBrush&, qreal)", typeof(void), typeof(QBrush), brush, typeof(double), width); }
public static QDataStream Read(QDataStream arg1, QBrush arg2) { return (QDataStream) staticInterceptor.Invoke("operator>>##", "operator>>(QDataStream&, QBrush&)", typeof(QDataStream), typeof(QDataStream), arg1, typeof(QBrush), arg2); }
public QBrush(QBrush brush) : this((Type)null) { CreateProxy(); interceptor.Invoke("QBrush#", "QBrush(const QBrush&)", typeof(void), typeof(QBrush), brush); }
public QPalette(QBrush windowText, QBrush button, QBrush light, QBrush dark, QBrush mid, QBrush text, QBrush bright_text, QBrush arg8, QBrush window) : this((Type) null) { CreateProxy(); interceptor.Invoke("QPalette#########", "QPalette(const QBrush&, const QBrush&, const QBrush&, const QBrush&, const QBrush&, const QBrush&, const QBrush&, const QBrush&, const QBrush&)", typeof(void), typeof(QBrush), windowText, typeof(QBrush), button, typeof(QBrush), light, typeof(QBrush), dark, typeof(QBrush), mid, typeof(QBrush), text, typeof(QBrush), bright_text, typeof(QBrush), arg8, typeof(QBrush), window); }
public void FillPath(QPainterPath path, QBrush brush) { interceptor.Invoke("fillPath##", "fillPath(const QPainterPath&, const QBrush&)", typeof(void), typeof(QPainterPath), path, typeof(QBrush), brush); }
public static void DrawAvatar(QPainter painter, int width, int height, QPixmap avatarPixmap) { QPainterPath path = new QPainterPath(); // Draw a rect without corners. path.MoveTo(0, 1); path.LineTo(1, 1); path.LineTo(1, 0); path.LineTo(width - 1, 0); path.LineTo(width, 1); path.LineTo(width, height - 1); path.LineTo(width - 1, height - 1); path.LineTo(width - 1, height); path.LineTo(1, height); path.LineTo(1, height - 1); path.LineTo(0, height - 1); path.LineTo(0, 1); QLinearGradient g1 = new QLinearGradient(0, 0, 0, height); g1.SetColorAt(0, new QColor("#888781")); g1.SetColorAt(1, new QColor("#abaaa8")); QBrush b1 = new QBrush(g1); painter.FillPath(path, b1); painter.FillRect(1, 1, width - 2, height - 2, new QBrush(Qt.GlobalColor.black)); // Darken the corners... var b2 = new QBrush(new QColor(61, 61, 61, 102)); painter.FillRect(0, 0, 3, 3, b2); painter.FillRect(width - 3, 0, 3, 3, b2); painter.FillRect(0, width - 3, 3, 3, b2); painter.FillRect(width - 3, width - 3, 3, 3, b2); painter.DrawPixmap(2, 2, width - 4, height - 4, avatarPixmap); }
public void FillRect(QRect arg1, QBrush arg2) { interceptor.Invoke("fillRect##", "fillRect(const QRect&, const QBrush&)", typeof(void), typeof(QRect), arg1, typeof(QBrush), arg2); }
public QBrush(QBrush brush) : this((Type) null) { CreateProxy(); interceptor.Invoke("QBrush#", "QBrush(const QBrush&)", typeof(void), typeof(QBrush), brush); }
public QPen(QBrush brush, double width, Qt.PenStyle s) : this((Type) null) { CreateProxy(); interceptor.Invoke("QPen#$$", "QPen(const QBrush&, qreal, Qt::PenStyle)", typeof(void), typeof(QBrush), brush, typeof(double), width, typeof(Qt.PenStyle), s); }
public void SetForeground(QBrush brush) { interceptor.Invoke("setForeground#", "setForeground(const QBrush&)", typeof(void), typeof(QBrush), brush); }
public void SetBrush(QPalette.ColorGroup cg, QPalette.ColorRole cr, QBrush brush) { interceptor.Invoke("setBrush$$#", "setBrush(QPalette::ColorGroup, QPalette::ColorRole, const QBrush&)", typeof(void), typeof(QPalette.ColorGroup), cg, typeof(QPalette.ColorRole), cr, typeof(QBrush), brush); }
public void SetColorGroup(QPalette.ColorGroup cr, QBrush windowText, QBrush button, QBrush light, QBrush dark, QBrush mid, QBrush text, QBrush bright_text, QBrush arg9, QBrush window) { interceptor.Invoke("setColorGroup$#########", "setColorGroup(QPalette::ColorGroup, const QBrush&, const QBrush&, const QBrush&, const QBrush&, const QBrush&, const QBrush&, const QBrush&, const QBrush&, const QBrush&)", typeof(void), typeof(QPalette.ColorGroup), cr, typeof(QBrush), windowText, typeof(QBrush), button, typeof(QBrush), light, typeof(QBrush), dark, typeof(QBrush), mid, typeof(QBrush), text, typeof(QBrush), bright_text, typeof(QBrush), arg9, typeof(QBrush), window); }
public QGraphicsPolygonItem AddPolygon(QPolygonF polygon, QPen pen, QBrush brush) { return (QGraphicsPolygonItem) interceptor.Invoke("addPolygon###", "addPolygon(const QPolygonF&, const QPen&, const QBrush&)", typeof(QGraphicsPolygonItem), typeof(QPolygonF), polygon, typeof(QPen), pen, typeof(QBrush), brush); }
public QPalette(QBrush windowText, QBrush button, QBrush light, QBrush dark, QBrush mid, QBrush text, QBrush bright_text, QBrush arg8, QBrush window) : this((Type)null) { CreateProxy(); interceptor.Invoke("QPalette#########", "QPalette(const QBrush&, const QBrush&, const QBrush&, const QBrush&, const QBrush&, const QBrush&, const QBrush&, const QBrush&, const QBrush&)", typeof(void), typeof(QBrush), windowText, typeof(QBrush), button, typeof(QBrush), light, typeof(QBrush), dark, typeof(QBrush), mid, typeof(QBrush), text, typeof(QBrush), bright_text, typeof(QBrush), arg8, typeof(QBrush), window); }
public QGraphicsRectItem AddRect(double x, double y, double w, double h, QPen pen, QBrush brush) { return (QGraphicsRectItem) interceptor.Invoke("addRect$$$$##", "addRect(qreal, qreal, qreal, qreal, const QPen&, const QBrush&)", typeof(QGraphicsRectItem), typeof(double), x, typeof(double), y, typeof(double), w, typeof(double), h, typeof(QPen), pen, typeof(QBrush), brush); }
public void SetOpacityMask(QBrush mask) { interceptor.Invoke("setOpacityMask#", "setOpacityMask(const QBrush&)", typeof(void), typeof(QBrush), mask); }
public static void QDrawPlainRect(QPainter p, int x, int y, int w, int h, QColor arg6, int lineWidth, QBrush fill) { staticInterceptor.Invoke("qDrawPlainRect#$$$$#$#", "qDrawPlainRect(QPainter*, int, int, int, int, const QColor&, int, const QBrush*)", typeof(void), typeof(QPainter), p, typeof(int), x, typeof(int), y, typeof(int), w, typeof(int), h, typeof(QColor), arg6, typeof(int), lineWidth, typeof(QBrush), fill); }
public static void QDrawShadeRect(QPainter p, QRect r, QPalette pal, bool sunken, int lineWidth, int midLineWidth, QBrush fill) { staticInterceptor.Invoke("qDrawShadeRect###$$$#", "qDrawShadeRect(QPainter*, const QRect&, const QPalette&, bool, int, int, const QBrush*)", typeof(void), typeof(QPainter), p, typeof(QRect), r, typeof(QPalette), pal, typeof(bool), sunken, typeof(int), lineWidth, typeof(int), midLineWidth, typeof(QBrush), fill); }
public static void QDrawWinPanel(QPainter p, QRect r, QPalette pal, bool sunken, QBrush fill) { staticInterceptor.Invoke("qDrawWinPanel###$#", "qDrawWinPanel(QPainter*, const QRect&, const QPalette&, bool, const QBrush*)", typeof(void), typeof(QPainter), p, typeof(QRect), r, typeof(QPalette), pal, typeof(bool), sunken, typeof(QBrush), fill); }
public static QDataStream Write(QDataStream arg1, QBrush arg2) { return (QDataStream) staticInterceptor.Invoke("operator<<##", "operator<<(QDataStream&, const QBrush&)", typeof(QDataStream), typeof(QDataStream), arg1, typeof(QBrush), arg2); }
/// <remarks> /// Set a brush to be used to draw selected text. /// Use <pre>clearProperty</pre>(SelectedForeground) to clear. /// \param foreground brush to be used to draw selected text. /// </remarks> <short> Set a brush to be used to draw selected text.</short> public void SetSelectedForeground(QBrush foreground) { interceptor.Invoke("setSelectedForeground#", "setSelectedForeground(const QBrush&)", typeof(void), typeof(QBrush), foreground); }