Qyoto
4.0.5
Qyoto is a C# language binding for Qt
|
The QTextInlineObject class represents an inline object in a QTextLayout. More...
Public Member Functions | |
QTextInlineObject () | |
| |
QTextInlineObject (QTextInlineObject copy) | |
| |
virtual void | CreateProxy () |
new QTextFormat | Format () |
| |
new int | FormatIndex () |
| |
new double | Height () |
| |
new bool | IsValid () |
| |
new QRectF | Rect () |
| |
new Qt.LayoutDirection | TextDirection () |
| |
new int | TextPosition () |
| |
new void | Dispose () |
Protected Member Functions | |
QTextInlineObject (System.Type dummy) | |
Protected Attributes | |
SmokeInvocation | interceptor |
Properties | |
new double | Ascent [get, set] |
| |
new double | Descent [get, set] |
| |
new double | Width [get, set] |
| |
virtual System.IntPtr | SmokeObject [get, set] |
The QTextInlineObject class represents an inline object in a QTextLayout.
This class is only used if the text layout is used to lay out parts of a QTextDocument.
The inline object has various attributes that can be set, for example using, setWidth(), setAscent(), and setDescent(). The rectangle it occupies is given by rect(), and its direction by isRightToLeft(). Its position in the text layout is given by at(), and its format is given by format().
|
protected |
QtGui.QTextInlineObject.QTextInlineObject | ( | ) |
Creates a new inline object for the item at position i in the text engine e.
QtGui.QTextInlineObject.QTextInlineObject | ( | QTextInlineObject | copy | ) |
Creates a new inline object for the item at position i in the text engine e.
|
virtual |
new void QtGui.QTextInlineObject.Dispose | ( | ) |
new QTextFormat QtGui.QTextInlineObject.Format | ( | ) |
Returns format of the inline object within the text layout.
new int QtGui.QTextInlineObject.FormatIndex | ( | ) |
Returns an integer describing the format of the inline object within the text layout.
new double QtGui.QTextInlineObject.Height | ( | ) |
Returns the inline object's total height. This is equal to ascent() + descent() + 1.
See also ascent(), descent(), width(), and rect().
new bool QtGui.QTextInlineObject.IsValid | ( | ) |
Returns true if this inline object is valid; otherwise returns false.
new QRectF QtGui.QTextInlineObject.Rect | ( | ) |
Returns the inline object's rectangle.
See also ascent(), descent(), and width().
new Qt.LayoutDirection QtGui.QTextInlineObject.TextDirection | ( | ) |
Returns if the object should be laid out right-to-left or left-to-right.
new int QtGui.QTextInlineObject.TextPosition | ( | ) |
The position of the inline object within the text layout.
|
protected |
|
getset |
Returns the inline object's ascent.
Sets the inline object's ascent to a.
|
getset |
Returns the inline object's descent.
Sets the inline object's decent to d.
|
getset |
|
getset |
Returns the inline object's width.
Sets the inline object's width to w.