Struct qt_gui::q_abstract_text_document_layout::Selection
source · #[repr(C)]pub struct Selection { /* private fields */ }
Expand description
The QAbstractTextDocumentLayout::Selection class is a convenience class defining the parameters of a selection.
C++ class: QAbstractTextDocumentLayout::Selection
.
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.
Implementations§
source§impl Selection
impl Selection
sourcepub unsafe fn copy_from(
&self,
other: impl CastInto<Ref<Selection>>
) -> Ref<Selection>
pub unsafe fn copy_from( &self, other: impl CastInto<Ref<Selection>> ) -> Ref<Selection>
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)
.
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.
sourcepub unsafe fn cursor(&self) -> Ref<QTextCursor>
pub unsafe fn cursor(&self) -> Ref<QTextCursor>
Returns a reference to the cursor
field.
sourcepub unsafe fn cursor_mut(&self) -> Ref<QTextCursor>
pub unsafe fn cursor_mut(&self) -> Ref<QTextCursor>
Returns a mutable reference to the cursor
field.
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<Selection>
pub unsafe fn new() -> CppBox<Selection>
The QAbstractTextDocumentLayout::Selection class is a convenience class defining the parameters of a selection.
Calls C++ function: [constructor] void QAbstractTextDocumentLayout::Selection::Selection()
.
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.
sourcepub unsafe fn new_copy(
other: impl CastInto<Ref<Selection>>
) -> CppBox<Selection>
pub unsafe fn new_copy( other: impl CastInto<Ref<Selection>> ) -> CppBox<Selection>
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)
.
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.
sourcepub unsafe fn set_cursor(&self, value: impl CastInto<Ref<QTextCursor>>)
pub unsafe fn set_cursor(&self, value: impl CastInto<Ref<QTextCursor>>)
Sets the value of the cursor
field.
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.
Trait Implementations§
source§impl CppDeletable for Selection
impl CppDeletable for Selection
source§unsafe fn delete(&self)
unsafe fn delete(&self)
The QAbstractTextDocumentLayout::Selection class is a convenience class defining the parameters of a selection.
Calls C++ function: [destructor] void QAbstractTextDocumentLayout::Selection::~Selection()
.
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.