pub struct ConfirmationDialog {
pub text: Property<String>,
pub open: Property<bool>,
pub _signal: Property<bool>,
}Expand description
A confirmation dialog, a modal dialog that asks the user to confirm an action with “Yes” or “No” buttons.
Fields§
§text: Property<String>Prompt text shown in the dialog.
open: Property<bool>Whether the dialog is visible.
_signal: Property<bool>Implementations§
Source§impl ConfirmationDialog
impl ConfirmationDialog
pub fn handle_yes(&mut self, _ctx: &NodeContext, _event: Event<ButtonClick>)
pub fn handle_no(&mut self, _ctx: &NodeContext, _event: Event<ButtonClick>)
Trait Implementations§
Source§impl Clone for ConfirmationDialog
impl Clone for ConfirmationDialog
Source§impl CoercionRules for ConfirmationDialog
impl CoercionRules for ConfirmationDialog
Source§fn is_identity_roundtrip() -> bool
fn is_identity_roundtrip() -> bool
Whether cloning
Self preserves the semantics of converting that clone
through ToPaxValue and back with try_coerce. Read moreSource§fn allows_singleton_stack() -> bool
fn allows_singleton_stack() -> bool
Opts appearance layers into scalar-to-singleton stack conversion.
Ordinary vector values remain list-only.
Source§impl Debug for ConfirmationDialog
impl Debug for ConfirmationDialog
Source§impl Default for ConfirmationDialog
impl Default for ConfirmationDialog
Source§impl<'de> Deserialize<'de> for ConfirmationDialog
impl<'de> Deserialize<'de> for ConfirmationDialog
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 HelperFunctions for ConfirmationDialog
impl HelperFunctions for ConfirmationDialog
Source§fn register_all_functions()
fn register_all_functions()
Registers all helper functions for this type.
impl ImplToFromPaxAny for ConfirmationDialog
Source§impl Interpolatable for ConfirmationDialog
impl Interpolatable for ConfirmationDialog
Source§fn interpolate(&self, _other: &Self, _t: f64) -> Self
fn interpolate(&self, _other: &Self, _t: f64) -> Self
Source§impl Serialize for ConfirmationDialog
impl Serialize for ConfirmationDialog
Source§impl ToPaxValue for ConfirmationDialog
impl ToPaxValue for ConfirmationDialog
Source§fn to_pax_value(self) -> PaxValue
fn to_pax_value(self) -> PaxValue
Converts this value into a
PaxValue.Source§fn nested_properties(&self) -> Vec<UntypedProperty>
fn nested_properties(&self) -> Vec<UntypedProperty>
Live properties read when snapshotting a compound value for PAXEL.
Adapters observe these as well as the containing property.
Source§fn to_pax_value_in_graph(self) -> PaxValuewhere
Self: Sized,
fn to_pax_value_in_graph(self) -> PaxValuewhere
Self: Sized,
Converts against owner-thread graph views, including nested generated
property fields. Requires an entered property graph for shared fields.
Ordinary
Self::to_pax_value reads published value snapshots.Auto Trait Implementations§
impl Freeze for ConfirmationDialog
impl RefUnwindSafe for ConfirmationDialog
impl Send for ConfirmationDialog
impl Sync for ConfirmationDialog
impl Unpin for ConfirmationDialog
impl UnsafeUnpin for ConfirmationDialog
impl UnwindSafe for ConfirmationDialog
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<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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> PropertyValue for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.
Source§impl<T> ToFromPaxAny for Twhere
T: ImplToFromPaxAny,
impl<T> ToFromPaxAny for Twhere
T: ImplToFromPaxAny,
Source§fn to_pax_any(self) -> PaxAny
fn to_pax_any(self) -> PaxAny
Converts this value into a
PaxAny.Source§fn from_pax_any(pax_any: PaxAny) -> Result<T, String>
fn from_pax_any(pax_any: PaxAny) -> Result<T, String>
Attempts to recover this concrete type from a
PaxAny.