pub struct CursorFactory { /* private fields */ }Expand description
Creates the cursors of the macOS backend.
Implementations§
Source§impl CursorFactory
impl CursorFactory
pub fn new(native: ComPtr<IFrnCursorFactory>) -> Self
Trait Implementations§
Source§impl ICursorFactory for CursorFactory
impl ICursorFactory for CursorFactory
Source§fn create_cursor(
&self,
cursor: &Bitmap,
hot_spot: PixelPoint,
) -> Rc<dyn ICursorImpl>
fn create_cursor( &self, cursor: &Bitmap, hot_spot: PixelPoint, ) -> Rc<dyn ICursorImpl>
§Panics
Panics when the bitmap cannot be encoded, where the reference implementation throws.
Source§fn get_cursor(&self, cursor_type: StandardCursorType) -> Rc<dyn ICursorImpl>
fn get_cursor(&self, cursor_type: StandardCursorType) -> Rc<dyn ICursorImpl>
Gets the platform cursor for a standard cursor type.
Auto Trait Implementations§
impl !Send for CursorFactory
impl !Sync for CursorFactory
impl Freeze for CursorFactory
impl RefUnwindSafe for CursorFactory
impl Unpin for CursorFactory
impl UnsafeUnpin for CursorFactory
impl UnwindSafe for CursorFactory
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> 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