Struct scl_gui_widgets::widgets::PressKey
source · pub struct PressKey<T> { /* private fields */ }
Expand description
一个控制器,当子组件被聚焦且按下指定按键时触发回调
Implementations§
Trait Implementations§
source§impl<T, W: Widget<T>> Controller<T, W> for PressKey<T>
impl<T, W: Widget<T>> Controller<T, W> for PressKey<T>
Auto Trait Implementations§
impl<T> !RefUnwindSafe for PressKey<T>
impl<T> !Send for PressKey<T>
impl<T> !Sync for PressKey<T>
impl<T> Unpin for PressKey<T>
impl<T> !UnwindSafe for PressKey<T>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.