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§
Trait Implementations§
source§impl BindTarget for KeyOrPointer
impl BindTarget for KeyOrPointer
source§const IS_POINTER: bool = true
const IS_POINTER: bool = true
Can accept pointer bind?
source§fn set_pointer(&mut self, button: PointerButton, _: Modifiers)
fn set_pointer(&mut self, button: PointerButton, _: Modifiers)
Sets new pointer bind
source§impl Clone for KeyOrPointer
impl Clone for KeyOrPointer
source§fn clone(&self) -> KeyOrPointer
fn clone(&self) -> KeyOrPointer
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for KeyOrPointer
impl Debug for KeyOrPointer
source§impl PartialEq<KeyOrPointer> for KeyOrPointer
impl PartialEq<KeyOrPointer> for KeyOrPointer
source§fn eq(&self, other: &KeyOrPointer) -> bool
fn eq(&self, other: &KeyOrPointer) -> bool
This method tests for
self and other values to be equal, and is used
by ==.