Struct qt_gui::q_text_layout::FormatRange
source · #[repr(C)]pub struct FormatRange { /* private fields */ }
Expand description
The QTextLayout::FormatRange structure is used to apply extra formatting information for a specified area in the text layout's content.
C++ class: QTextLayout::FormatRange
.
The QTextLayout::FormatRange structure is used to apply extra formatting information for a specified area in the text layout’s content.
Implementations§
source§impl FormatRange
impl FormatRange
sourcepub unsafe fn copy_from(
&self,
other: impl CastInto<Ref<FormatRange>>
) -> Ref<FormatRange>
pub unsafe fn copy_from( &self, other: impl CastInto<Ref<FormatRange>> ) -> Ref<FormatRange>
The QTextLayout::FormatRange structure is used to apply extra formatting information for a specified area in the text layout's content.
Calls C++ function: QTextLayout::FormatRange& QTextLayout::FormatRange::operator=(const QTextLayout::FormatRange& other)
.
The QTextLayout::FormatRange structure is used to apply extra formatting information for a specified area in the text layout’s content.
sourcepub unsafe fn format(&self) -> Ref<QTextCharFormat>
pub unsafe fn format(&self) -> Ref<QTextCharFormat>
Returns a reference to the format
field.
sourcepub unsafe fn format_mut(&self) -> Ref<QTextCharFormat>
pub unsafe fn format_mut(&self) -> Ref<QTextCharFormat>
Returns a mutable reference to the format
field.
sourcepub unsafe fn new() -> CppBox<FormatRange>
pub unsafe fn new() -> CppBox<FormatRange>
The QTextLayout::FormatRange structure is used to apply extra formatting information for a specified area in the text layout's content.
Calls C++ function: [constructor] void QTextLayout::FormatRange::FormatRange()
.
The QTextLayout::FormatRange structure is used to apply extra formatting information for a specified area in the text layout’s content.
sourcepub unsafe fn new_copy(
other: impl CastInto<Ref<FormatRange>>
) -> CppBox<FormatRange>
pub unsafe fn new_copy( other: impl CastInto<Ref<FormatRange>> ) -> CppBox<FormatRange>
The QTextLayout::FormatRange structure is used to apply extra formatting information for a specified area in the text layout's content.
Calls C++ function: [constructor] void QTextLayout::FormatRange::FormatRange(const QTextLayout::FormatRange& other)
.
The QTextLayout::FormatRange structure is used to apply extra formatting information for a specified area in the text layout’s content.
sourcepub unsafe fn set_format(&self, value: impl CastInto<Ref<QTextCharFormat>>)
pub unsafe fn set_format(&self, value: impl CastInto<Ref<QTextCharFormat>>)
Sets the value of the format
field.
sourcepub unsafe fn set_length(&self, value: c_int)
pub unsafe fn set_length(&self, value: c_int)
Sets the value of the length
field.
Trait Implementations§
source§impl CppDeletable for FormatRange
impl CppDeletable for FormatRange
source§unsafe fn delete(&self)
unsafe fn delete(&self)
The QTextLayout::FormatRange structure is used to apply extra formatting information for a specified area in the text layout's content.
Calls C++ function: [destructor] void QTextLayout::FormatRange::~FormatRange()
.
The QTextLayout::FormatRange structure is used to apply extra formatting information for a specified area in the text layout’s content.