NAME

Qt::Gui::QTextLayout

PUBLIC METHODS

QTextLayout()
QTextLayout(const QString & text)
QTextLayout(const QTextBlock & b)
QTextLayout(const QString & text, const QFont & font, QPaintDevice * paintdevice)
QTextLayout(const QString & text, const QFont & font, QPaintDevice * paintdevice = 0)
~QTextLayout()
void beginLayout()
QRectF boundingRect()
bool cacheEnabled()
void clearAdditionalFormats()
void clearLayout()
QTextLine createLine()
void drawCursor(QPainter * p, const QPointF & pos, int cursorPosition)
void drawCursor(QPainter * p, const QPointF & pos, int cursorPosition, int width)
void endLayout()
QTextEngine * engine()
QFont font()
bool isValidCursorPosition(int pos)
QTextLine lineAt(int i)
int lineCount()
QTextLine lineForTextPosition(int pos)
qreal maximumWidth()
qreal minimumWidth()
int nextCursorPosition(int oldPos, QTextLayout::CursorMode mode)
int nextCursorPosition(int oldPos, QTextLayout::CursorMode mode = QTextLayout::SkipCharacters)
QPointF position()
int preeditAreaPosition()
QString preeditAreaText()
int previousCursorPosition(int oldPos, QTextLayout::CursorMode mode)
int previousCursorPosition(int oldPos, QTextLayout::CursorMode mode = QTextLayout::SkipCharacters)
void setCacheEnabled(bool enable)
void setFlags(int flags)
void setFont(const QFont & f)
void setPosition(const QPointF & p)
void setPreeditArea(int position, const QString & text)
void setText(const QString & string)
void setTextOption(const QTextOption & option)
QString text()
QTextOption textOption()

ENUM VALUES

SkipCharacters
SkipWords

EXPORT

None by default.

AUTHOR

Dongxu Ma <dongxu@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2011 - 2011 by Dongxu Ma

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See http://dev.perl.org/licenses/artistic.html