Enum egui_bind::KeyOrPointer
source · [−]pub enum KeyOrPointer {
Key(Key),
Pointer(PointerButton),
}Expand description
Bind target that can be either a egui::Key or a egui::PointerButton
Variants
Key(Key)
Key bind
Pointer(PointerButton)
Pointer bind
Trait Implementations
sourceimpl BindTarget for KeyOrPointer
impl BindTarget for KeyOrPointer
sourceconst IS_POINTER: bool = true
const IS_POINTER: bool = true
Can accept pointer bind?
sourcefn set_pointer(&mut self, button: PointerButton, _: Modifiers)
fn set_pointer(&mut self, button: PointerButton, _: Modifiers)
Sets new pointer bind
sourcefn down(&self, input: impl Deref<Target = InputState>) -> bool
fn down(&self, input: impl Deref<Target = InputState>) -> bool
Is bind down?
sourcefn pressed(&self, input: impl Deref<Target = InputState>) -> bool
fn pressed(&self, input: impl Deref<Target = InputState>) -> bool
Was bind pressed this frame?
sourcefn released(&self, input: impl Deref<Target = InputState>) -> bool
fn released(&self, input: impl Deref<Target = InputState>) -> bool
Was bind released this frame?
sourceimpl Clone for KeyOrPointer
impl Clone for KeyOrPointer
sourcefn clone(&self) -> KeyOrPointer
fn clone(&self) -> KeyOrPointer
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations
impl RefUnwindSafe for KeyOrPointer
impl Send for KeyOrPointer
impl Sync for KeyOrPointer
impl Unpin for KeyOrPointer
impl UnwindSafe for KeyOrPointer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more