pub struct Cursor { /* private fields */ }Expand description
Represents a mouse cursor.
Cursors have reference semantics: two cursors are equal only if they are the same object.
Implementations§
Source§impl Cursor
impl Cursor
Sourcepub fn default_cursor() -> Rc<Cursor>
pub fn default_cursor() -> Rc<Cursor>
The default cursor: the standard arrow.
Panics if no cursor factory is registered with the locator.
Sourcepub fn new(cursor_type: StandardCursorType) -> Rc<Cursor>
pub fn new(cursor_type: StandardCursorType) -> Rc<Cursor>
Creates a standard cursor.
Panics if no cursor factory is registered with the locator.
Sourcepub fn from_bitmap(cursor: &Bitmap, hot_spot: PixelPoint) -> Rc<Cursor>
pub fn from_bitmap(cursor: &Bitmap, hot_spot: PixelPoint) -> Rc<Cursor>
Creates a cursor from a bitmap. hot_spot is the position within
the bitmap that is the position of the pointer.
Panics if no cursor factory is registered with the locator.
Sourcepub fn platform_impl(&self) -> &Rc<dyn ICursorImpl>
pub fn platform_impl(&self) -> &Rc<dyn ICursorImpl>
The platform implementation of the cursor.
Trait Implementations§
impl Eq for Cursor
Source§impl MarkupTyped for Cursor
impl MarkupTyped for Cursor
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
The markup metadata of the type.
Auto Trait Implementations§
impl !RefUnwindSafe for Cursor
impl !Send for Cursor
impl !Sync for Cursor
impl !UnwindSafe for Cursor
impl Freeze for Cursor
impl Unpin for Cursor
impl UnsafeUnpin for Cursor
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more