QTextFrameFormat Class ReferenceThe QTextFrameFormat class provides formatting information for frames in a QTextDocument. Далее... #include <QTextFrameFormat> Inherits: QTextFormat. Inherited by: QTextTableFormat. Замечание: Все функции в этом классе реентерабельны. Открытые типы
Открытые функции
Подробное описаниеThe QTextFrameFormat class provides formatting information for frames in a QTextDocument. A text frame groups together one or more blocks of text, providing a layer of structure larger than the paragraph. The format of a frame specifies how it is rendered and positioned on the screen. It does not directly specify the behavior of the text formatting within, but provides constraints on the layout of its children. The frame format defines the width() and height() of the frame on the screen. Each frame can have a border() that surrounds its contents with a rectangular box. The border is surrounded by a margin() around the frame, and the contents of the frame are kept separate from the border by the frame's padding(). This scheme is similar to the box model used by Cascading Style Sheets for HTML pages. The position() of a frame is set using setPosition() and determines how it is located relative to the surrounding text. The validity of a QTextFrameFormat object can be determined with the isValid() function. See also QTextFrame and QTextBlockFormat. Описание типов-членовenum QTextFrameFormat::BorderStyleThis enum describes different border styles for the text frame.
Это перечисление было введено или модифицировано в Qt 4.3. See also borderStyle() and FrameBorderStyle. enum QTextFrameFormat::PositionThis enum describes how a frame is located relative to the surrounding text.
Описание функций-членовQTextFrameFormat::QTextFrameFormat ()Constructs a text frame format object with the default properties. qreal QTextFrameFormat::border () constReturns the width of the border in pixels. See also setBorder(). QBrush QTextFrameFormat::borderBrush () constReturns the brush used for the frame's border. Эта функция была введена в Qt 4.3. See also setBorderBrush(). BorderStyle QTextFrameFormat::borderStyle () constReturns the style of the frame's border. Эта функция была введена в Qt 4.3. See also setBorderStyle(). qreal QTextFrameFormat::bottomMargin () constReturns the width of the frame's bottom margin in pixels. Эта функция была введена в Qt 4.3. See also setBottomMargin(). QTextLength QTextFrameFormat::height () constReturns the height of the frame's border rectangle. See also setHeight(). bool QTextFrameFormat::isValid () constReturns true if the format description is valid; otherwise returns false. qreal QTextFrameFormat::leftMargin () constReturns the width of the frame's left margin in pixels. Эта функция была введена в Qt 4.3. See also setLeftMargin(). qreal QTextFrameFormat::margin () constReturns the width of the frame's external margin in pixels. See also setMargin(). qreal QTextFrameFormat::padding () constReturns the width of the frame's internal padding in pixels. See also setPadding(). PageBreakFlags QTextFrameFormat::pageBreakPolicy () constReturns the currently set page break policy for the frame/table. The default is QTextFormat::PageBreak_Auto. Эта функция была введена в Qt 4.2. See also setPageBreakPolicy(). Position QTextFrameFormat::position () constReturns the positioning policy for frames with this frame format. See also setPosition(). qreal QTextFrameFormat::rightMargin () constReturns the width of the frame's right margin in pixels. Эта функция была введена в Qt 4.3. See also setRightMargin(). void QTextFrameFormat::setBorder ( qreal width )Sets the width (in pixels) of the frame's border. See also border(). void QTextFrameFormat::setBorderBrush ( const QBrush & brush )Sets the brush used for the frame's border. Эта функция была введена в Qt 4.3. See also borderBrush(). void QTextFrameFormat::setBorderStyle ( BorderStyle style )Sets the style of the frame's border. Эта функция была введена в Qt 4.3. See also borderStyle(). void QTextFrameFormat::setBottomMargin ( qreal margin )Sets the frame's bottom margin in pixels. Эта функция была введена в Qt 4.3. See also bottomMargin(). void QTextFrameFormat::setHeight ( const QTextLength & height )Sets the frame's height. Смотрите также height(). void QTextFrameFormat::setHeight ( qreal height )Это перегруженная функция. Sets the frame's height. void QTextFrameFormat::setLeftMargin ( qreal margin )Sets the frame's left margin in pixels. Эта функция была введена в Qt 4.3. See also leftMargin(). void QTextFrameFormat::setMargin ( qreal margin )Sets the frame's margin in pixels. This method also sets the left, right, top and bottom margins of the frame to the same value. The individual margins override the general margin. See also margin(). void QTextFrameFormat::setPadding ( qreal width )Sets the width of the frame's internal padding in pixels. See also padding(). void QTextFrameFormat::setPageBreakPolicy ( PageBreakFlags policy )Sets the page break policy for the frame/table to policy. Эта функция была введена в Qt 4.2. See also pageBreakPolicy(). void QTextFrameFormat::setPosition ( Position policy )Sets the policy for positioning frames with this frame format. See also position(). void QTextFrameFormat::setRightMargin ( qreal margin )Sets the frame's right margin in pixels. Эта функция была введена в Qt 4.3. See also rightMargin(). void QTextFrameFormat::setTopMargin ( qreal margin )Sets the frame's top margin in pixels. Эта функция была введена в Qt 4.3. See also topMargin(). void QTextFrameFormat::setWidth ( const QTextLength & width )Sets the frame's border rectangle's width. See also width() and QTextLength. void QTextFrameFormat::setWidth ( qreal width )Это перегруженная функция. Convenience method that sets the width of the frame's border rectangle's width to the specified fixed width. qreal QTextFrameFormat::topMargin () constReturns the width of the frame's top margin in pixels. Эта функция была введена в Qt 4.3. See also setTopMargin(). QTextLength QTextFrameFormat::width () constReturns the width of the frame's border rectangle. See also setWidth() and QTextLength. |
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |