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§
Sourcefn isBlinking(&self) -> bool
fn isBlinking(&self) -> bool
Enables the blink animation. Disabled by default.
Sourcefn setBlinking(&self, blinking: bool)
fn setBlinking(&self, blinking: bool)
Setter for isBlinking.
Sourcefn resetBlinkAnimation(&self)
fn resetBlinkAnimation(&self)
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
impl ProtocolType for dyn UITextCursorView
impl<T> ImplementedBy<T> for dyn UITextCursorView
Implementations on Foreign Types§
impl<T> UITextCursorView for ProtocolObject<T>where
T: ?Sized + UITextCursorView,
Implementors§
impl UITextCursorView for UIStandardTextCursorView
Available on crate feature
UIStandardTextCursorView only.