[][src]Struct qt_gui::q_text_layout::FormatRange

#[repr(C)]
pub struct FormatRange { /* fields omitted */ }

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.

C++ documentation:

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]

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

C++ documentation:

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

C++ documentation:

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]

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

C++ documentation:

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

C++ documentation:

The QTextLayout::FormatRange structure is used to apply extra formatting information for a specified area in the text layout's content.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.