Struct qt_core::CursorMoveStyle
source · pub struct CursorMoveStyle(/* private fields */);
Expand description
This enum describes the movement style available to text cursors. The options are:
C++ enum: Qt::CursorMoveStyle
.
This enum describes the movement style available to text cursors. The options are:
Implementations§
source§impl CursorMoveStyle
impl CursorMoveStyle
sourcepub const LogicalMoveStyle: CursorMoveStyle = _
pub const LogicalMoveStyle: CursorMoveStyle = _
Within a left-to-right text block, decrease cursor position when pressing left arrow key, increase cursor position when pressing the right arrow key. If the text block is right-to-left, the opposite behavior applies. (C++ enum variant: LogicalMoveStyle = 0
)
sourcepub const VisualMoveStyle: CursorMoveStyle = _
pub const VisualMoveStyle: CursorMoveStyle = _
Pressing the left arrow key will always cause the cursor to move left, regardless of the text’s writing direction. Pressing the right arrow key will always cause the cursor to move right. (C++ enum variant: VisualMoveStyle = 1
)
Trait Implementations§
source§impl Clone for CursorMoveStyle
impl Clone for CursorMoveStyle
source§fn clone(&self) -> CursorMoveStyle
fn clone(&self) -> CursorMoveStyle
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 CursorMoveStyle
impl Debug for CursorMoveStyle
source§impl From<CursorMoveStyle> for c_int
impl From<CursorMoveStyle> for c_int
source§fn from(value: CursorMoveStyle) -> Self
fn from(value: CursorMoveStyle) -> Self
Converts to this type from the input type.
source§impl From<i32> for CursorMoveStyle
impl From<i32> for CursorMoveStyle
source§impl PartialEq for CursorMoveStyle
impl PartialEq for CursorMoveStyle
source§fn eq(&self, other: &CursorMoveStyle) -> bool
fn eq(&self, other: &CursorMoveStyle) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for CursorMoveStyle
impl Eq for CursorMoveStyle
impl StructuralEq for CursorMoveStyle
impl StructuralPartialEq for CursorMoveStyle
Auto Trait Implementations§
impl RefUnwindSafe for CursorMoveStyle
impl Send for CursorMoveStyle
impl Sync for CursorMoveStyle
impl Unpin for CursorMoveStyle
impl UnwindSafe for CursorMoveStyle
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