Struct qt_gui::q_text_cursor::SelectionType
source · pub struct SelectionType(/* private fields */);
Expand description
Implementations§
source§impl SelectionType
impl SelectionType
sourcepub const WordUnderCursor: SelectionType = _
pub const WordUnderCursor: SelectionType = _
Selects the word under the cursor. If the cursor is not positioned within a string of selectable characters, no text is selected. (C++ enum variant: WordUnderCursor = 0
)
sourcepub const LineUnderCursor: SelectionType = _
pub const LineUnderCursor: SelectionType = _
Selects the line of text under the cursor. (C++ enum variant: LineUnderCursor = 1
)
sourcepub const BlockUnderCursor: SelectionType = _
pub const BlockUnderCursor: SelectionType = _
Selects the block of text under the cursor. (C++ enum variant: BlockUnderCursor = 2
)
sourcepub const Document: SelectionType = _
pub const Document: SelectionType = _
Selects the entire document. (C++ enum variant: Document = 3
)
Trait Implementations§
source§impl Clone for SelectionType
impl Clone for SelectionType
source§fn clone(&self) -> SelectionType
fn clone(&self) -> SelectionType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SelectionType
impl Debug for SelectionType
source§impl From<SelectionType> for c_int
impl From<SelectionType> for c_int
source§fn from(value: SelectionType) -> Self
fn from(value: SelectionType) -> Self
Converts to this type from the input type.
source§impl From<i32> for SelectionType
impl From<i32> for SelectionType
source§impl PartialEq for SelectionType
impl PartialEq for SelectionType
source§fn eq(&self, other: &SelectionType) -> bool
fn eq(&self, other: &SelectionType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SelectionType
impl Eq for SelectionType
impl StructuralEq for SelectionType
impl StructuralPartialEq for SelectionType
Auto Trait Implementations§
impl RefUnwindSafe for SelectionType
impl Send for SelectionType
impl Sync for SelectionType
impl Unpin for SelectionType
impl UnwindSafe for SelectionType
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