[][src]Struct qt_widgets::q_text_edit::ExtraSelection

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

The QTextEdit::ExtraSelection structure provides a way of specifying a character format for a given selection in a document

C++ class: QTextEdit::ExtraSelection.

C++ documentation:

The QTextEdit::ExtraSelection structure provides a way of specifying a character format for a given selection in a document

Methods

impl ExtraSelection[src]

pub unsafe fn copy_from(
    &mut self,
    other: impl CastInto<Ref<ExtraSelection>>
) -> MutRef<ExtraSelection>
[src]

The QTextEdit::ExtraSelection structure provides a way of specifying a character format for a given selection in a document

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

C++ documentation:

The QTextEdit::ExtraSelection structure provides a way of specifying a character format for a given selection in a document

pub unsafe fn cursor(&self) -> Ref<QTextCursor>[src]

Returns a reference to the cursor field.

pub unsafe fn cursor_mut(&mut self) -> MutRef<QTextCursor>[src]

Returns a mutable reference to the cursor field.

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 new() -> CppBox<ExtraSelection>[src]

The QTextEdit::ExtraSelection structure provides a way of specifying a character format for a given selection in a document

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

C++ documentation:

The QTextEdit::ExtraSelection structure provides a way of specifying a character format for a given selection in a document

pub unsafe fn new_copy(
    other: impl CastInto<Ref<ExtraSelection>>
) -> CppBox<ExtraSelection>
[src]

The QTextEdit::ExtraSelection structure provides a way of specifying a character format for a given selection in a document

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

C++ documentation:

The QTextEdit::ExtraSelection structure provides a way of specifying a character format for a given selection in a document

pub unsafe fn set_cursor(&mut self, value: impl CastInto<Ref<QTextCursor>>)[src]

Sets the value of the cursor field.

pub unsafe fn set_format(&mut self, value: impl CastInto<Ref<QTextCharFormat>>)[src]

Sets the value of the format field.

Trait Implementations

impl CppDeletable for ExtraSelection[src]

unsafe fn delete(&mut self)[src]

The QTextEdit::ExtraSelection structure provides a way of specifying a character format for a given selection in a document

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

C++ documentation:

The QTextEdit::ExtraSelection structure provides a way of specifying a character format for a given selection in a document

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<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.

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

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

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

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

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