pub struct ClickableArgs {Show 13 fields
pub on_click: Callback,
pub enabled: bool,
pub block_input: bool,
pub on_press: Option<CallbackWith<PointerEventContext>>,
pub on_release: Option<CallbackWith<PointerEventContext>>,
pub role: Option<Role>,
pub label: Option<String>,
pub description: Option<String>,
pub interaction_state: Option<State<InteractionState>>,
pub focus_requester: Option<FocusRequester>,
pub focus_properties: Option<FocusProperties>,
pub tap_recognizer: Option<State<TapRecognizer>>,
pub long_press_recognizer: Option<State<LongPressRecognizer>>,
}Expand description
Arguments for the clickable modifier.
Fields§
§on_click: CallbackCallback invoked when the element is clicked.
enabled: boolWhether the element is enabled for interaction.
block_input: boolWhether to block input propagation when within bounds.
on_press: Option<CallbackWith<PointerEventContext>>Optional press callback with normalized position and element size.
on_release: Option<CallbackWith<PointerEventContext>>Optional release callback with normalized position and element size.
role: Option<Role>Optional accessibility role.
label: Option<String>Optional accessibility label.
description: Option<String>Optional accessibility description.
interaction_state: Option<State<InteractionState>>Optional external interaction state.
focus_requester: Option<FocusRequester>Optional externally managed focus requester for this clickable target.
focus_properties: Option<FocusProperties>Optional focus properties applied to the clickable target.
tap_recognizer: Option<State<TapRecognizer>>Optional persistent tap recognizer state for component-owned gestures.
long_press_recognizer: Option<State<LongPressRecognizer>>Optional component-owned long-press recognizer. When supplied, a recognized long press suppresses the ordinary click.
Trait Implementations§
Source§impl Clone for ClickableArgs
impl Clone for ClickableArgs
Source§fn clone(&self) -> ClickableArgs
fn clone(&self) -> ClickableArgs
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for ClickableArgs
impl Default for ClickableArgs
Source§fn default() -> ClickableArgs
fn default() -> ClickableArgs
Auto Trait Implementations§
impl Freeze for ClickableArgs
impl RefUnwindSafe for ClickableArgs
impl Send for ClickableArgs
impl Sync for ClickableArgs
impl Unpin for ClickableArgs
impl UnsafeUnpin for ClickableArgs
impl UnwindSafe for ClickableArgs
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.