7#include <QtGui/qtextlayout.h>
8#include <QtQuick/qsgnode.h>
9#include <QtQuick/qsgtexture.h>
69 int selectionStart = -1,
70 int selectionCount = -1,
74 doAddTextLayout(
position,
layout, selectionStart, selectionCount, lineStart, lineCount);
79 int selectionStart = -1,
80 int selectionCount = -1)
82 doAddTextDocument(
position, document, selectionStart, selectionCount);
95 int selectionCount) = 0;
The QColor class provides colors based on RGB, HSV or CMYK values.
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
The QSGTextNode class is a class for drawing text layouts and text documents in the Qt Quick scene gr...
virtual QColor selectionTextColor() const =0
Returns the color of the selection text when any part of the text is marked as selected.
virtual void clear()=0
Clears the contents of the node, deleting nodes and other data that represents the layouts and docume...
virtual void setStyleColor(QColor styleColor)=0
Sets the style color to use when rendering the text to styleColor.
virtual void setSelectionTextColor(QColor selectionTextColor)=0
Sets the color of the selection text to selectionTextColor when any part of the text is marked as sel...
virtual void setLinkColor(QColor linkColor)=0
Sets the color of or hyperlinks to linkColor in the text.
virtual void setSelectionColor(QColor selectionColor)=0
Sets the color of the selection background to color when any part of the text is marked as selected.
void addTextLayout(QPointF position, QTextLayout *layout, int selectionStart=-1, int selectionCount=-1, int lineStart=0, int lineCount=-1)
Adds the contents of layout to the text node at position.
virtual QColor selectionColor() const =0
Returns the color of the selection background when any part of the text is marked as selected.
virtual QColor styleColor() const =0
Returns the style color used when rendering the text.
virtual QColor linkColor() const =0
Returns the color of hyperlinks in the text.
virtual TextStyle textStyle()=0
Returns the style of the rendered text.
virtual QSGTexture::Filtering filtering() const =0
Returns the sampling mode used when scaling images that are part of the displayed text.
virtual void doAddTextDocument(QPointF position, QTextDocument *document, int selectionStart, int selectionCount)=0
Virtual function called by addTextDocument(), which converts the contents of document to scene graph ...
virtual int renderTypeQuality() const =0
Returns the render type quality of the node.
virtual void setViewport(const QRectF &viewport)=0
Sets the bounding rect of the viewport where the text is displayed to viewport.
virtual RenderType renderType() const =0
Returns the type of glyph node used for rendering the text.
void addTextDocument(QPointF position, QTextDocument *document, int selectionStart=-1, int selectionCount=-1)
Adds the contents of document to the text node at position.
virtual void setFiltering(QSGTexture::Filtering)=0
Sets the sampling mode used when scaling images that are part of the displayed text to filtering.
virtual void setColor(QColor color)=0
Sets the main color to use when rendering the text to color.
virtual void doAddTextLayout(QPointF position, QTextLayout *layout, int selectionStart, int selectionCount, int lineStart, int lineCount)=0
Virtual function called by addTextLayout(), which converts the contents of layout to scene graph node...
virtual void setRenderType(RenderType renderType)=0
Sets the type of glyph node in use to renderType.
virtual QRectF viewport() const =0
Returns the current viewport set for this QSGTextNode.
RenderType
This enum type describes type of glyph node used for rendering the text.
virtual void setRenderTypeQuality(int renderTypeQuality)=0
If the \l renderType() in use supports it, set the quality to use when rendering the text.
virtual QColor color() const =0
Returns the main color used when rendering the text.
virtual void setTextStyle(TextStyle textStyle)=0
Sets the style of the rendered text to textStyle.
TextStyle
This enum type describes styles that can be applied to text rendering.
Filtering
Specifies how sampling of texels should filter when texture coordinates are not pixel aligned.
\reentrant \inmodule QtGui
Combined button and popup list for selecting options.
static qreal position(const QQuickItem *item, QQuickAnchors::Anchor anchorLine)
view viewport() -> scroll(dx, dy, deviceRect)