pub struct MoveOperation(/* private fields */);
Expand description

See also movePosition().

C++ enum: QTextCursor::MoveOperation.

C++ documentation:

See also movePosition().

Implementations§

source§

impl MoveOperation

source

pub fn to_int(&self) -> c_int

source§

impl MoveOperation

source

pub const NoMove: MoveOperation = _

Keep the cursor where it is (C++ enum variant: NoMove = 0)

source

pub const Start: MoveOperation = _

Move to the start of the document. (C++ enum variant: Start = 1)

source

pub const Up: MoveOperation = _

Move up one line. (C++ enum variant: Up = 2)

source

pub const StartOfLine: MoveOperation = _

Move to the start of the current line. (C++ enum variant: StartOfLine = 3)

source

pub const StartOfBlock: MoveOperation = _

Move to the start of the current block. (C++ enum variant: StartOfBlock = 4)

source

pub const StartOfWord: MoveOperation = _

Move to the start of the current word. (C++ enum variant: StartOfWord = 5)

source

pub const PreviousBlock: MoveOperation = _

Move to the start of the previous block. (C++ enum variant: PreviousBlock = 6)

source

pub const PreviousCharacter: MoveOperation = _

Move to the previous character. (C++ enum variant: PreviousCharacter = 7)

source

pub const PreviousWord: MoveOperation = _

Move to the beginning of the previous word. (C++ enum variant: PreviousWord = 8)

source

pub const Left: MoveOperation = _

Move left one character. (C++ enum variant: Left = 9)

source

pub const WordLeft: MoveOperation = _

Move left one word. (C++ enum variant: WordLeft = 10)

source

pub const End: MoveOperation = _

Move to the end of the document. (C++ enum variant: End = 11)

source

pub const Down: MoveOperation = _

Move down one line. (C++ enum variant: Down = 12)

source

pub const EndOfLine: MoveOperation = _

Move to the end of the current line. (C++ enum variant: EndOfLine = 13)

source

pub const EndOfWord: MoveOperation = _

Move to the end of the current word. (C++ enum variant: EndOfWord = 14)

source

pub const EndOfBlock: MoveOperation = _

Move to the end of the current block. (C++ enum variant: EndOfBlock = 15)

source

pub const NextBlock: MoveOperation = _

Move to the beginning of the next block. (C++ enum variant: NextBlock = 16)

source

pub const NextCharacter: MoveOperation = _

Move to the next character. (C++ enum variant: NextCharacter = 17)

source

pub const NextWord: MoveOperation = _

Move to the next word. (C++ enum variant: NextWord = 18)

source

pub const Right: MoveOperation = _

Move right one character. (C++ enum variant: Right = 19)

source

pub const WordRight: MoveOperation = _

Move right one word. (C++ enum variant: WordRight = 20)

source

pub const NextCell: MoveOperation = _

Move to the beginning of the next table cell inside the current table. If the current cell is the last cell in the row, the cursor will move to the first cell in the next row. (C++ enum variant: NextCell = 21)

source

pub const PreviousCell: MoveOperation = _

Move to the beginning of the previous table cell inside the current table. If the current cell is the first cell in the row, the cursor will move to the last cell in the previous row. (C++ enum variant: PreviousCell = 22)

source

pub const NextRow: MoveOperation = _

Move to the first new cell of the next row in the current table. (C++ enum variant: NextRow = 23)

source

pub const PreviousRow: MoveOperation = _

Move to the last cell of the previous row in the current table. (C++ enum variant: PreviousRow = 24)

Trait Implementations§

source§

impl Clone for MoveOperation

source§

fn clone(&self) -> MoveOperation

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for MoveOperation

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<MoveOperation> for c_int

source§

fn from(value: MoveOperation) -> Self

Converts to this type from the input type.
source§

impl From<i32> for MoveOperation

source§

fn from(value: c_int) -> Self

Converts to this type from the input type.
source§

impl PartialEq for MoveOperation

source§

fn eq(&self, other: &MoveOperation) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for MoveOperation

source§

impl Eq for MoveOperation

source§

impl StructuralEq for MoveOperation

source§

impl StructuralPartialEq for MoveOperation

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T, U> CastInto<U> for T
where U: CastFrom<T>,

source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> StaticUpcast<T> for T

source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.