pub unsafe trait UITextCursorView: UICoordinateSpace + MainThreadOnly {
// Provided methods
unsafe fn isBlinking(&self) -> bool
where Self: Sized + Message { ... }
unsafe fn setBlinking(&self, blinking: bool)
where Self: Sized + Message { ... }
unsafe 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§
Sourceunsafe fn isBlinking(&self) -> bool
unsafe fn isBlinking(&self) -> bool
Enables the blink animation. Disabled by default.
Sourceunsafe fn setBlinking(&self, blinking: bool)
unsafe fn setBlinking(&self, blinking: bool)
Setter for isBlinking
.
Sourceunsafe fn resetBlinkAnimation(&self)
unsafe 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.