java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.gui.QPainter
io.qt.widgets.QStylePainter
- All Implemented Interfaces:
QtObjectInterface
public class QStylePainter extends QPainter
Convenience class for drawing QStyle elements inside a widget
Java wrapper for Qt class QStylePainter
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.gui.QPainter
QPainter.CompositionMode, QPainter.PixmapFragment, QPainter.PixmapFragmentHint, QPainter.PixmapFragmentHints, QPainter.RenderHint, QPainter.RenderHints
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description QStylePainter()
QStylePainter(QPaintDevice pd, QWidget w)
protected
QStylePainter(QtObject.QPrivateConstructor p)
Constructor for internal use only.QStylePainter(QWidget w)
-
Method Summary
Modifier and Type Method Description boolean
begin(QPaintDevice pd, QWidget w)
boolean
begin(QWidget w)
void
drawComplexControl(QStyle.ComplexControl cc, QStyleOptionComplex opt)
void
drawControl(QStyle.ControlElement ce, QStyleOption opt)
void
drawItemPixmap(QRect r, int flags, QPixmap pixmap)
void
drawItemText(QRect r, int flags, QPalette pal, boolean enabled, String text)
Overloaded function fordrawItemText(io.qt.core.QRect, int, io.qt.gui.QPalette, boolean, java.lang.String, io.qt.gui.QPalette.ColorRole)
withtextRole = io.qt.gui.QPalette.ColorRole.NoRole
.void
drawItemText(QRect r, int flags, QPalette pal, boolean enabled, String text, QPalette.ColorRole textRole)
void
drawPrimitive(QStyle.PrimitiveElement pe, QStyleOption opt)
QStyle
style()
Methods inherited from class io.qt.gui.QPainter
background, backgroundMode, begin, beginNativePainting, boundingRect, boundingRect, boundingRect, boundingRect, boundingRect, brush, brushOrigin, clipBoundingRect, clipPath, clipRegion, combinedTransform, compositionMode, device, deviceTransform, drawArc, drawArc, drawArc, drawChord, drawChord, drawChord, drawConvexPolygon, drawConvexPolygon, drawConvexPolygon, drawConvexPolygon, drawEllipse, drawEllipse, drawEllipse, drawEllipse, drawEllipse, drawGlyphRun, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawLine, drawLine, drawLine, drawLine, drawLine, drawLines, drawLines, drawLines, drawLines, drawLines, drawLinesF, drawLinesFromPoints, drawLinesFromPointsF, drawPath, drawPicture, drawPicture, drawPicture, drawPie, drawPie, drawPie, drawPixmap, drawPixmap, drawPixmap, drawPixmap, drawPixmap, drawPixmap, drawPixmap, drawPixmap, drawPixmap, drawPixmap, drawPixmap, drawPixmapFragments, drawPixmapFragments, drawPixmapFragments, drawPoint, drawPoint, drawPoint, drawPoints, drawPoints, drawPoints, drawPoints, drawPolygon, drawPolygon, drawPolygon, drawPolygon, drawPolygon, drawPolygon, drawPolygon, drawPolygon, drawPolyline, drawPolyline, drawPolyline, drawPolyline, drawRect, drawRect, drawRect, drawRects, drawRects, drawRects, drawRectsF, drawRoundedRect, drawRoundedRect, drawRoundedRect, drawRoundedRect, drawRoundedRect, drawRoundedRect, drawStaticText, drawStaticText, drawStaticText, drawText, drawText, drawText, drawText, drawText, drawText, drawText, drawText, drawText, drawText, drawText, drawTextItem, drawTextItem, drawTextItem, drawTiledPixmap, drawTiledPixmap, drawTiledPixmap, drawTiledPixmap, drawTiledPixmap, drawTiledPixmap, drawTiledPixmap, end, endNativePainting, eraseRect, eraseRect, eraseRect, fillPath, fillRect, fillRect, fillRect, fillRect, fillRect, fillRect, fillRect, fillRect, fillRect, fillRect, fillRect, fillRect, fillRect, fillRect, fillRect, font, fontInfo, fontMetrics, hasClipping, isActive, layoutDirection, opacity, paintEngine, pen, renderHints, resetTransform, restore, rotate, save, scale, setBackground, setBackgroundMode, setBrush, setBrush, setBrush, setBrush, setBrush, setBrush, setBrushOrigin, setBrushOrigin, setBrushOrigin, setClipPath, setClipPath, setClipping, setClipRect, setClipRect, setClipRect, setClipRect, setClipRect, setClipRect, setClipRegion, setClipRegion, setCompositionMode, setFont, setLayoutDirection, setOpacity, setPen, setPen, setPen, setRenderHint, setRenderHint, setRenderHints, setRenderHints, setTransform, setTransform, setViewport, setViewport, setViewTransformEnabled, setWindow, setWindow, setWorldMatrixEnabled, setWorldTransform, setWorldTransform, shear, strokePath, testRenderHint, transform, translate, translate, translate, viewport, viewTransformEnabled, window, worldMatrixEnabled, worldTransform
-
Constructor Details
-
QStylePainter
public QStylePainter() -
QStylePainter
-
QStylePainter
-
QStylePainter
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
begin
-
begin
-
drawComplexControl
@QtUninvokable public final void drawComplexControl(QStyle.ComplexControl cc, QStyleOptionComplex opt) -
drawControl
-
drawItemPixmap
-
drawItemText
@QtUninvokable public final void drawItemText(QRect r, int flags, QPalette pal, boolean enabled, String text)Overloaded function for
drawItemText(io.qt.core.QRect, int, io.qt.gui.QPalette, boolean, java.lang.String, io.qt.gui.QPalette.ColorRole)
withtextRole = io.qt.gui.QPalette.ColorRole.NoRole
. -
drawItemText
@QtUninvokable public final void drawItemText(QRect r, int flags, QPalette pal, boolean enabled, String text, QPalette.ColorRole textRole) -
drawPrimitive
-
style
-