pub struct FormatRange { /* private fields */ }Expand description
C++ class: QTextLayout::FormatRange.
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>
Calls C++ function: QTextLayout::FormatRange& QTextLayout::FormatRange::operator=(const QTextLayout::FormatRange& other).
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>
Calls C++ function: [constructor] void QTextLayout::FormatRange::FormatRange().
Sourcepub unsafe fn new_copy(
other: impl CastInto<Ref<FormatRange>>,
) -> CppBox<FormatRange>
pub unsafe fn new_copy( other: impl CastInto<Ref<FormatRange>>, ) -> CppBox<FormatRange>
Calls C++ function: [constructor] void QTextLayout::FormatRange::FormatRange(const QTextLayout::FormatRange& other).
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
Auto Trait Implementations§
impl Freeze for FormatRange
impl RefUnwindSafe for FormatRange
impl Send for FormatRange
impl Sync for FormatRange
impl Unpin for FormatRange
impl UnsafeUnpin for FormatRange
impl UnwindSafe for FormatRange
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more