pub struct CssCursor { /* private fields */ }Expand description
A cursor as the value of the CSS cursor property.
Implementations§
Source§impl CssCursor
impl CssCursor
Sourcepub fn new(type_: StandardCursorType) -> Self
pub fn new(type_: StandardCursorType) -> Self
The CSS keyword of a standard cursor.
Sourcepub fn from_base64(
base64: &str,
format: &str,
hotspot: PixelPoint,
fallback: StandardCursorType,
) -> Self
pub fn from_base64( base64: &str, format: &str, hotspot: PixelPoint, fallback: StandardCursorType, ) -> Self
Create a cursor from base64 image
Sourcepub fn from_url(url: &str, fallback: StandardCursorType) -> Self
pub fn from_url(url: &str, fallback: StandardCursorType) -> Self
Create a cursor from url to *.cur file.
Sourcepub fn from_url_with_hot_spot(
url: &str,
hot_spot: PixelPoint,
fallback: StandardCursorType,
) -> Self
pub fn from_url_with_hot_spot( url: &str, hot_spot: PixelPoint, fallback: StandardCursorType, ) -> Self
Create a cursor from png/svg and hotspot position
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CssCursor
impl RefUnwindSafe for CssCursor
impl Send for CssCursor
impl Sync for CssCursor
impl Unpin for CssCursor
impl UnsafeUnpin for CssCursor
impl UnwindSafe for CssCursor
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