NAME

Qt::Gui::QTextLine

PUBLIC METHODS

QTextLine()
qreal ascent()
qreal cursorToX(int * cursorPos, QTextLine::Edge edge)
qreal cursorToX(int * cursorPos, QTextLine::Edge edge = QTextLine::Leading)
qreal cursorToX(int cursorPos, QTextLine::Edge edge)
qreal cursorToX(int cursorPos, QTextLine::Edge edge = QTextLine::Leading)
qreal descent()
void draw(QPainter * p, const QPointF & point, const QTextLayout::FormatRange * selection)
void draw(QPainter * p, const QPointF & point, const QTextLayout::FormatRange * selection = 0)
qreal height()
qreal horizontalAdvance()
bool isValid()
qreal leading()
bool leadingIncluded()
int lineNumber()
QRectF naturalTextRect()
qreal naturalTextWidth()
QPointF position()
QRectF rect()
void setLeadingIncluded(bool included)
void setLineWidth(qreal width)
void setNumColumns(int columns)
void setNumColumns(int columns, qreal alignmentWidth)
void setPosition(const QPointF & pos)
int textLength()
int textStart()
qreal width()
qreal x()
int xToCursor(qreal x, QTextLine::CursorPosition arg1)
int xToCursor(qreal x, QTextLine::CursorPosition arg1 = QTextLine::CursorBetweenCharacters)
qreal y()

ENUM VALUES

Leading
Trailing
CursorBetweenCharacters
CursorOnCharacter

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