[−][src]Struct qt_gui::q_abstract_text_document_layout::Selection
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.
Methods
impl Selection
[src]
pub unsafe fn copy_from(
&mut self,
other: impl CastInto<Ref<Selection>>
) -> MutRef<Selection>
[src]
&mut self,
other: impl CastInto<Ref<Selection>>
) -> MutRef<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.
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()
.
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]
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.
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()
.
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
impl RefUnwindSafe for Selection
impl Send for Selection
impl Sync for Selection
impl Unpin for Selection
impl UnwindSafe for Selection
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>,