pub struct DummyKeyboard {
pub down: Signal1<KeyboardEvent>,
pub up: Signal1<KeyboardEvent>,
pub back_button: Signal0,
}
Fields
down: Signal1<KeyboardEvent>
up: Signal1<KeyboardEvent>
Implementations
sourceimpl DummyKeyboard
impl DummyKeyboard
Trait Implementations
sourceimpl KeyboardSystem for DummyKeyboard
impl KeyboardSystem for DummyKeyboard
Emitted when a hardware back button is pressed. If no listeners are connected to this signal when the back button is pressed, the platform’s default action will be taken (which is usually to close the app). Only supported on Android. Read more
sourcefn down_signal(&self) -> &Signal1<KeyboardEvent>
fn down_signal(&self) -> &Signal1<KeyboardEvent>
Emitted when a key is pressed down.
sourcefn up_signal(&self) -> &Signal1<KeyboardEvent>
fn up_signal(&self) -> &Signal1<KeyboardEvent>
Emitted when a key is released.
sourcefn is_supported(&self) -> bool
fn is_supported(&self) -> bool
Whether the environment has a physical keyboard. Phones and tablets will generally return false here. Read more
Auto Trait Implementations
impl !RefUnwindSafe for DummyKeyboard
impl !Send for DummyKeyboard
impl !Sync for DummyKeyboard
impl Unpin for DummyKeyboard
impl !UnwindSafe for DummyKeyboard
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
sourcefn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.