QTextLayout

Undocumented in source but is binding to C++. You might be able to learn more by searching the web for its name.
extern (C++) extern (C++)
struct QTextLayout {}

Constructors

this
this()
Undocumented in source.
this
this(const(QString) text)
Undocumented in source.
this
this(const(QString) text, const(QFont) font, QPaintDevice paintdevice)
Undocumented in source.
this
this(const(QTextBlock) b)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Postblit

this(this)
this(this)
Undocumented in source.

Members

Enums

CursorMode
enum CursorMode
Undocumented in source.

Functions

additionalFormats
QList!(FormatRange) additionalFormats()
Undocumented in source.
beginLayout
void beginLayout()
Undocumented in source.
boundingRect
QRectF boundingRect()
Undocumented in source.
cacheEnabled
bool cacheEnabled()
Undocumented in source.
clearAdditionalFormats
void clearAdditionalFormats()
Undocumented in source.
clearFormats
void clearFormats()
Undocumented in source.
clearLayout
void clearLayout()
Undocumented in source.
createLine
QTextLine createLine()
Undocumented in source.
cursorMoveStyle
qt.core.namespace.CursorMoveStyle cursorMoveStyle()
Undocumented in source.
draw
void draw(QPainter* p, const(QPointF) pos, const(QVector!(FormatRange)) selections, const(QRectF) clip)
Undocumented in source.
drawCursor
void drawCursor(QPainter* p, const(QPointF) pos, int cursorPosition)
Undocumented in source.
drawCursor
void drawCursor(QPainter* p, const(QPointF) pos, int cursorPosition, int width)
Undocumented in source.
endLayout
void endLayout()
Undocumented in source.
font
QFont font()
Undocumented in source.
formats
QVector!(FormatRange) formats()
Undocumented in source.
glyphRuns
QList!(QGlyphRun) glyphRuns(int from, int length)
Undocumented in source.
isValidCursorPosition
bool isValidCursorPosition(int pos)
Undocumented in source.
leftCursorPosition
int leftCursorPosition(int oldPos)
Undocumented in source.
lineAt
QTextLine lineAt(int i)
Undocumented in source.
lineCount
int lineCount()
Undocumented in source.
lineForTextPosition
QTextLine lineForTextPosition(int pos)
Undocumented in source.
maximumWidth
qreal maximumWidth()
Undocumented in source.
minimumWidth
qreal minimumWidth()
Undocumented in source.
nextCursorPosition
int nextCursorPosition(int oldPos, CursorMode mode)
Undocumented in source.
position
QPointF position()
Undocumented in source.
preeditAreaPosition
int preeditAreaPosition()
Undocumented in source.
preeditAreaText
QString preeditAreaText()
Undocumented in source.
previousCursorPosition
int previousCursorPosition(int oldPos, CursorMode mode)
Undocumented in source.
rawConstructor
typeof(this) rawConstructor()
Undocumented in source.
rightCursorPosition
int rightCursorPosition(int oldPos)
Undocumented in source.
setAdditionalFormats
void setAdditionalFormats(const(QList!(FormatRange)) overrides)
Undocumented in source.
setCacheEnabled
void setCacheEnabled(bool enable)
Undocumented in source.
setCursorMoveStyle
void setCursorMoveStyle(qt.core.namespace.CursorMoveStyle style)
Undocumented in source.
setFlags
void setFlags(int flags)
Undocumented in source.
setFont
void setFont(const(QFont) f)
Undocumented in source.
setFormats
void setFormats(const(QVector!(FormatRange)) overrides)
Undocumented in source.
setPosition
void setPosition(const(QPointF) p)
Undocumented in source.
setPreeditArea
void setPreeditArea(int position, const(QString) text)
Undocumented in source.
setRawFont
void setRawFont(const(QRawFont) rawFont)
Undocumented in source.
setText
void setText(const(QString) string)
Undocumented in source.
setTextOption
void setTextOption(const(QTextOption) option)
Undocumented in source.
text
QString text()
Undocumented in source.
textOption
const(QTextOption) textOption()
Undocumented in source.

Static functions

create
typeof(this) create()
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

FormatRange
struct FormatRange
Undocumented in source.

Meta