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

The QTextLength class encapsulates the different types of length used in a QTextDocument. More...

Inheritance diagram for QtGui.QTextLength:
Collaboration diagram for QtGui.QTextLength:

Public Types

enum  Type { FixedLength = 1, PercentageLength = 2, VariableLength = 0 }
  More...
 

Public Member Functions

override bool Equals (object o)
 
override int GetHashCode ()
 
 QTextLength ()
 
 
 QTextLength (QTextLength copy)
 
 
 QTextLength (QTextLength.Type type, double value)
 
 
virtual void CreateProxy ()
 
new double RawValue ()
 
 
new QTextLength.Type type ()
 
 
new double Value (double maximumLength)
 
 
new void Dispose ()
 

Static Public Member Functions

static bool operator!= (QTextLength arg1, QTextLength arg2)
 
 
static bool operator== (QTextLength arg1, QTextLength arg2)
 
 

Protected Member Functions

 QTextLength (System.Type dummy)
 

Protected Attributes

SmokeInvocation interceptor
 

Properties

virtual System.IntPtr SmokeObject [get, set]
 

Detailed Description

The QTextLength class encapsulates the different types of length used in a QTextDocument.

When we specify a value for the length of an element in a text document, we often need to provide some other information so that the length is used in the way we expect. For example, when we specify a table width, the value can represent a fixed number of pixels, or it can be a percentage value. This information changes both the meaning of the value and the way it is used.

Generally, this class is used to specify table widths. These can be specified either as a fixed amount of pixels, as a percentage of the containing frame's width, or by a variable width that allows it to take up just the space it requires.

See also QTextTable.

Member Enumeration Documentation

This enum describes the different types a length object can have.

See also type().

Enumerator:
FixedLength 

The width of the object is fixed

PercentageLength 

The width of the object is in percentage of the maximum width

VariableLength 

The width of the object is variable

Constructor & Destructor Documentation

QtGui.QTextLength.QTextLength ( System.Type  dummy)
protected
QtGui.QTextLength.QTextLength ( )

Constructs a new length object which represents a variable size.

QtGui.QTextLength.QTextLength ( QTextLength  copy)

Constructs a new length object which represents a variable size.

QtGui.QTextLength.QTextLength ( QTextLength.Type  type,
double  value 
)

Constructs a new length object which represents a variable size.

Member Function Documentation

virtual void QtGui.QTextLength.CreateProxy ( )
virtual
new void QtGui.QTextLength.Dispose ( )
override bool QtGui.QTextLength.Equals ( object  o)
override int QtGui.QTextLength.GetHashCode ( )
static bool QtGui.QTextLength.operator!= ( QTextLength  arg1,
QTextLength  arg2 
)
static

Returns true if this text length is different from the other text length.

static bool QtGui.QTextLength.operator== ( QTextLength  arg1,
QTextLength  arg2 
)
static

Returns true if this text length is the same as the other text length.

new double QtGui.QTextLength.RawValue ( )

Returns the constraint value that is specific for the type of the length. If the length is QTextLength::PercentageLength then the raw value is in percent, in the range of 0 to 100. If the length is QTextLength::FixedLength then that fixed amount is returned. For variable lengths, zero is returned.

new QTextLength.Type QtGui.QTextLength.type ( )

Returns the type of this length object.

See also QTextLength::Type.

new double QtGui.QTextLength.Value ( double  maximumLength)

Returns the effective length, constrained by the type of the length object and the specified maximumLength.

See also type().

Member Data Documentation

SmokeInvocation QtGui.QTextLength.interceptor
protected

Property Documentation

virtual System.IntPtr QtGui.QTextLength.SmokeObject
getset