pub trait BindTarget: Clone {
const IS_KEY: bool;
const IS_POINTER: bool;
const CLEARABLE: bool;
// Required methods
fn set_key(&mut self, key: Key, modifiers: Modifiers);
fn set_pointer(&mut self, button: PointerButton, modifiers: Modifiers);
fn clear(&mut self);
fn format(&self) -> String;
fn down(&self, ctx: &Context) -> bool;
fn pressed(&self, ctx: &Context) -> bool;
fn released(&self, ctx: &Context) -> bool;
}Expand description
Type that can be used as a bind target
Required Associated Constants§
sourceconst IS_POINTER: bool
const IS_POINTER: bool
Can accept pointer bind?
Required Methods§
sourcefn set_pointer(&mut self, button: PointerButton, modifiers: Modifiers)
fn set_pointer(&mut self, button: PointerButton, modifiers: Modifiers)
Sets new pointer bind
Object Safety§
This trait is not object safe.