[−][src]Struct qt_gui::q_text_layout::FormatRange
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.
Methods
impl FormatRange
[src]
pub unsafe fn copy_from(
&mut self,
other: impl CastInto<Ref<FormatRange>>
) -> MutRef<FormatRange>
[src]
&mut self,
other: impl CastInto<Ref<FormatRange>>
) -> MutRef<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.
pub unsafe fn format(&self) -> Ref<QTextCharFormat>
[src]
Returns a reference to the format
field.
pub unsafe fn format_mut(&mut self) -> MutRef<QTextCharFormat>
[src]
Returns a mutable reference to the format
field.
pub unsafe fn length(&self) -> c_int
[src]
Returns the value of the length
field.
pub unsafe fn new() -> CppBox<FormatRange>
[src]
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.
pub unsafe fn new_copy(
other: impl CastInto<Ref<FormatRange>>
) -> CppBox<FormatRange>
[src]
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.
pub unsafe fn set_format(&mut self, value: impl CastInto<Ref<QTextCharFormat>>)
[src]
Sets the value of the format
field.
pub unsafe fn set_length(&mut self, value: c_int)
[src]
Sets the value of the length
field.
pub unsafe fn set_start(&mut self, value: c_int)
[src]
Sets the value of the start
field.
pub unsafe fn start(&self) -> c_int
[src]
Returns the value of the start
field.
Trait Implementations
impl CppDeletable for FormatRange
[src]
unsafe fn delete(&mut self)
[src]
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.
Auto Trait Implementations
impl RefUnwindSafe for FormatRange
impl Send for FormatRange
impl Sync for FormatRange
impl Unpin for FormatRange
impl UnwindSafe for FormatRange
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
unsafe fn static_upcast_mut(ptr: MutPtr<T>) -> MutPtr<T>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,