Skip to main content

QTextBlockFormat

Struct QTextBlockFormat 

Source
pub struct QTextBlockFormat { /* private fields */ }
Expand description

C++ class: QTextBlockFormat.

Implementations§

Source§

impl QTextBlockFormat

Source

pub unsafe fn alignment(&self) -> QFlags<AlignmentFlag>

Calls C++ function: QFlags<Qt::AlignmentFlag> QTextBlockFormat::alignment() const.

Source

pub unsafe fn bottom_margin(&self) -> c_double

Calls C++ function: double QTextBlockFormat::bottomMargin() const.

Source

pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QTextBlockFormat>>, ) -> Ref<QTextBlockFormat>

Calls C++ function: QTextBlockFormat& QTextBlockFormat::operator=(const QTextBlockFormat& other).

Source

pub unsafe fn heading_level(&self) -> c_int

Calls C++ function: int QTextBlockFormat::headingLevel() const.

Source

pub unsafe fn indent(&self) -> c_int

Calls C++ function: int QTextBlockFormat::indent() const.

Source

pub unsafe fn is_valid(&self) -> bool

Calls C++ function: bool QTextBlockFormat::isValid() const.

Source

pub unsafe fn left_margin(&self) -> c_double

Calls C++ function: double QTextBlockFormat::leftMargin() const.

Source

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.

Source

pub unsafe fn line_height_0a(&self) -> c_double

Calls C++ function: double QTextBlockFormat::lineHeight() const.

Source

pub unsafe fn line_height_type(&self) -> c_int

Calls C++ function: int QTextBlockFormat::lineHeightType() const.

Source

pub unsafe fn marker(&self) -> MarkerType

Calls C++ function: QTextBlockFormat::MarkerType QTextBlockFormat::marker() const.

Source

pub unsafe fn new() -> CppBox<QTextBlockFormat>

Calls C++ function: [constructor] void QTextBlockFormat::QTextBlockFormat().

Source

pub unsafe fn new_copy( other: impl CastInto<Ref<QTextBlockFormat>>, ) -> CppBox<QTextBlockFormat>

Calls C++ function: [constructor] void QTextBlockFormat::QTextBlockFormat(const QTextBlockFormat& other).

Source

pub unsafe fn non_breakable_lines(&self) -> bool

Calls C++ function: bool QTextBlockFormat::nonBreakableLines() const.

Source

pub unsafe fn page_break_policy(&self) -> QFlags<PageBreakFlag>

Calls C++ function: QFlags<QTextFormat::PageBreakFlag> QTextBlockFormat::pageBreakPolicy() const.

Source

pub unsafe fn right_margin(&self) -> c_double

Calls C++ function: double QTextBlockFormat::rightMargin() const.

Source

pub unsafe fn set_alignment(&self, alignment: QFlags<AlignmentFlag>)

Calls C++ function: void QTextBlockFormat::setAlignment(QFlags<Qt::AlignmentFlag> alignment).

Source

pub unsafe fn set_bottom_margin(&self, margin: c_double)

Calls C++ function: void QTextBlockFormat::setBottomMargin(double margin).

Source

pub unsafe fn set_heading_level(&self, alevel: c_int)

Calls C++ function: void QTextBlockFormat::setHeadingLevel(int alevel).

Source

pub unsafe fn set_indent(&self, indent: c_int)

Calls C++ function: void QTextBlockFormat::setIndent(int indent).

Source

pub unsafe fn set_left_margin(&self, margin: c_double)

Calls C++ function: void QTextBlockFormat::setLeftMargin(double margin).

Source

pub unsafe fn set_line_height(&self, height: c_double, height_type: c_int)

Calls C++ function: void QTextBlockFormat::setLineHeight(double height, int heightType).

Source

pub unsafe fn set_marker(&self, marker: MarkerType)

Calls C++ function: void QTextBlockFormat::setMarker(QTextBlockFormat::MarkerType marker).

Source

pub unsafe fn set_non_breakable_lines(&self, b: bool)

Calls C++ function: void QTextBlockFormat::setNonBreakableLines(bool b).

Source

pub unsafe fn set_page_break_policy(&self, flags: QFlags<PageBreakFlag>)

Calls C++ function: void QTextBlockFormat::setPageBreakPolicy(QFlags<QTextFormat::PageBreakFlag> flags).

Source

pub unsafe fn set_right_margin(&self, margin: c_double)

Calls C++ function: void QTextBlockFormat::setRightMargin(double margin).

Source

pub unsafe fn set_tab_positions(&self, tabs: impl CastInto<Ref<QListOfTab>>)

Calls C++ function: void QTextBlockFormat::setTabPositions(const QList<QTextOption::Tab>& tabs).

Source

pub unsafe fn set_text_indent(&self, aindent: c_double)

Calls C++ function: void QTextBlockFormat::setTextIndent(double aindent).

Source

pub unsafe fn set_top_margin(&self, margin: c_double)

Calls C++ function: void QTextBlockFormat::setTopMargin(double margin).

Source

pub unsafe fn tab_positions(&self) -> CppBox<QListOfTab>

Calls C++ function: QList<QTextOption::Tab> QTextBlockFormat::tabPositions() const.

Source

pub unsafe fn text_indent(&self) -> c_double

Calls C++ function: double QTextBlockFormat::textIndent() const.

Source

pub unsafe fn top_margin(&self) -> c_double

Calls C++ function: double QTextBlockFormat::topMargin() const.

Methods from Deref<Target = QTextFormat>§

Source

pub unsafe fn background(&self) -> CppBox<QBrush>

Calls C++ function: QBrush QTextFormat::background() const.

Source

pub unsafe fn bool_property(&self, property_id: c_int) -> bool

Calls C++ function: bool QTextFormat::boolProperty(int propertyId) const.

Source

pub unsafe fn brush_property(&self, property_id: c_int) -> CppBox<QBrush>

Calls C++ function: QBrush QTextFormat::brushProperty(int propertyId) const.

Source

pub unsafe fn clear_background(&self)

Calls C++ function: void QTextFormat::clearBackground().

Source

pub unsafe fn clear_foreground(&self)

Calls C++ function: void QTextFormat::clearForeground().

Source

pub unsafe fn clear_property(&self, property_id: c_int)

Calls C++ function: void QTextFormat::clearProperty(int propertyId).

Source

pub unsafe fn color_property(&self, property_id: c_int) -> CppBox<QColor>

Calls C++ function: QColor QTextFormat::colorProperty(int propertyId) const.

Source

pub unsafe fn copy_from( &self, rhs: impl CastInto<Ref<QTextFormat>>, ) -> Ref<QTextFormat>

Calls C++ function: QTextFormat& QTextFormat::operator=(const QTextFormat& rhs).

Source

pub unsafe fn double_property(&self, property_id: c_int) -> c_double

Calls C++ function: double QTextFormat::doubleProperty(int propertyId) const.

Source

pub unsafe fn foreground(&self) -> CppBox<QBrush>

Calls C++ function: QBrush QTextFormat::foreground() const.

Source

pub unsafe fn has_property(&self, property_id: c_int) -> bool

Calls C++ function: bool QTextFormat::hasProperty(int propertyId) const.

Source

pub unsafe fn int_property(&self, property_id: c_int) -> c_int

Calls C++ function: int QTextFormat::intProperty(int propertyId) const.

Source

pub unsafe fn is_block_format(&self) -> bool

Calls C++ function: bool QTextFormat::isBlockFormat() const.

Source

pub unsafe fn is_char_format(&self) -> bool

Calls C++ function: bool QTextFormat::isCharFormat() const.

Source

pub unsafe fn is_empty(&self) -> bool

Calls C++ function: bool QTextFormat::isEmpty() const.

Source

pub unsafe fn is_frame_format(&self) -> bool

Calls C++ function: bool QTextFormat::isFrameFormat() const.

Source

pub unsafe fn is_image_format(&self) -> bool

Calls C++ function: bool QTextFormat::isImageFormat() const.

Source

pub unsafe fn is_list_format(&self) -> bool

Calls C++ function: bool QTextFormat::isListFormat() const.

Source

pub unsafe fn is_table_cell_format(&self) -> bool

Calls C++ function: bool QTextFormat::isTableCellFormat() const.

Source

pub unsafe fn is_table_format(&self) -> bool

Calls C++ function: bool QTextFormat::isTableFormat() const.

Source

pub unsafe fn is_valid(&self) -> bool

Calls C++ function: bool QTextFormat::isValid() const.

Source

pub unsafe fn layout_direction(&self) -> LayoutDirection

Calls C++ function: Qt::LayoutDirection QTextFormat::layoutDirection() const.

Source

pub unsafe fn length_property(&self, property_id: c_int) -> CppBox<QTextLength>

Calls C++ function: QTextLength QTextFormat::lengthProperty(int propertyId) const.

Source

pub unsafe fn length_vector_property( &self, property_id: c_int, ) -> CppBox<QVectorOfQTextLength>

Calls C++ function: QVector<QTextLength> QTextFormat::lengthVectorProperty(int propertyId) const.

Source

pub unsafe fn merge(&self, other: impl CastInto<Ref<QTextFormat>>)

Calls C++ function: void QTextFormat::merge(const QTextFormat& other).

Source

pub unsafe fn object_index(&self) -> c_int

Calls C++ function: int QTextFormat::objectIndex() const.

Source

pub unsafe fn object_type(&self) -> c_int

Calls C++ function: int QTextFormat::objectType() const.

Source

pub unsafe fn pen_property(&self, property_id: c_int) -> CppBox<QPen>

Calls C++ function: QPen QTextFormat::penProperty(int propertyId) const.

Source

pub unsafe fn properties(&self) -> CppBox<QMapOfIntQVariant>

Calls C++ function: QMap<int, QVariant> QTextFormat::properties() const.

Source

pub unsafe fn property(&self, property_id: c_int) -> CppBox<QVariant>

Calls C++ function: QVariant QTextFormat::property(int propertyId) const.

Source

pub unsafe fn property_count(&self) -> c_int

Calls C++ function: int QTextFormat::propertyCount() const.

Source

pub unsafe fn set_background(&self, brush: impl CastInto<Ref<QBrush>>)

Calls C++ function: void QTextFormat::setBackground(const QBrush& brush).

Source

pub unsafe fn set_foreground(&self, brush: impl CastInto<Ref<QBrush>>)

Calls C++ function: void QTextFormat::setForeground(const QBrush& brush).

Source

pub unsafe fn set_layout_direction(&self, direction: LayoutDirection)

Calls C++ function: void QTextFormat::setLayoutDirection(Qt::LayoutDirection direction).

Source

pub unsafe fn set_object_index(&self, object: c_int)

Calls C++ function: void QTextFormat::setObjectIndex(int object).

Source

pub unsafe fn set_object_type(&self, type_: c_int)

Calls C++ function: void QTextFormat::setObjectType(int type).

Source

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).

Source

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).

Source

pub unsafe fn string_property(&self, property_id: c_int) -> CppBox<QString>

Calls C++ function: QString QTextFormat::stringProperty(int propertyId) const.

Source

pub unsafe fn swap(&self, other: impl CastInto<Ref<QTextFormat>>)

Calls C++ function: void QTextFormat::swap(QTextFormat& other).

Source

pub unsafe fn to_block_format(&self) -> CppBox<QTextBlockFormat>

Calls C++ function: QTextBlockFormat QTextFormat::toBlockFormat() const.

Source

pub unsafe fn to_char_format(&self) -> CppBox<QTextCharFormat>

Calls C++ function: QTextCharFormat QTextFormat::toCharFormat() const.

Source

pub unsafe fn to_frame_format(&self) -> CppBox<QTextFrameFormat>

Calls C++ function: QTextFrameFormat QTextFormat::toFrameFormat() const.

Source

pub unsafe fn to_image_format(&self) -> CppBox<QTextImageFormat>

Calls C++ function: QTextImageFormat QTextFormat::toImageFormat() const.

Source

pub unsafe fn to_list_format(&self) -> CppBox<QTextListFormat>

Calls C++ function: QTextListFormat QTextFormat::toListFormat() const.

Source

pub unsafe fn to_q_variant(&self) -> CppBox<QVariant>

Calls C++ function: QVariant QTextFormat::operator QVariant() const.

Source

pub unsafe fn to_table_cell_format(&self) -> CppBox<QTextTableCellFormat>

Calls C++ function: QTextTableCellFormat QTextFormat::toTableCellFormat() const.

Source

pub unsafe fn to_table_format(&self) -> CppBox<QTextTableFormat>

Calls C++ function: QTextTableFormat QTextFormat::toTableFormat() const.

Source

pub unsafe fn type_(&self) -> c_int

Calls C++ function: int QTextFormat::type() const.

Trait Implementations§

Source§

impl CppDeletable for QTextBlockFormat

Source§

unsafe fn delete(&self)

Calls C++ function: [destructor] void QTextBlockFormat::~QTextBlockFormat().

Source§

impl Deref for QTextBlockFormat

Source§

fn deref(&self) -> &QTextFormat

Calls C++ function: QTextFormat* static_cast<QTextFormat*>(QTextBlockFormat* ptr).

Source§

type Target = QTextFormat

The resulting type after dereferencing.
Source§

impl StaticDowncast<QTextBlockFormat> for QTextFormat

Source§

unsafe fn static_downcast(ptr: Ptr<QTextFormat>) -> Ptr<QTextBlockFormat>

Calls C++ function: QTextBlockFormat* static_cast<QTextBlockFormat*>(QTextFormat* ptr).

Source§

impl StaticUpcast<QTextFormat> for QTextBlockFormat

Source§

unsafe fn static_upcast(ptr: Ptr<QTextBlockFormat>) -> Ptr<QTextFormat>

Calls C++ function: QTextFormat* static_cast<QTextFormat*>(QTextBlockFormat* ptr).

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T, U> CastInto<U> for T
where U: CastFrom<T>,

Source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> StaticUpcast<T> for T

Source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.