Skip to main content

BETextSelectionDirectionNavigation

Trait BETextSelectionDirectionNavigation 

Source
pub unsafe trait BETextSelectionDirectionNavigation {
    // Provided methods
    unsafe fn moveInLayoutDirection(&self, direction: UITextLayoutDirection)
       where Self: Sized + Message { ... }
    unsafe fn extendInLayoutDirection(&self, direction: UITextLayoutDirection)
       where Self: Sized + Message { ... }
    unsafe fn moveInStorageDirection_byGranularity(
        &self,
        direction: UITextStorageDirection,
        granularity: UITextGranularity,
    )
       where Self: Sized + Message { ... }
    unsafe fn extendInStorageDirection_byGranularity(
        &self,
        direction: UITextStorageDirection,
        granularity: UITextGranularity,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature BETextInput only.
Expand description

Provided Methods§

Source

unsafe fn moveInLayoutDirection(&self, direction: UITextLayoutDirection)
where Self: Sized + Message,

Moves the cursor in the specified directions, such as in response to an arrow key press.

Source

unsafe fn extendInLayoutDirection(&self, direction: UITextLayoutDirection)
where Self: Sized + Message,

Extends text selection in the specified directions, such as in response to an arrow key press while shift is held.

Source

unsafe fn moveInStorageDirection_byGranularity( &self, direction: UITextStorageDirection, granularity: UITextGranularity, )
where Self: Sized + Message,

Moves the cursor in the specified directions by granularity, in response to different key combinations:

Option + left/right = word Option + up/down = paragraph Command + left/right = line Command + up/down = document

Source

unsafe fn extendInStorageDirection_byGranularity( &self, direction: UITextStorageDirection, granularity: UITextGranularity, )
where Self: Sized + Message,

Moves the selection in the specified directions by granularity, in response to different key combinations:

word = shift + option + left/right paragraph = shift + option + up/down line = shift + command + left/right document = shift + command + up/down

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn BETextSelectionDirectionNavigation

Source§

impl ProtocolType for dyn BETextSelectionDirectionNavigation

Source§

const NAME: &'static str = "BETextSelectionDirectionNavigation"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> BETextSelectionDirectionNavigation for ProtocolObject<T>

Implementors§