pub struct Actionable {
pub child: LenraComponent,
pub on_double_pressed: Option<Listener>,
pub on_hovered: Option<Listener>,
pub on_long_pressed: Option<Listener>,
pub on_pressed: Option<Listener>,
pub on_pressed_cancel: Option<Listener>,
pub submit: Option<bool>,
pub type_: Value,
}Expand description
Element of type Actionable
Fields§
§child: LenraComponent§on_double_pressed: Option<Listener>The listener to be called when the actionable is double pressed.
on_hovered: Option<Listener>The listener to be called when the actionable is hovered and when the mouse exits the hoverable area.
on_long_pressed: Option<Listener>The listener to be called when the actionable is long pressed.
on_pressed: Option<Listener>The listener to be called when the actionable is pressed.
on_pressed_cancel: Option<Listener>The listener to be called when the actionable is pressed inside and released outside of the actionable, causing it to cancel the press action.
submit: Option<bool>Whether the actionable can submit a form.
type_: ValueThe identifier of the component
Implementations§
Source§impl Actionable
impl Actionable
pub fn builder() -> Actionable
Trait Implementations§
Source§impl Clone for Actionable
impl Clone for Actionable
Source§impl Debug for Actionable
impl Debug for Actionable
Source§impl<'de> Deserialize<'de> for Actionable
impl<'de> Deserialize<'de> for Actionable
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&Actionable> for Actionable
impl From<&Actionable> for Actionable
Source§fn from(value: &Actionable) -> Self
fn from(value: &Actionable) -> Self
Converts to this type from the input type.
Source§impl From<Actionable> for Actionable
impl From<Actionable> for Actionable
Source§fn from(value: Actionable) -> Self
fn from(value: Actionable) -> Self
Converts to this type from the input type.
Source§impl From<Box<Actionable>> for LenraComponent
impl From<Box<Actionable>> for LenraComponent
Source§fn from(value: Box<Actionable>) -> Self
fn from(value: Box<Actionable>) -> Self
Converts to this type from the input type.
Source§impl Serialize for Actionable
impl Serialize for Actionable
Source§impl TryFrom<Actionable> for Actionable
impl TryFrom<Actionable> for Actionable
Auto Trait Implementations§
impl Freeze for Actionable
impl RefUnwindSafe for Actionable
impl Send for Actionable
impl Sync for Actionable
impl Unpin for Actionable
impl UnsafeUnpin for Actionable
impl UnwindSafe for Actionable
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