pub struct QTextBlockFormat { /* private fields */ }Expand description
C++ class: QTextBlockFormat.
Implementations§
Source§impl QTextBlockFormat
impl QTextBlockFormat
Sourcepub unsafe fn alignment(&self) -> QFlags<AlignmentFlag>
pub unsafe fn alignment(&self) -> QFlags<AlignmentFlag>
Calls C++ function: QFlags<Qt::AlignmentFlag> QTextBlockFormat::alignment() const.
Sourcepub unsafe fn bottom_margin(&self) -> c_double
pub unsafe fn bottom_margin(&self) -> c_double
Calls C++ function: double QTextBlockFormat::bottomMargin() const.
Sourcepub unsafe fn copy_from(
&self,
other: impl CastInto<Ref<QTextBlockFormat>>,
) -> Ref<QTextBlockFormat>
pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QTextBlockFormat>>, ) -> Ref<QTextBlockFormat>
Calls C++ function: QTextBlockFormat& QTextBlockFormat::operator=(const QTextBlockFormat& other).
Sourcepub unsafe fn heading_level(&self) -> c_int
pub unsafe fn heading_level(&self) -> c_int
Calls C++ function: int QTextBlockFormat::headingLevel() const.
Sourcepub unsafe fn is_valid(&self) -> bool
pub unsafe fn is_valid(&self) -> bool
Calls C++ function: bool QTextBlockFormat::isValid() const.
Sourcepub unsafe fn left_margin(&self) -> c_double
pub unsafe fn left_margin(&self) -> c_double
Calls C++ function: double QTextBlockFormat::leftMargin() const.
Sourcepub unsafe fn line_height_2a(
&self,
script_line_height: c_double,
scaling: c_double,
) -> c_double
pub unsafe fn line_height_2a( &self, script_line_height: c_double, scaling: c_double, ) -> c_double
Calls C++ function: double QTextBlockFormat::lineHeight(double scriptLineHeight, double scaling) const.
Sourcepub unsafe fn line_height_0a(&self) -> c_double
pub unsafe fn line_height_0a(&self) -> c_double
Calls C++ function: double QTextBlockFormat::lineHeight() const.
Sourcepub unsafe fn line_height_type(&self) -> c_int
pub unsafe fn line_height_type(&self) -> c_int
Calls C++ function: int QTextBlockFormat::lineHeightType() const.
Sourcepub unsafe fn marker(&self) -> MarkerType
pub unsafe fn marker(&self) -> MarkerType
Calls C++ function: QTextBlockFormat::MarkerType QTextBlockFormat::marker() const.
Sourcepub unsafe fn new() -> CppBox<QTextBlockFormat>
pub unsafe fn new() -> CppBox<QTextBlockFormat>
Calls C++ function: [constructor] void QTextBlockFormat::QTextBlockFormat().
Sourcepub unsafe fn new_copy(
other: impl CastInto<Ref<QTextBlockFormat>>,
) -> CppBox<QTextBlockFormat>
pub unsafe fn new_copy( other: impl CastInto<Ref<QTextBlockFormat>>, ) -> CppBox<QTextBlockFormat>
Calls C++ function: [constructor] void QTextBlockFormat::QTextBlockFormat(const QTextBlockFormat& other).
Sourcepub unsafe fn non_breakable_lines(&self) -> bool
pub unsafe fn non_breakable_lines(&self) -> bool
Calls C++ function: bool QTextBlockFormat::nonBreakableLines() const.
Sourcepub unsafe fn page_break_policy(&self) -> QFlags<PageBreakFlag>
pub unsafe fn page_break_policy(&self) -> QFlags<PageBreakFlag>
Calls C++ function: QFlags<QTextFormat::PageBreakFlag> QTextBlockFormat::pageBreakPolicy() const.
Sourcepub unsafe fn right_margin(&self) -> c_double
pub unsafe fn right_margin(&self) -> c_double
Calls C++ function: double QTextBlockFormat::rightMargin() const.
Sourcepub unsafe fn set_alignment(&self, alignment: QFlags<AlignmentFlag>)
pub unsafe fn set_alignment(&self, alignment: QFlags<AlignmentFlag>)
Calls C++ function: void QTextBlockFormat::setAlignment(QFlags<Qt::AlignmentFlag> alignment).
Sourcepub unsafe fn set_bottom_margin(&self, margin: c_double)
pub unsafe fn set_bottom_margin(&self, margin: c_double)
Calls C++ function: void QTextBlockFormat::setBottomMargin(double margin).
Sourcepub unsafe fn set_heading_level(&self, alevel: c_int)
pub unsafe fn set_heading_level(&self, alevel: c_int)
Calls C++ function: void QTextBlockFormat::setHeadingLevel(int alevel).
Sourcepub unsafe fn set_indent(&self, indent: c_int)
pub unsafe fn set_indent(&self, indent: c_int)
Calls C++ function: void QTextBlockFormat::setIndent(int indent).
Sourcepub unsafe fn set_left_margin(&self, margin: c_double)
pub unsafe fn set_left_margin(&self, margin: c_double)
Calls C++ function: void QTextBlockFormat::setLeftMargin(double margin).
Sourcepub unsafe fn set_line_height(&self, height: c_double, height_type: c_int)
pub unsafe fn set_line_height(&self, height: c_double, height_type: c_int)
Calls C++ function: void QTextBlockFormat::setLineHeight(double height, int heightType).
Sourcepub unsafe fn set_marker(&self, marker: MarkerType)
pub unsafe fn set_marker(&self, marker: MarkerType)
Calls C++ function: void QTextBlockFormat::setMarker(QTextBlockFormat::MarkerType marker).
Sourcepub unsafe fn set_non_breakable_lines(&self, b: bool)
pub unsafe fn set_non_breakable_lines(&self, b: bool)
Calls C++ function: void QTextBlockFormat::setNonBreakableLines(bool b).
Sourcepub unsafe fn set_page_break_policy(&self, flags: QFlags<PageBreakFlag>)
pub unsafe fn set_page_break_policy(&self, flags: QFlags<PageBreakFlag>)
Calls C++ function: void QTextBlockFormat::setPageBreakPolicy(QFlags<QTextFormat::PageBreakFlag> flags).
Sourcepub unsafe fn set_right_margin(&self, margin: c_double)
pub unsafe fn set_right_margin(&self, margin: c_double)
Calls C++ function: void QTextBlockFormat::setRightMargin(double margin).
Sourcepub unsafe fn set_tab_positions(&self, tabs: impl CastInto<Ref<QListOfTab>>)
pub unsafe fn set_tab_positions(&self, tabs: impl CastInto<Ref<QListOfTab>>)
Calls C++ function: void QTextBlockFormat::setTabPositions(const QList<QTextOption::Tab>& tabs).
Sourcepub unsafe fn set_text_indent(&self, aindent: c_double)
pub unsafe fn set_text_indent(&self, aindent: c_double)
Calls C++ function: void QTextBlockFormat::setTextIndent(double aindent).
Sourcepub unsafe fn set_top_margin(&self, margin: c_double)
pub unsafe fn set_top_margin(&self, margin: c_double)
Calls C++ function: void QTextBlockFormat::setTopMargin(double margin).
Sourcepub unsafe fn tab_positions(&self) -> CppBox<QListOfTab>
pub unsafe fn tab_positions(&self) -> CppBox<QListOfTab>
Calls C++ function: QList<QTextOption::Tab> QTextBlockFormat::tabPositions() const.
Sourcepub unsafe fn text_indent(&self) -> c_double
pub unsafe fn text_indent(&self) -> c_double
Calls C++ function: double QTextBlockFormat::textIndent() const.
Sourcepub unsafe fn top_margin(&self) -> c_double
pub unsafe fn top_margin(&self) -> c_double
Calls C++ function: double QTextBlockFormat::topMargin() const.
Methods from Deref<Target = QTextFormat>§
Sourcepub unsafe fn background(&self) -> CppBox<QBrush>
pub unsafe fn background(&self) -> CppBox<QBrush>
Calls C++ function: QBrush QTextFormat::background() const.
Sourcepub unsafe fn bool_property(&self, property_id: c_int) -> bool
pub unsafe fn bool_property(&self, property_id: c_int) -> bool
Calls C++ function: bool QTextFormat::boolProperty(int propertyId) const.
Sourcepub unsafe fn brush_property(&self, property_id: c_int) -> CppBox<QBrush>
pub unsafe fn brush_property(&self, property_id: c_int) -> CppBox<QBrush>
Calls C++ function: QBrush QTextFormat::brushProperty(int propertyId) const.
Sourcepub unsafe fn clear_background(&self)
pub unsafe fn clear_background(&self)
Calls C++ function: void QTextFormat::clearBackground().
Sourcepub unsafe fn clear_foreground(&self)
pub unsafe fn clear_foreground(&self)
Calls C++ function: void QTextFormat::clearForeground().
Sourcepub unsafe fn clear_property(&self, property_id: c_int)
pub unsafe fn clear_property(&self, property_id: c_int)
Calls C++ function: void QTextFormat::clearProperty(int propertyId).
Sourcepub unsafe fn color_property(&self, property_id: c_int) -> CppBox<QColor>
pub unsafe fn color_property(&self, property_id: c_int) -> CppBox<QColor>
Calls C++ function: QColor QTextFormat::colorProperty(int propertyId) const.
Sourcepub unsafe fn copy_from(
&self,
rhs: impl CastInto<Ref<QTextFormat>>,
) -> Ref<QTextFormat>
pub unsafe fn copy_from( &self, rhs: impl CastInto<Ref<QTextFormat>>, ) -> Ref<QTextFormat>
Calls C++ function: QTextFormat& QTextFormat::operator=(const QTextFormat& rhs).
Sourcepub unsafe fn double_property(&self, property_id: c_int) -> c_double
pub unsafe fn double_property(&self, property_id: c_int) -> c_double
Calls C++ function: double QTextFormat::doubleProperty(int propertyId) const.
Sourcepub unsafe fn foreground(&self) -> CppBox<QBrush>
pub unsafe fn foreground(&self) -> CppBox<QBrush>
Calls C++ function: QBrush QTextFormat::foreground() const.
Sourcepub unsafe fn has_property(&self, property_id: c_int) -> bool
pub unsafe fn has_property(&self, property_id: c_int) -> bool
Calls C++ function: bool QTextFormat::hasProperty(int propertyId) const.
Sourcepub unsafe fn int_property(&self, property_id: c_int) -> c_int
pub unsafe fn int_property(&self, property_id: c_int) -> c_int
Calls C++ function: int QTextFormat::intProperty(int propertyId) const.
Sourcepub unsafe fn is_block_format(&self) -> bool
pub unsafe fn is_block_format(&self) -> bool
Calls C++ function: bool QTextFormat::isBlockFormat() const.
Sourcepub unsafe fn is_char_format(&self) -> bool
pub unsafe fn is_char_format(&self) -> bool
Calls C++ function: bool QTextFormat::isCharFormat() const.
Sourcepub unsafe fn is_frame_format(&self) -> bool
pub unsafe fn is_frame_format(&self) -> bool
Calls C++ function: bool QTextFormat::isFrameFormat() const.
Sourcepub unsafe fn is_image_format(&self) -> bool
pub unsafe fn is_image_format(&self) -> bool
Calls C++ function: bool QTextFormat::isImageFormat() const.
Sourcepub unsafe fn is_list_format(&self) -> bool
pub unsafe fn is_list_format(&self) -> bool
Calls C++ function: bool QTextFormat::isListFormat() const.
Sourcepub unsafe fn is_table_cell_format(&self) -> bool
pub unsafe fn is_table_cell_format(&self) -> bool
Calls C++ function: bool QTextFormat::isTableCellFormat() const.
Sourcepub unsafe fn is_table_format(&self) -> bool
pub unsafe fn is_table_format(&self) -> bool
Calls C++ function: bool QTextFormat::isTableFormat() const.
Sourcepub unsafe fn layout_direction(&self) -> LayoutDirection
pub unsafe fn layout_direction(&self) -> LayoutDirection
Calls C++ function: Qt::LayoutDirection QTextFormat::layoutDirection() const.
Sourcepub unsafe fn length_property(&self, property_id: c_int) -> CppBox<QTextLength>
pub unsafe fn length_property(&self, property_id: c_int) -> CppBox<QTextLength>
Calls C++ function: QTextLength QTextFormat::lengthProperty(int propertyId) const.
Sourcepub unsafe fn length_vector_property(
&self,
property_id: c_int,
) -> CppBox<QVectorOfQTextLength>
pub unsafe fn length_vector_property( &self, property_id: c_int, ) -> CppBox<QVectorOfQTextLength>
Calls C++ function: QVector<QTextLength> QTextFormat::lengthVectorProperty(int propertyId) const.
Sourcepub unsafe fn merge(&self, other: impl CastInto<Ref<QTextFormat>>)
pub unsafe fn merge(&self, other: impl CastInto<Ref<QTextFormat>>)
Calls C++ function: void QTextFormat::merge(const QTextFormat& other).
Sourcepub unsafe fn object_index(&self) -> c_int
pub unsafe fn object_index(&self) -> c_int
Calls C++ function: int QTextFormat::objectIndex() const.
Sourcepub unsafe fn object_type(&self) -> c_int
pub unsafe fn object_type(&self) -> c_int
Calls C++ function: int QTextFormat::objectType() const.
Sourcepub unsafe fn pen_property(&self, property_id: c_int) -> CppBox<QPen>
pub unsafe fn pen_property(&self, property_id: c_int) -> CppBox<QPen>
Calls C++ function: QPen QTextFormat::penProperty(int propertyId) const.
Sourcepub unsafe fn properties(&self) -> CppBox<QMapOfIntQVariant>
pub unsafe fn properties(&self) -> CppBox<QMapOfIntQVariant>
Calls C++ function: QMap<int, QVariant> QTextFormat::properties() const.
Sourcepub unsafe fn property(&self, property_id: c_int) -> CppBox<QVariant>
pub unsafe fn property(&self, property_id: c_int) -> CppBox<QVariant>
Calls C++ function: QVariant QTextFormat::property(int propertyId) const.
Sourcepub unsafe fn property_count(&self) -> c_int
pub unsafe fn property_count(&self) -> c_int
Calls C++ function: int QTextFormat::propertyCount() const.
Sourcepub unsafe fn set_background(&self, brush: impl CastInto<Ref<QBrush>>)
pub unsafe fn set_background(&self, brush: impl CastInto<Ref<QBrush>>)
Calls C++ function: void QTextFormat::setBackground(const QBrush& brush).
Sourcepub unsafe fn set_foreground(&self, brush: impl CastInto<Ref<QBrush>>)
pub unsafe fn set_foreground(&self, brush: impl CastInto<Ref<QBrush>>)
Calls C++ function: void QTextFormat::setForeground(const QBrush& brush).
Sourcepub unsafe fn set_layout_direction(&self, direction: LayoutDirection)
pub unsafe fn set_layout_direction(&self, direction: LayoutDirection)
Calls C++ function: void QTextFormat::setLayoutDirection(Qt::LayoutDirection direction).
Sourcepub unsafe fn set_object_index(&self, object: c_int)
pub unsafe fn set_object_index(&self, object: c_int)
Calls C++ function: void QTextFormat::setObjectIndex(int object).
Sourcepub unsafe fn set_object_type(&self, type_: c_int)
pub unsafe fn set_object_type(&self, type_: c_int)
Calls C++ function: void QTextFormat::setObjectType(int type).
Sourcepub unsafe fn set_property_int_q_variant(
&self,
property_id: c_int,
value: impl CastInto<Ref<QVariant>>,
)
pub unsafe fn set_property_int_q_variant( &self, property_id: c_int, value: impl CastInto<Ref<QVariant>>, )
Calls C++ function: void QTextFormat::setProperty(int propertyId, const QVariant& value).
Sourcepub unsafe fn set_property_int_q_vector_of_q_text_length(
&self,
property_id: c_int,
lengths: impl CastInto<Ref<QVectorOfQTextLength>>,
)
pub unsafe fn set_property_int_q_vector_of_q_text_length( &self, property_id: c_int, lengths: impl CastInto<Ref<QVectorOfQTextLength>>, )
Calls C++ function: void QTextFormat::setProperty(int propertyId, const QVector<QTextLength>& lengths).
Sourcepub unsafe fn string_property(&self, property_id: c_int) -> CppBox<QString>
pub unsafe fn string_property(&self, property_id: c_int) -> CppBox<QString>
Calls C++ function: QString QTextFormat::stringProperty(int propertyId) const.
Sourcepub unsafe fn swap(&self, other: impl CastInto<Ref<QTextFormat>>)
pub unsafe fn swap(&self, other: impl CastInto<Ref<QTextFormat>>)
Calls C++ function: void QTextFormat::swap(QTextFormat& other).
Sourcepub unsafe fn to_block_format(&self) -> CppBox<QTextBlockFormat>
pub unsafe fn to_block_format(&self) -> CppBox<QTextBlockFormat>
Calls C++ function: QTextBlockFormat QTextFormat::toBlockFormat() const.
Sourcepub unsafe fn to_char_format(&self) -> CppBox<QTextCharFormat>
pub unsafe fn to_char_format(&self) -> CppBox<QTextCharFormat>
Calls C++ function: QTextCharFormat QTextFormat::toCharFormat() const.
Sourcepub unsafe fn to_frame_format(&self) -> CppBox<QTextFrameFormat>
pub unsafe fn to_frame_format(&self) -> CppBox<QTextFrameFormat>
Calls C++ function: QTextFrameFormat QTextFormat::toFrameFormat() const.
Sourcepub unsafe fn to_image_format(&self) -> CppBox<QTextImageFormat>
pub unsafe fn to_image_format(&self) -> CppBox<QTextImageFormat>
Calls C++ function: QTextImageFormat QTextFormat::toImageFormat() const.
Sourcepub unsafe fn to_list_format(&self) -> CppBox<QTextListFormat>
pub unsafe fn to_list_format(&self) -> CppBox<QTextListFormat>
Calls C++ function: QTextListFormat QTextFormat::toListFormat() const.
Sourcepub unsafe fn to_q_variant(&self) -> CppBox<QVariant>
pub unsafe fn to_q_variant(&self) -> CppBox<QVariant>
Calls C++ function: QVariant QTextFormat::operator QVariant() const.
Sourcepub unsafe fn to_table_cell_format(&self) -> CppBox<QTextTableCellFormat>
pub unsafe fn to_table_cell_format(&self) -> CppBox<QTextTableCellFormat>
Calls C++ function: QTextTableCellFormat QTextFormat::toTableCellFormat() const.
Sourcepub unsafe fn to_table_format(&self) -> CppBox<QTextTableFormat>
pub unsafe fn to_table_format(&self) -> CppBox<QTextTableFormat>
Calls C++ function: QTextTableFormat QTextFormat::toTableFormat() const.
Trait Implementations§
Source§impl CppDeletable for QTextBlockFormat
impl CppDeletable for QTextBlockFormat
Source§impl Deref for QTextBlockFormat
impl Deref for QTextBlockFormat
Source§fn deref(&self) -> &QTextFormat
fn deref(&self) -> &QTextFormat
Calls C++ function: QTextFormat* static_cast<QTextFormat*>(QTextBlockFormat* ptr).
Source§type Target = QTextFormat
type Target = QTextFormat
Source§impl StaticDowncast<QTextBlockFormat> for QTextFormat
impl StaticDowncast<QTextBlockFormat> for QTextFormat
Source§unsafe fn static_downcast(ptr: Ptr<QTextFormat>) -> Ptr<QTextBlockFormat>
unsafe fn static_downcast(ptr: Ptr<QTextFormat>) -> Ptr<QTextBlockFormat>
Calls C++ function: QTextBlockFormat* static_cast<QTextBlockFormat*>(QTextFormat* ptr).
Source§impl StaticUpcast<QTextFormat> for QTextBlockFormat
impl StaticUpcast<QTextFormat> for QTextBlockFormat
Source§unsafe fn static_upcast(ptr: Ptr<QTextBlockFormat>) -> Ptr<QTextFormat>
unsafe fn static_upcast(ptr: Ptr<QTextBlockFormat>) -> Ptr<QTextFormat>
Calls C++ function: QTextFormat* static_cast<QTextFormat*>(QTextBlockFormat* ptr).