- All Implemented Interfaces:
QtObjectInterface
,Cloneable
- Enclosing class:
QAbstractTextDocumentLayout
QAbstractTextDocumentLayout::PaintContext class is a convenience class defining the parameters used when painting a document's layout
Java wrapper for Qt class QAbstractTextDocumentLayout::PaintContext
-
Constructor Summary
ConstructorDescriptionSeeQAbstractTextDocumentLayout::PaintContext::
PaintContext() SeeQAbstractTextDocumentLayout::PaintContext::
PaintContext(QAbstractTextDocumentLayout::PaintContext) -
Method Summary
Modifier and TypeMethodDescriptionfinal QRectF
clip()
Hint to the layout specifying the area around paragraphs, frames or text require paintingclone()
Creates and returns a copy of this object.final int
The position within the document, where the cursor line should be drawnfinal boolean
Seeoperator==(QAbstractTextDocumentLayout::PaintContext,
QAbstractTextDocumentLayout::PaintContext) boolean
Seeoperator==(QAbstractTextDocumentLayout::PaintContext,
QAbstractTextDocumentLayout::PaintContext) int
hashCode()
Returns the objects's hash code computed byqHash(QAbstractTextDocumentLayout::PaintContext)
.final QPalette
palette()
The default color that is used for the text, when no color is specifiedThe collection of selections that will be rendered when passing this paint context to QAbstractTextDocumentLayout's draw() functionfinal void
Overloaded function forsetClip(io.qt.core.QRectF)
.final void
Hint to the layout specifying the area around paragraphs, frames or text require paintingfinal void
setCursorPosition
(int cursorPosition) The position within the document, where the cursor line should be drawnfinal void
setPalette
(QPalette palette) The default color that is used for the text, when no color is specifiedfinal void
setSelections
(Collection<? extends QAbstractTextDocumentLayout.Selection> selections) The collection of selections that will be rendered when passing this paint context to QAbstractTextDocumentLayout's draw() functionMethods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
PaintContext
public PaintContext()See
QAbstractTextDocumentLayout::PaintContext::
PaintContext() -
PaintContext
See
QAbstractTextDocumentLayout::PaintContext::
PaintContext(QAbstractTextDocumentLayout::PaintContext) - Parameters:
other
-
-
-
Method Details
-
equals
See
operator==(QAbstractTextDocumentLayout::PaintContext,
QAbstractTextDocumentLayout::PaintContext) - Parameters:
v2
-- Returns:
-
setClip
Hint to the layout specifying the area around paragraphs, frames or text require painting
- Parameters:
clip
-
-
clip
Hint to the layout specifying the area around paragraphs, frames or text require painting
- Returns:
-
setCursorPosition
The position within the document, where the cursor line should be drawn
See
QAbstractTextDocumentLayout::PaintContext::
cursorPosition - Parameters:
cursorPosition
-
-
cursorPosition
The position within the document, where the cursor line should be drawn
See
QAbstractTextDocumentLayout::PaintContext::
cursorPosition - Returns:
-
setPalette
The default color that is used for the text, when no color is specified
- Parameters:
palette
-
-
palette
The default color that is used for the text, when no color is specified
- Returns:
-
setSelections
@QtUninvokable public final void setSelections(Collection<? extends QAbstractTextDocumentLayout.Selection> selections) The collection of selections that will be rendered when passing this paint context to QAbstractTextDocumentLayout's draw() function
- Parameters:
selections
-
-
selections
The collection of selections that will be rendered when passing this paint context to QAbstractTextDocumentLayout's draw() function
- Returns:
-
equals
See
operator==(QAbstractTextDocumentLayout::PaintContext,
QAbstractTextDocumentLayout::PaintContext) -
hashCode
Returns the objects's hash code computed byqHash(QAbstractTextDocumentLayout::PaintContext)
. -
clone
Creates and returns a copy of this object.
See
QAbstractTextDocumentLayout::PaintContext::
PaintContext(QAbstractTextDocumentLayout::PaintContext) -
setClip
Overloaded function for
setClip(io.qt.core.QRectF)
.
-