[][src]Struct cat_engine::MouseCursorIconSettings

pub struct MouseCursorIconSettings<P: AsRef<Path>> {
    pub size: [f32; 2],
    pub shift: [f32; 2],
    pub path: P,
    pub range: Range<usize>,
}

Fields

size: [f32; 2]

The icon size.

The default is [30f32;2].

shift: [f32; 2]

The icon position = mouse cursor position + shift

The default is [-15f32;2].

path: P

The path to the icon.

The default is ./mouse_cursor_icon.png.

range: Range<usize>

The range of the texture vertex buffer to save icon vertexes.

The default is 4..8.

Implementations

impl MouseCursorIconSettings<PathBuf>[src]

Trait Implementations

impl<P: Clone + AsRef<Path>> Clone for MouseCursorIconSettings<P>[src]

impl<P: Debug + AsRef<Path>> Debug for MouseCursorIconSettings<P>[src]

Auto Trait Implementations

impl<P> RefUnwindSafe for MouseCursorIconSettings<P> where
    P: RefUnwindSafe

impl<P> Send for MouseCursorIconSettings<P> where
    P: Send

impl<P> Sync for MouseCursorIconSettings<P> where
    P: Sync

impl<P> Unpin for MouseCursorIconSettings<P> where
    P: Unpin

impl<P> UnwindSafe for MouseCursorIconSettings<P> where
    P: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SetParameter for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.