[][src]Struct qt_gui::q_abstract_text_document_layout::Selection

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

The QAbstractTextDocumentLayout::Selection class is a convenience class defining the parameters of a selection.

C++ class: QAbstractTextDocumentLayout::Selection.

C++ documentation:

The QAbstractTextDocumentLayout::Selection class is a convenience class defining the parameters of a selection.

A selection can be used to specify a part of a document that should be highlighted when drawing custom layouts for QTextDocuments with the QAbstractTextDocumentLayout::draw() function. It is specified using cursor and a format.

Methods

impl Selection[src]

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

The QAbstractTextDocumentLayout::Selection class is a convenience class defining the parameters of a selection.

Calls C++ function: QAbstractTextDocumentLayout::Selection& QAbstractTextDocumentLayout::Selection::operator=(const QAbstractTextDocumentLayout::Selection& other).

C++ documentation:

The QAbstractTextDocumentLayout::Selection class is a convenience class defining the parameters of a selection.

A selection can be used to specify a part of a document that should be highlighted when drawing custom layouts for QTextDocuments with the QAbstractTextDocumentLayout::draw() function. It is specified using cursor and a format.

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<Selection>[src]

The QAbstractTextDocumentLayout::Selection class is a convenience class defining the parameters of a selection.

Calls C++ function: [constructor] void QAbstractTextDocumentLayout::Selection::Selection().

C++ documentation:

The QAbstractTextDocumentLayout::Selection class is a convenience class defining the parameters of a selection.

A selection can be used to specify a part of a document that should be highlighted when drawing custom layouts for QTextDocuments with the QAbstractTextDocumentLayout::draw() function. It is specified using cursor and a format.

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

The QAbstractTextDocumentLayout::Selection class is a convenience class defining the parameters of a selection.

Calls C++ function: [constructor] void QAbstractTextDocumentLayout::Selection::Selection(const QAbstractTextDocumentLayout::Selection& other).

C++ documentation:

The QAbstractTextDocumentLayout::Selection class is a convenience class defining the parameters of a selection.

A selection can be used to specify a part of a document that should be highlighted when drawing custom layouts for QTextDocuments with the QAbstractTextDocumentLayout::draw() function. It is specified using cursor and a format.

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 Selection[src]

unsafe fn delete(&mut self)[src]

The QAbstractTextDocumentLayout::Selection class is a convenience class defining the parameters of a selection.

Calls C++ function: [destructor] void QAbstractTextDocumentLayout::Selection::~Selection().

C++ documentation:

The QAbstractTextDocumentLayout::Selection class is a convenience class defining the parameters of a selection.

A selection can be used to specify a part of a document that should be highlighted when drawing custom layouts for QTextDocuments with the QAbstractTextDocumentLayout::draw() function. It is specified using cursor and a format.

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.