Qyoto  4.0.7
Qyoto is a C# language binding for Qt
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator 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 void Dispose ()
 

Protected Member Functions

 QTextItem (System.Type dummy)
 

Protected Attributes

SmokeInvocation interceptor
 

Properties

double Ascent [get]
  More...
 
double Descent [get]
  More...
 
QFont Font [get]
  More...
 
QTextItem.RenderFlag RenderFlags [get]
  More...
 
string Text [get]
  More...
 
double Width [get]
  More...
 
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 ( )

Here is the call graph for this function:

QtGui.QTextItem.QTextItem ( QTextItem  copy)

Here is the call graph for this function:

Member Function Documentation

virtual void QtGui.QTextItem.CreateProxy ( )
virtual

Here is the caller graph for this function:

new void QtGui.QTextItem.Dispose ( )

Member Data Documentation

SmokeInvocation QtGui.QTextItem.interceptor
protected

Property Documentation

double QtGui.QTextItem.Ascent
get

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

double QtGui.QTextItem.Descent
get

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

QFont QtGui.QTextItem.Font
get

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

QTextItem.RenderFlag QtGui.QTextItem.RenderFlags
get

Returns the render flags used.

virtual System.IntPtr QtGui.QTextItem.SmokeObject
getset
string QtGui.QTextItem.Text
get

Returns the text that should be drawn.

double QtGui.QTextItem.Width
get

Specifies the total width of the text to be drawn.