pub struct Selection { /* private fields */ }Expand description
C++ class: QAbstractTextDocumentLayout::Selection.
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>
Calls C++ function: QAbstractTextDocumentLayout::Selection& QAbstractTextDocumentLayout::Selection::operator=(const QAbstractTextDocumentLayout::Selection& other).
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>
Calls C++ function: [constructor] void QAbstractTextDocumentLayout::Selection::Selection().
Sourcepub unsafe fn new_copy(
other: impl CastInto<Ref<Selection>>,
) -> CppBox<Selection>
pub unsafe fn new_copy( other: impl CastInto<Ref<Selection>>, ) -> CppBox<Selection>
Calls C++ function: [constructor] void QAbstractTextDocumentLayout::Selection::Selection(const QAbstractTextDocumentLayout::Selection& other).
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§
Auto Trait Implementations§
impl Freeze for Selection
impl RefUnwindSafe for Selection
impl Send for Selection
impl Sync for Selection
impl Unpin for Selection
impl UnsafeUnpin for Selection
impl UnwindSafe for Selection
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more