Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions

QTextFrameFormat Class Reference

The QTextFrameFormat class provides formatting information for frames in a QTextDocument. More...

#include <QTextFrameFormat>

Inherits QTextFormat.

Inherited by QTextTableFormat.

List of all members.

Public Types

Public Functions


Detailed Description

The QTextFrameFormat class provides formatting information for frames in a QTextDocument.

A frame comprises one or more blocks.

A QTextFrameFormat specifies the characteristics of a frame.


Member Type Documentation

enum QTextFrameFormat::Position

QTextFrameFormat::InFlow 
QTextFrameFormat::FloatLeft 
QTextFrameFormat::FloatRight 

Member Function Documentation

QTextFrameFormat::QTextFrameFormat ()

Constructs a text frame format object with the default properties.

int QTextFrameFormat::border () const

Returns the width of the border in pixels.

int QTextFrameFormat::height () const

Returns the height of the frame's border rectangle.

bool QTextFrameFormat::isValid () const

Returns true if the format description is valid; otherwise returns false.

int QTextFrameFormat::margin () const

Returns the width of the frame's external margin in pixels.

int QTextFrameFormat::padding () const

Returns the width of the frame's internal padding in pixels.

Position QTextFrameFormat::position () const

Returns the positioning policy for frames with this frame format.

void QTextFrameFormat::setBorder ( int width )

Sets the width (in pixels) of the frame's border.

void QTextFrameFormat::setHeight ( int height )

Sets the frame's height.

void QTextFrameFormat::setMargin ( int margin )

Sets the frame's margin in pixels.

void QTextFrameFormat::setPadding ( int width )

Sets the width of the frame's internal padding in pixels.

void QTextFrameFormat::setPosition ( Position policy )

Sets the policy for positioning frames with this frame format.

void QTextFrameFormat::setWidth ( int width )

Sets the frame's border rectangle's width.

int QTextFrameFormat::width () const

Returns the width of the frame's border rectangle.


Copyright © 2004 Trolltech. Trademarks
Qt 4.0.0-tp1