Qyoto  4.0.5
Qyoto is a C# language binding for Qt
 All Classes Namespaces Functions Variables Typedefs Enumerations Properties
QtGui.QTextItem Class Reference

The QTextItem class provides all the information required to draw text in a custom paint engine. More...

Inheritance diagram for QtGui.QTextItem:
Collaboration diagram for QtGui.QTextItem:

Public Types

enum  RenderFlag {
  Dummy = -1, Overline = 16, RightToLeft = 1, StrikeOut = 64,
  Underline = 32
}
 

Public Member Functions

 QTextItem ()
 
 QTextItem (QTextItem copy)
 
virtual void CreateProxy ()
 
new double Ascent ()
 
 
new double Descent ()
 
 
new QFont Font ()
 
 
new QTextItem.RenderFlag RenderFlags ()
 
 
new string Text ()
 
 
new double Width ()
 
 
new void Dispose ()
 

Protected Member Functions

 QTextItem (System.Type dummy)
 

Protected Attributes

SmokeInvocation interceptor
 

Properties

virtual System.IntPtr SmokeObject [get, set]
 

Detailed Description

The QTextItem class provides all the information required to draw text in a custom paint engine.

When you reimplement your own paint engine, you must reimplement QPaintEngine::drawTextItem(), a function that takes a QTextItem as one of its arguments.

Member Enumeration Documentation

Enumerator:
Dummy 
Overline 

Paint a line above the text.

RightToLeft 

Render the text from right to left.

StrikeOut 

Paint a line through the text.

Underline 

Paint a line under the text.

Constructor & Destructor Documentation

QtGui.QTextItem.QTextItem ( System.Type  dummy)
protected
QtGui.QTextItem.QTextItem ( )
QtGui.QTextItem.QTextItem ( QTextItem  copy)

Member Function Documentation

new double QtGui.QTextItem.Ascent ( )

Corresponds to the ascent of the piece of text that is drawn.

virtual void QtGui.QTextItem.CreateProxy ( )
virtual
new double QtGui.QTextItem.Descent ( )

Corresponds to the descent of the piece of text that is drawn.

new void QtGui.QTextItem.Dispose ( )
new QFont QtGui.QTextItem.Font ( )

Returns the font that should be used to draw the text.

new QTextItem.RenderFlag QtGui.QTextItem.RenderFlags ( )

Returns the render flags used.

new string QtGui.QTextItem.Text ( )

Returns the text that should be drawn.

new double QtGui.QTextItem.Width ( )

Specifies the total width of the text to be drawn.

Member Data Documentation

SmokeInvocation QtGui.QTextItem.interceptor
protected

Property Documentation

virtual System.IntPtr QtGui.QTextItem.SmokeObject
getset