UITextCursorView

Trait UITextCursorView 

Source
pub unsafe trait UITextCursorView: UICoordinateSpace + MainThreadOnly {
    // Provided methods
    fn isBlinking(&self) -> bool
       where Self: Sized + Message { ... }
    fn setBlinking(&self, blinking: bool)
       where Self: Sized + Message { ... }
    fn resetBlinkAnimation(&self)
       where Self: Sized + Message { ... }
}
Available on crate features UITextCursorView and UIView only.
Expand description

A view that displays a flashing cursor (aka “caret”) view.

When a selection is not ranged (or has a zero-length), a cursor view is displayed.

See also Apple’s documentation

Provided Methods§

Source

fn isBlinking(&self) -> bool
where Self: Sized + Message,

Enables the blink animation. Disabled by default.

Source

fn setBlinking(&self, blinking: bool)
where Self: Sized + Message,

Setter for isBlinking.

Source

fn resetBlinkAnimation(&self)
where Self: Sized + Message,

Call this when the cursor is moving (i.e., during typing) to make sure the cursor doesn’t blink while text is being inserted.

Trait Implementations§

Source§

impl ProtocolType for dyn UITextCursorView

Source§

const NAME: &'static str = "UITextCursorView"

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
Source§

impl<T> ImplementedBy<T> for dyn UITextCursorView

Implementations on Foreign Types§

Source§

impl<T> UITextCursorView for ProtocolObject<T>
where T: ?Sized + UITextCursorView,

Implementors§

Source§

impl UITextCursorView for UIStandardTextCursorView

Available on crate feature UIStandardTextCursorView only.