pub struct Cursor { /* private fields */ }
Implementations§
source§impl Cursor
impl Cursor
pub fn new( origin: Point<Pixels>, block_width: Pixels, line_height: Pixels, color: Hsla, shape: CursorShape, block_text: Option<ShapedLine> ) -> Cursor
pub fn bounding_rect(&self, origin: Point<Pixels>) -> Bounds<Pixels>
pub fn paint(&self, origin: Point<Pixels>, cx: &mut WindowContext<'_>)
pub fn shape(&self) -> CursorShape
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Cursor
impl Send for Cursor
impl Sync for Cursor
impl Unpin for Cursor
impl UnwindSafe for Cursor
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