- 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's class QAbstractTextDocumentLayout::PaintContext
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ModifierConstructorDescriptionprotected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal QRectF
clip()
Hint to the layout specifying the area around paragraphs, frames or text require paintingclone()
final int
The position within the document, where the cursor line should be drawnboolean
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical.final QRectF
getClip()
Kotlin property getter.final int
Kotlin property getter.final QPalette
Kotlin property getter.Kotlin property getter.int
hashCode()
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
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() -
PaintContext
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
setClip
Hint to the layout specifying the area around paragraphs, frames or text require painting
-
getClip
Kotlin property getter. In Java use
clip()
instead. -
clip
Hint to the layout specifying the area around paragraphs, frames or text require painting
-
setCursorPosition
The position within the document, where the cursor line should be drawn
See QAbstractTextDocumentLayout::PaintContext::cursorPosition
-
getCursorPosition
Kotlin property getter. In Java use
cursorPosition()
instead. -
cursorPosition
The position within the document, where the cursor line should be drawn
See QAbstractTextDocumentLayout::PaintContext::cursorPosition
-
setPalette
The default color that is used for the text, when no color is specified
-
getPalette
Kotlin property getter. In Java use
palette()
instead. -
palette
The default color that is used for the text, when no color is specified
-
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
-
getSelections
Kotlin property getter. In Java use
selections()
instead. -
selections
The collection of selections that will be rendered when passing this paint context to QAbstractTextDocumentLayout's draw() function
-
equals
Description copied from class:QtObject
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical. Qt value types override this method to make a value comparison. Otherwise it will return the result of calling the super class implementation. -
hashCode
-
clone
-