Struct egui::style::TextCursorStyle
source · 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: Stroke
The color and width of the text cursor
preview: bool
Show where the text cursor would be if you clicked?
blink: bool
Should the cursor blink?
on_duration: f32
When blinking, this is how long the cursor is visible.
off_duration: f32
When blinking, this is how long the cursor is invisible.
Implementations§
Trait Implementations§
source§impl Clone for TextCursorStyle
impl Clone for TextCursorStyle
source§fn clone(&self) -> TextCursorStyle
fn clone(&self) -> TextCursorStyle
Returns a copy 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 PartialEq for TextCursorStyle
impl PartialEq 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)