pub struct TextCursorStyle {
    pub stroke: Stroke,
    pub preview: bool,
    pub blink: bool,
    pub on_duration: f32,
    pub off_duration: f32,
}Expand description
Look and feel of the text cursor.
Fields§
§stroke: StrokeThe color and width of the text cursor
preview: boolShow where the text cursor would be if you clicked?
blink: boolShould the cursor blink?
on_duration: f32When blinking, this is how long the cursor is visible.
off_duration: f32When blinking, this is how long the cursor is invisible.
Trait Implementations§
Source§impl Clone for TextCursorStyle
 
impl Clone for TextCursorStyle
Source§fn clone(&self) -> TextCursorStyle
 
fn clone(&self) -> TextCursorStyle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for TextCursorStyle
 
impl Debug for TextCursorStyle
Source§impl Default for TextCursorStyle
 
impl Default for TextCursorStyle
Source§impl<'de> Deserialize<'de> for TextCursorStylewhere
    TextCursorStyle: Default,
 
impl<'de> Deserialize<'de> for TextCursorStylewhere
    TextCursorStyle: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TextCursorStyle
 
impl PartialEq for TextCursorStyle
Source§impl Serialize for TextCursorStyle
 
impl Serialize for TextCursorStyle
impl StructuralPartialEq for TextCursorStyle
Auto Trait Implementations§
impl Freeze for TextCursorStyle
impl RefUnwindSafe for TextCursorStyle
impl Send for TextCursorStyle
impl Sync for TextCursorStyle
impl Unpin for TextCursorStyle
impl UnwindSafe for TextCursorStyle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more