- All Implemented Interfaces:
QtObjectInterface
,Cloneable
- Enclosing class:
- QAbstractTextDocumentLayout
public static class QAbstractTextDocumentLayout.PaintContext extends QtObject implements Cloneable
QAbstractTextDocumentLayout::PaintContext class is a convenience class defining the parameters used when painting a document's layout
Java wrapper for Qt class QAbstractTextDocumentLayout::PaintContext
-
Nested Class Summary
-
Constructor Summary
Constructors Modifier Constructor Description PaintContext()
protected
PaintContext(QtObject.QPrivateConstructor p)
Constructor for internal use only. -
Method Summary
Modifier and Type Method Description QRectF
clip()
Hint to the layout specifying the area around paragraphs, frames or text require paintingQAbstractTextDocumentLayout.PaintContext
clone()
int
cursorPosition()
The position within the document, where the cursor line should be drawnQPalette
palette()
The default color that is used for the text, when no color is specifiedQVector<QAbstractTextDocumentLayout.Selection>
selections()
The collection of selections that will be rendered when passing this paint context to QAbstractTextDocumentLayout's draw() functionvoid
setClip(QRectF clip)
Hint to the layout specifying the area around paragraphs, frames or text require paintingvoid
setCursorPosition(int cursorPosition)
The position within the document, where the cursor line should be drawnvoid
setPalette(QPalette palette)
The default color that is used for the text, when no color is specifiedvoid
setSelections(Collection<QAbstractTextDocumentLayout.Selection> selections)
The collection of selections that will be rendered when passing this paint context to QAbstractTextDocumentLayout's draw() function
-
Constructor Details
-
PaintContext
public PaintContext() -
PaintContext
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
setCursorPosition
The position within the document, where the cursor line should be drawn
See QAbstractTextDocumentLayout::PaintContext::setCursorPosition(int cursorPosition)
-
cursorPosition
The position within the document, where the cursor line should be drawn
See QAbstractTextDocumentLayout::PaintContext::cursorPosition()
-
setClip
Hint to the layout specifying the area around paragraphs, frames or text require painting
See QAbstractTextDocumentLayout::PaintContext::setClip(const QRectF & clip)
-
clip
Hint to the layout specifying the area around paragraphs, frames or text require painting
-
setSelections
@QtUninvokable public final void setSelections(Collection<QAbstractTextDocumentLayout.Selection> selections)The collection of selections that will be rendered when passing this paint context to QAbstractTextDocumentLayout's draw() function
-
selections
The collection of selections that will be rendered when passing this paint context to QAbstractTextDocumentLayout's draw() function
-
setPalette
The default color that is used for the text, when no color is specified
See QAbstractTextDocumentLayout::PaintContext::setPalette(const QPalette & palette)
-
palette
The default color that is used for the text, when no color is specified
-
clone
-