Enum basalt::interface::hook::BinHookData[][src]

pub enum BinHookData {
    Press {
        mouse_x: f32,
        mouse_y: f32,
        key_active: HashMap<Qwery, bool>,
        mouse_active: HashMap<MouseButton, bool>,
    },
    Hold {
        mouse_x: f32,
        mouse_y: f32,
        first_call: Instant,
        last_call: Instant,
        is_first_call: bool,
        initial_delay: Duration,
        initial_delay_wait: bool,
        initial_delay_elapsed: bool,
        interval: Duration,
        accel: f32,
        key_active: HashMap<Qwery, bool>,
        mouse_active: HashMap<MouseButton, bool>,
    },
    Release {
        pressed: bool,
        key_active: HashMap<Qwery, bool>,
        mouse_active: HashMap<MouseButton, bool>,
    },
    Character {
        char_ty: Character,
    },
    MouseEnter {
        mouse_x: f32,
        mouse_y: f32,
    },
    MouseLeave {
        mouse_x: f32,
        mouse_y: f32,
    },
    MouseMove {
        mouse_x: f32,
        mouse_y: f32,
        mouse_dx: f32,
        mouse_dy: f32,
    },
    MouseScroll {
        scroll_amt: f32,
    },
    Focused,
    LostFocus,
}

Variants

Press
Show fields

Fields of Press

mouse_x: f32mouse_y: f32key_active: HashMap<Qwery, bool>mouse_active: HashMap<MouseButton, bool>
Hold
Show fields

Fields of Hold

mouse_x: f32mouse_y: f32first_call: Instantlast_call: Instantis_first_call: boolinitial_delay: Durationinitial_delay_wait: boolinitial_delay_elapsed: boolinterval: Durationaccel: f32key_active: HashMap<Qwery, bool>mouse_active: HashMap<MouseButton, bool>
Release
Show fields

Fields of Release

pressed: boolkey_active: HashMap<Qwery, bool>mouse_active: HashMap<MouseButton, bool>
Character
Show fields

Fields of Character

char_ty: Character
MouseEnter
Show fields

Fields of MouseEnter

mouse_x: f32mouse_y: f32
MouseLeave
Show fields

Fields of MouseLeave

mouse_x: f32mouse_y: f32
MouseMove
Show fields

Fields of MouseMove

mouse_x: f32mouse_y: f32mouse_dx: f32mouse_dy: f32
MouseScroll
Show fields

Fields of MouseScroll

scroll_amt: f32
Focused
LostFocus

Implementations

impl BinHookData[src]

pub fn ty(&self) -> BinHookTy[src]

Trait Implementations

impl Clone for BinHookData[src]

fn clone(&self) -> BinHookData[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for BinHookData[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> Content for T[src]

pub fn ref_from_ptr(ptr: *mut c_void, size: usize) -> Option<*mut T>[src]

Builds a pointer to this type from a raw pointer.

pub fn is_size_suitable(size: usize) -> bool[src]

Returns true if the size is suitable to store a type like this.

pub fn indiv_size() -> usize[src]

Returns the size of an individual element.

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Pointable for T

pub const ALIGN: usize

The alignment of pointer.

type Init = T

The type for initializers.

pub unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more

pub unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more

pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more

pub unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more

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

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

pub fn vzip(self) -> V