pub struct DialogClosed {
pub entity: Entity,
pub id: String,
pub accepted: bool,
}Expand description
Emitted exactly once per <dialog> close (open -> closed edge).
accepted = true when the close went through the dialog’s DEFAULT
button (Enter-anywhere or a direct click on it) - Qt
QDialog::accepted; every other close path (Escape, cancel/close
buttons, script signal write) is accepted = false -
QDialog::rejected. Never both, never twice per open/close cycle.
The scripting layer routes it as on_dialog_accepted(id) /
on_dialog_rejected(id) plus the per-id
on("dialog_accepted", id, fn) / on("dialog_rejected", id, fn)
registries.
Fields§
§entity: EntityThe <dialog> entity.
id: StringThe dialog’s markup id="..." when present, else its bound open
signal name - the key handed to script handlers.
accepted: booltrue = accepted (default-button path), false = rejected.
Trait Implementations§
Source§impl Clone for DialogClosed
impl Clone for DialogClosed
Source§fn clone(&self) -> DialogClosed
fn clone(&self) -> DialogClosed
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DialogClosed
impl Debug for DialogClosed
impl Message for DialogClosed
Auto Trait Implementations§
impl Freeze for DialogClosed
impl RefUnwindSafe for DialogClosed
impl Send for DialogClosed
impl Sync for DialogClosed
impl Unpin for DialogClosed
impl UnsafeUnpin for DialogClosed
impl UnwindSafe for DialogClosed
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.