Qyoto  4.0.6
Qyoto is a C# language binding for Qt
 All Classes Namespaces Functions Variables Typedefs Enumerations Properties
QtGui.QStylePainter Class Reference
Inheritance diagram for QtGui.QStylePainter:
Collaboration diagram for QtGui.QStylePainter:

Public Member Functions

 QStylePainter ()
 
 
 QStylePainter (QWidget w)
 
 
 QStylePainter (IQPaintDevice pd, QWidget w)
 
 
override void CreateProxy ()
 
new bool Begin (QWidget w)
 
 
new bool Begin (IQPaintDevice pd, QWidget w)
 
 
new void DrawComplexControl (QStyle.ComplexControl cc, QStyleOptionComplex opt)
 
 
new void DrawControl (QStyle.ControlElement ce, QStyleOption opt)
 
 
new void DrawItemPixmap (QRect r, int flags, QPixmap pixmap)
 
 
new void DrawItemText (QRect r, int flags, QPalette pal, bool enabled, string text, QPalette.ColorRole textRole=QPalette.ColorRole.NoRole)
 
 
new void DrawPrimitive (QStyle.PrimitiveElement pe, QStyleOption opt)
 
 
new void Dispose ()
 
- Public Member Functions inherited from QtGui.QPainter
 QPainter ()
 
 
 QPainter (IQPaintDevice device)
 
 
new bool Begin (IQPaintDevice device)
 
 
new void BeginNativePainting ()
 
 
new QRectF BoundingRect (QRectF rect, string text)
 
 
new QRectF BoundingRect (QRectF rect, string text, QTextOption o)
 
 
new QRectF BoundingRect (QRectF rect, int flags, string text)
 
 
new QRect BoundingRect (QRect rect, int flags, string text)
 
 
new QRect BoundingRect (int x, int y, int w, int h, int flags, string text)
 
 
new QMatrix CombinedMatrix ()
 
 
new QTransform CombinedTransform ()
 
 
new void DrawArc (QRectF rect, int a, int alen)
 
 
new void DrawArc (QRect rectangle, int a, int alen)
 
 
new void DrawArc (int x, int y, int w, int h, int a, int alen)
 
 
new void DrawChord (QRectF rect, int a, int alen)
 
 
new void DrawChord (QRect rectangle, int a, int alen)
 
 
new void DrawChord (int x, int y, int w, int h, int a, int alen)
 
 
new void DrawConvexPolygon (QPolygonF polygon)
 
 
new void DrawConvexPolygon (QPolygon polygon)
 
 
new void DrawConvexPolygon (QPointF points, int pointCount)
 
 
new void DrawConvexPolygon (QPoint points, int pointCount)
 
 
new void DrawEllipse (QRectF r)
 
 
new void DrawEllipse (QRect r)
 
 
new void DrawEllipse (QPointF center, double rx, double ry)
 
 
new void DrawEllipse (QPoint center, int rx, int ry)
 
 
new void DrawEllipse (int x, int y, int w, int h)
 
 
new void DrawGlyphRun (QPointF position, QGlyphRun glyphRun)
 
 
new void DrawImage (QRectF r, QImage image)
 
 
new void DrawImage (QRect r, QImage image)
 
 
new void DrawImage (QPointF p, QImage image)
 
 
new void DrawImage (QPoint p, QImage image)
 
 
new void DrawImage (QRectF targetRect, QImage image, QRectF sourceRect, Qt.ImageConversionFlag flags=Qt.ImageConversionFlag.AutoColor)
 
 
new void DrawImage (QRect targetRect, QImage image, QRect sourceRect, Qt.ImageConversionFlag flags=Qt.ImageConversionFlag.AutoColor)
 
 
new void DrawImage (QPointF p, QImage image, QRectF sr, Qt.ImageConversionFlag flags=Qt.ImageConversionFlag.AutoColor)
 
 
new void DrawImage (QPoint p, QImage image, QRect sr, Qt.ImageConversionFlag flags=Qt.ImageConversionFlag.AutoColor)
 
 
new void DrawImage (int x, int y, QImage image, int sx=0, int sy=0, int sw=-1, int sh=-1, Qt.ImageConversionFlag flags=Qt.ImageConversionFlag.AutoColor)
 
 
new void DrawLine (QLineF line)
 
 
new void DrawLine (QLine line)
 
 
new void DrawLine (QPoint p1, QPoint p2)
 
 
new void DrawLine (QPointF p1, QPointF p2)
 
 
new void DrawLine (int x1, int y1, int x2, int y2)
 
 
new void DrawLines (QLineF lines, int lineCount)
 
 
new void DrawLines (QPointF pointPairs, int lineCount)
 
 
new void DrawLines (QLine lines, int lineCount)
 
 
new void DrawLines (QPoint pointPairs, int lineCount)
 
 
new void DrawLines (System.Collections.Generic.List< QLineF > lines)
 
 
new void DrawLines (System.Collections.Generic.List< QPointF > pointPairs)
 
 
new void DrawLines (System.Collections.Generic.List< QLine > lines)
 
 
new void DrawLines (System.Collections.Generic.List< QPoint > pointPairs)
 
 
new void DrawPath (QPainterPath path)
 
 
new void DrawPicture (QPointF p, QPicture picture)
 
 
new void DrawPicture (QPoint p, QPicture picture)
 
 
new void DrawPicture (int x, int y, QPicture picture)
 
 
new void DrawPie (QRectF rect, int a, int alen)
 
 
new void DrawPie (QRect rectangle, int a, int alen)
 
 
new void DrawPie (int x, int y, int w, int h, int a, int alen)
 
 
new void DrawPixmap (QPointF p, QPixmap pm)
 
 
new void DrawPixmap (QPoint p, QPixmap pm)
 
 
new void DrawPixmap (QRect r, QPixmap pm)
 
 
new void DrawPixmap (QRectF targetRect, QPixmap pixmap, QRectF sourceRect)
 
 
new void DrawPixmap (QRect targetRect, QPixmap pixmap, QRect sourceRect)
 
 
new void DrawPixmap (QPointF p, QPixmap pm, QRectF sr)
 
 
new void DrawPixmap (QPoint p, QPixmap pm, QRect sr)
 
 
new void DrawPixmap (int x, int y, QPixmap pm)
 
 
new void DrawPixmap (int x, int y, QPixmap pm, int sx, int sy, int sw, int sh)
 
 
new void DrawPixmap (int x, int y, int w, int h, QPixmap pm)
 
 
new void DrawPixmap (int x, int y, int w, int h, QPixmap pm, int sx, int sy, int sw, int sh)
 
 
new void DrawPixmapFragments (QRectF targetRects, QRectF sourceRects, int fragmentCount, QPixmap pixmap, QPainter.PixmapFragmentHint hints=0)
 
 
new void DrawPixmapFragments (QPainter.PixmapFragment fragments, int fragmentCount, QPixmap pixmap, QPainter.PixmapFragmentHint hints=0)
 
 
new void DrawPoint (QPointF pt)
 
 
new void DrawPoint (QPoint p)
 
 
new void DrawPoint (int x, int y)
 
 
new void DrawPoints (QPolygonF points)
 
 
new void DrawPoints (QPolygon points)
 
 
new void DrawPoints (QPointF points, int pointCount)
 
 
new void DrawPoints (QPoint points, int pointCount)
 
 
new void DrawPolygon (QPolygonF polygon, Qt.FillRule fillRule=Qt.FillRule.OddEvenFill)
 
 
new void DrawPolygon (QPolygon polygon, Qt.FillRule fillRule=Qt.FillRule.OddEvenFill)
 
 
new void DrawPolygon (QPointF points, int pointCount, Qt.FillRule fillRule=Qt.FillRule.OddEvenFill)
 
 
new void DrawPolygon (QPoint points, int pointCount, Qt.FillRule fillRule=Qt.FillRule.OddEvenFill)
 
 
new void DrawPolyline (QPolygonF polyline)
 
 
new void DrawPolyline (QPolygon polygon)
 
 
new void DrawPolyline (QPointF points, int pointCount)
 
 
new void DrawPolyline (QPoint points, int pointCount)
 
 
new void DrawRect (QRectF rect)
 
 
new void DrawRect (QRect rect)
 
 
new void DrawRect (int x1, int y1, int w, int h)
 
 
new void DrawRects (QRectF rects, int rectCount)
 
 
new void DrawRects (QRect rects, int rectCount)
 
 
new void DrawRects (System.Collections.Generic.List< QRectF > rectangles)
 
 
new void DrawRects (System.Collections.Generic.List< QRect > rectangles)
 
 
new void DrawRoundRect (QRectF r, int xround=25, int yround=25)
 
 
new void DrawRoundRect (QRect r, int xround=25, int yround=25)
 
 
new void DrawRoundRect (int x, int y, int w, int h, int xRnd=25, int yRnd=25)
 
 
new void DrawRoundedRect (QRectF rect, double xRadius, double yRadius, Qt.SizeMode mode=Qt.SizeMode.AbsoluteSize)
 
 
new void DrawRoundedRect (QRect rect, double xRadius, double yRadius, Qt.SizeMode mode=Qt.SizeMode.AbsoluteSize)
 
 
new void DrawRoundedRect (int x, int y, int w, int h, double xRadius, double yRadius, Qt.SizeMode mode=Qt.SizeMode.AbsoluteSize)
 
 
new void DrawStaticText (QPointF topLeftPosition, QStaticText staticText)
 
 
new void DrawStaticText (QPoint topLeftPosition, QStaticText staticText)
 
 
new void DrawStaticText (int left, int top, QStaticText staticText)
 
 
new void DrawText (QPointF p, string s)
 
 
new void DrawText (QPoint p, string s)
 
 
new void DrawText (QRectF r, string text)
 
 
new void DrawText (QRectF r, string text, QTextOption o)
 
 
new void DrawText (QRectF r, int flags, string text, QRectF br=null)
 
 
new void DrawText (QRect r, int flags, string text, QRect br=null)
 
 
new void DrawText (QPointF p, string str, int tf, int justificationPadding)
 
new void DrawText (int x, int y, string s)
 
 
new void DrawText (int x, int y, int w, int h, int flags, string text, QRect br=null)
 
 
new void DrawTextItem (QPointF p, QTextItem ti)
 
new void DrawTextItem (QPoint p, QTextItem ti)
 
new void DrawTextItem (int x, int y, QTextItem ti)
 
new void DrawTiledPixmap (QRectF rect, QPixmap pm)
 
 
new void DrawTiledPixmap (QRect rectangle, QPixmap pixmap)
 
 
new void DrawTiledPixmap (QRectF rect, QPixmap pm, QPointF offset)
 
 
new void DrawTiledPixmap (QRect rectangle, QPixmap pixmap, QPoint position)
 
 
new void DrawTiledPixmap (int x, int y, int w, int h, QPixmap pixmap, int sx=0, int sy=0)
 
 
new void EndNativePainting ()
 
 
new void EraseRect (QRectF rectangle)
 
 
new void EraseRect (QRect rectangle)
 
 
new void EraseRect (int x, int y, int w, int h)
 
 
new void FillPath (QPainterPath path, QBrush brush)
 
 
new void FillRect (QRectF rectangle, QBrush brush)
 
 
new void FillRect (QRect rectangle, QBrush brush)
 
 
new void FillRect (QRectF rectangle, QColor color)
 
 
new void FillRect (QRect rectangle, QColor color)
 
 
new void FillRect (QRect r, Qt.GlobalColor c)
 
 
new void FillRect (QRectF r, Qt.GlobalColor c)
 
 
new void FillRect (QRect r, Qt.BrushStyle style)
 
 
new void FillRect (QRectF r, Qt.BrushStyle style)
 
 
new void FillRect (int x, int y, int w, int h, QBrush brush)
 
 
new void FillRect (int x, int y, int w, int h, QColor color)
 
 
new void FillRect (int x, int y, int w, int h, Qt.GlobalColor c)
 
 
new void FillRect (int x, int y, int w, int h, Qt.BrushStyle style)
 
 
new void InitFrom (QWidget widget)
 
 
new void ResetMatrix ()
 
 
new void ResetTransform ()
 
 
new void Restore ()
 
 
new void Rotate (double a)
 
 
new void Save ()
 
 
new void Scale (double sx, double sy)
 
 
new void SetBrush (Qt.BrushStyle style)
 
 
new void SetBrushOrigin (QPointF position)
 
 
new void SetBrushOrigin (int x, int y)
 
 
new void SetClipPath (QPainterPath path, Qt.ClipOperation op=Qt.ClipOperation.ReplaceClip)
 
 
new void SetClipRect (QRectF rectangle, Qt.ClipOperation op=Qt.ClipOperation.ReplaceClip)
 
 
new void SetClipRect (QRect rectangle, Qt.ClipOperation op=Qt.ClipOperation.ReplaceClip)
 
 
new void SetClipRect (int x, int y, int w, int h, Qt.ClipOperation op=Qt.ClipOperation.ReplaceClip)
 
 
new void SetClipRegion (QRegion region, Qt.ClipOperation op=Qt.ClipOperation.ReplaceClip)
 
 
new void SetClipping (bool enable)
 
 
new void SetMatrix (QMatrix matrix, bool combine=false)
 
 
new void SetPen (QColor color)
 
 
new void SetPen (Qt.PenStyle style)
 
 
new void SetRenderHint (QPainter.RenderHint hint, bool on=true)
 
 
new void SetRenderHints (QPainter.RenderHint hints, bool on=true)
 
 
new void SetTransform (QTransform transform, bool combine=false)
 
 
new void SetViewport (int x, int y, int w, int h)
 
 
new void SetWindow (int x, int y, int w, int h)
 
 
new void SetWorldMatrix (QMatrix matrix, bool combine=false)
 
 
new void SetWorldTransform (QTransform matrix, bool combine=false)
 
 
new void Shear (double sh, double sv)
 
 
new void StrokePath (QPainterPath path, QPen pen)
 
 
new bool TestRenderHint (QPainter.RenderHint hint)
 
 
new void Translate (QPointF offset)
 
 
new void Translate (QPoint offset)
 
 
new void Translate (double dx, double dy)
 
 
new void Dispose ()
 

Protected Member Functions

 QStylePainter (System.Type dummy)
 
- Protected Member Functions inherited from QtGui.QPainter
 QPainter (System.Type dummy)
 

Properties

QStyle Style [get]
 
 
- Properties inherited from QtGui.QPainter
QBrush Background [get, set]
 
 
Qt.BGMode BackgroundMode [get, set]
 
 
QBrush Brush [get, set]
 
 
QPoint BrushOrigin [get, set]
 
 
QPainter.CompositionMode compositionMode [get, set]
 
 
QFont Font [get, set]
 
 
Qt.LayoutDirection LayoutDirection [get, set]
 
 
bool MatrixEnabled [get, set]
 
 
double Opacity [get, set]
 
 
QPen Pen [get, set]
 
 
bool ViewTransformEnabled [get, set]
 
 
QRect Viewport [get, set]
 
 
QRect Window [get, set]
 
 
bool WorldMatrixEnabled [get, set]
 
 
QPainterPath ClipPath [get]
 
 
QRegion ClipRegion [get]
 
 
QMatrix Matrix [get]
 
 
QPainter.RenderHint RenderHints [get]
 
 
QTransform Transform [get]
 
 
QMatrix WorldMatrix [get]
 
 
QTransform WorldTransform [get]
 
 
QRectF ClipBoundingRect [get]
 
 
IQPaintDevice Device [get]
 
 
QMatrix DeviceMatrix [get]
 
 
QTransform DeviceTransform [get]
 
 
bool End [get]
 
 
QFontInfo FontInfo [get]
 
 
QFontMetrics FontMetrics [get]
 
 
bool HasClipping [get]
 
 
bool IsActive [get]
 
 
QPaintEngine PaintEngine [get]
 
 
virtual System.IntPtr SmokeObject [get, set]
 
static new QMetaObject StaticMetaObject [get]
 

Additional Inherited Members

- Public Types inherited from QtGui.QPainter
enum  CompositionMode {
  CompositionMode_Clear = 2, CompositionMode_ColorBurn = 19, CompositionMode_ColorDodge = 18, CompositionMode_Darken = 16,
  CompositionMode_Destination = 4, CompositionMode_DestinationAtop = 10, CompositionMode_DestinationIn = 6, CompositionMode_DestinationOut = 8,
  CompositionMode_DestinationOver = 1, CompositionMode_Difference = 22, CompositionMode_Exclusion = 23, CompositionMode_HardLight = 20,
  CompositionMode_Lighten = 17, CompositionMode_Multiply = 13, CompositionMode_Overlay = 15, CompositionMode_Plus = 12,
  CompositionMode_Screen = 14, CompositionMode_SoftLight = 21, CompositionMode_Source = 3, CompositionMode_SourceAtop = 9,
  CompositionMode_SourceIn = 5, CompositionMode_SourceOut = 7, CompositionMode_SourceOver = 0, CompositionMode_Xor = 11,
  RasterOp_NotSource = 30, RasterOp_NotSourceAndDestination = 31, RasterOp_NotSourceAndNotDestination = 27, RasterOp_NotSourceOrNotDestination = 28,
  RasterOp_NotSourceXorDestination = 29, RasterOp_SourceAndDestination = 25, RasterOp_SourceAndNotDestination = 32, RasterOp_SourceOrDestination = 24,
  RasterOp_SourceXorDestination = 26
}
  More...
 
enum  PixmapFragmentHint { OpaqueHint = 1 }
  More...
 
enum  RenderHint {
  Antialiasing = 1, HighQualityAntialiasing = 8, NonCosmeticDefaultPen = 16, SmoothPixmapTransform = 4,
  TextAntialiasing = 2
}
  More...
 
- Static Public Member Functions inherited from QtGui.QPainter
static IQPaintDevice Redirected (IQPaintDevice device, QPoint offset=null)
 
 
static void RestoreRedirected (IQPaintDevice device)
 
 
static void SetRedirected (IQPaintDevice device, IQPaintDevice replacement)
 
 
static void SetRedirected (IQPaintDevice device, IQPaintDevice replacement, QPoint offset)
 
 
- Protected Attributes inherited from QtGui.QPainter
SmokeInvocation interceptor
 

Constructor & Destructor Documentation

QtGui.QStylePainter.QStylePainter ( System.Type  dummy)
protected
QtGui.QStylePainter.QStylePainter ( )

Constructs a QStylePainter.

QtGui.QStylePainter.QStylePainter ( QWidget  w)

Construct a QStylePainter using widget widget for its paint device.

QtGui.QStylePainter.QStylePainter ( IQPaintDevice  pd,
QWidget  w 
)

Construct a QStylePainter using pd for its paint device, and attributes from widget.

Member Function Documentation

new bool QtGui.QStylePainter.Begin ( QWidget  w)

Begin painting operations on the specified widget. Returns true if the painter is ready to use; otherwise returns false.

This is automatically called by the constructor that takes a QWidget.

new bool QtGui.QStylePainter.Begin ( IQPaintDevice  pd,
QWidget  w 
)

This is an overloaded function.

Begin painting operations on paint device pd as if it was widget.

This is automatically called by the constructor that takes a QPaintDevice and a QWidget.

override void QtGui.QStylePainter.CreateProxy ( )
virtual

Reimplemented from QtGui.QPainter.

new void QtGui.QStylePainter.Dispose ( )
new void QtGui.QStylePainter.DrawComplexControl ( QStyle.ComplexControl  cc,
QStyleOptionComplex  opt 
)

Use the widget's style to draw a complex control cc specified by the QStyleOptionComplex option.

See also QStyle::drawComplexControl().

new void QtGui.QStylePainter.DrawControl ( QStyle.ControlElement  ce,
QStyleOption  opt 
)

Use the widget's style to draw a control element ce specified by QStyleOption option.

See also QStyle::drawControl().

new void QtGui.QStylePainter.DrawItemPixmap ( QRect  r,
int  flags,
QPixmap  pixmap 
)

Draws the pixmap in rectangle rect. The pixmap is aligned according to flags.

See also QStyle::drawItemPixmap() and Qt::Alignment.

new void QtGui.QStylePainter.DrawItemText ( QRect  r,
int  flags,
QPalette  pal,
bool  enabled,
string  text,
QPalette.ColorRole  textRole = QPalette.ColorRole.NoRole 
)

Draws the text in rectangle rect and palette pal. The text is aligned and wrapped according to flags.

The pen color is specified with textRole. The enabled bool indicates whether or not the item is enabled; when reimplementing this bool should influence how the item is drawn.

See also QStyle::drawItemText() and Qt::Alignment.

new void QtGui.QStylePainter.DrawPrimitive ( QStyle.PrimitiveElement  pe,
QStyleOption  opt 
)

Use the widget's style to draw a primitive element pe specified by QStyleOption option.

See also QStyle::drawPrimitive().

Property Documentation

QStyle QtGui.QStylePainter.Style
get

Return the current style used by the QStylePainter.