Home
·
All Classes
·
Modules
QTextLine Class Reference
[
QtGui
module]
Types
enum
CursorPosition
{ CursorBetweenCharacters, CursorOnCharacter }
enum
Edge
{ Leading, Trailing }
Methods
__init__
(
self
)
__init__
(
self
, QTextLine)
float
ascent
(
self
)
(float, int)
cursorToX
(
self
, int, Edge
edge
= QTextLine.Leading)
float
descent
(
self
)
draw
(
self
, QPainter, QPointF, QTextLayout.FormatRange
selection
= None)
float
height
(
self
)
float
horizontalAdvance
(
self
)
bool
isValid
(
self
)
float
leading
(
self
)
bool
leadingIncluded
(
self
)
int
lineNumber
(
self
)
QRectF
naturalTextRect
(
self
)
float
naturalTextWidth
(
self
)
QPointF
position
(
self
)
QRectF
rect
(
self
)
setLeadingIncluded
(
self
, bool)
setLineWidth
(
self
, float)
setNumColumns
(
self
, int)
setNumColumns
(
self
, int, float)
setPosition
(
self
, QPointF)
int
textLength
(
self
)
int
textStart
(
self
)
float
width
(
self
)
float
x
(
self
)
int
xToCursor
(
self
, float, CursorPosition
edge
= QTextLine.CursorBetweenCharacters)
float
y
(
self
)
Detailed Description
Type Documentation
QTextLine.CursorPosition
QTextLine.Edge
Method Documentation
QTextLine.__init__ (
self
)
QTextLine.__init__ (
self
,
QTextLine
)
float QTextLine.ascent (
self
)
(float, int) QTextLine.cursorToX (
self
, int,
Edge
edge
= QTextLine.Leading)
float QTextLine.descent (
self
)
QTextLine.draw (
self
,
QPainter
,
QPointF
,
QTextLayout.FormatRange
selection
= None)
float QTextLine.height (
self
)
float QTextLine.horizontalAdvance (
self
)
bool QTextLine.isValid (
self
)
float QTextLine.leading (
self
)
bool QTextLine.leadingIncluded (
self
)
int QTextLine.lineNumber (
self
)
QRectF
QTextLine.naturalTextRect (
self
)
float QTextLine.naturalTextWidth (
self
)
QPointF
QTextLine.position (
self
)
QRectF
QTextLine.rect (
self
)
QTextLine.setLeadingIncluded (
self
, bool)
QTextLine.setLineWidth (
self
, float)
QTextLine.setNumColumns (
self
, int)
QTextLine.setNumColumns (
self
, int, float)
QTextLine.setPosition (
self
,
QPointF
)
int QTextLine.textLength (
self
)
int QTextLine.textStart (
self
)
float QTextLine.width (
self
)
float QTextLine.x (
self
)
int QTextLine.xToCursor (
self
, float,
CursorPosition
edge
= QTextLine.CursorBetweenCharacters)
float QTextLine.y (
self
)
PyQt 4.8 for X11
Copyright ©
Riverbank Computing Ltd
and
Nokia
2010
Qt 4.7.0