4#ifndef QTEXTDOCUMENTLAYOUT_P_H
5#define QTEXTDOCUMENTLAYOUT_P_H
18#include <QtGui/private/qtguiglobal_p.h>
19#include "QtGui/qabstracttextdocumentlayout.h"
20#include "QtGui/qtextoption.h"
21#include "QtGui/qtextobject.h"
33 Q_PROPERTY(
int cursorWidth READ cursorWidth WRITE setCursorWidth)
35 Q_PROPERTY(
bool contentHasAlignment READ contentHasAlignment)
46 void setCursorWidth(
int width);
47 int cursorWidth()
const;
50 void setFixedColumnWidth(
int width);
61 int layoutStatus()
const;
62 int dynamicPageCount()
const;
63 QSizeF dynamicDocumentSize()
const;
64 void ensureLayouted(
qreal);
66 qreal idealWidth()
const;
68 bool contentHasAlignment()
const;
79 void layoutFinished();
virtual void resizeInlineObject(QTextInlineObject item, int posInDocument, const QTextFormat &format)
Sets the size of the inline object item corresponding to the text format.
virtual void drawInlineObject(QPainter *painter, const QRectF &rect, QTextInlineObject object, int posInDocument, const QTextFormat &format)
This function is called to draw the inline object, object, with the given painter within the rectangl...
virtual QRectF frameBoundingRect(QTextFrame *frame) const =0
Returns the bounding rectangle of frame.
virtual void positionInlineObject(QTextInlineObject item, int posInDocument, const QTextFormat &format)
Lays out the inline object item using the given text format.
virtual int pageCount() const =0
Returns the number of pages contained in the layout.
virtual QRectF blockBoundingRect(const QTextBlock &block) const =0
Returns the bounding rectangle of block.
virtual void documentChanged(int from, int charsRemoved, int charsAdded)=0
This function is called whenever the contents of the document change.
virtual int hitTest(const QPointF &point, Qt::HitTestAccuracy accuracy) const =0
Returns the cursor position for the given point with the specified accuracy.
virtual void draw(QPainter *painter, const PaintContext &context)=0
Draws the layout with the given painter using the given context.
virtual QSizeF documentSize() const =0
Returns the total size of the document's layout.
virtual void timerEvent(QTimerEvent *event)
This event handler can be reimplemented in a subclass to receive timer events for the object.
The QPainter class performs low-level painting on widgets and other paint devices.
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
\reentrant \inmodule QtGui
Combined button and popup list for selecting options.
GLenum GLuint GLenum GLsizei length
GLint GLsizei GLsizei GLenum format
GLenum GLenum GLsizei void * table
view viewport() -> scroll(dx, dy, deviceRect)
\reentrant \inmodule QtGui