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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.