#[non_exhaustive]pub struct CursorStyle {
pub tile: Option<u16>,
pub anchor: CursorAnchor,
}Expand description
Cursor indicator style for menus.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.tile: Option<u16>Tile index for the cursor glyph. None → invisible cursor.
anchor: CursorAnchorHow the cursor is positioned relative to the menu entry.
Implementations§
Source§impl CursorStyle
impl CursorStyle
Sourcepub fn new(tile: Option<u16>, anchor: CursorAnchor) -> Self
pub fn new(tile: Option<u16>, anchor: CursorAnchor) -> Self
Create a cursor style with the given tile index and anchor.
Trait Implementations§
Source§impl Clone for CursorStyle
impl Clone for CursorStyle
Source§fn clone(&self) -> CursorStyle
fn clone(&self) -> CursorStyle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CursorStyle
impl Debug for CursorStyle
Source§impl Default for CursorStyle
impl Default for CursorStyle
Source§impl PartialEq for CursorStyle
impl PartialEq for CursorStyle
impl StructuralPartialEq for CursorStyle
Auto Trait Implementations§
impl Freeze for CursorStyle
impl RefUnwindSafe for CursorStyle
impl Send for CursorStyle
impl Sync for CursorStyle
impl Unpin for CursorStyle
impl UnsafeUnpin for CursorStyle
impl UnwindSafe for CursorStyle
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