pub struct ClickResult {
pub dialog_opened: bool,
pub pending_release: Option<PendingRelease>,
}Expand description
Outcome of a click. dialog_opened is true if a JavaScript dialog opened
mid-sequence (the page is then blocked until dialog accept/dismiss).
pending_release is set only when the dialog opened after mousePressed but
before mouseReleased: the button is logically held until the caller
dispatches the release (done once the dialog is resolved), otherwise the
next click would register as a drag or double-click.
Fields§
§dialog_opened: bool§pending_release: Option<PendingRelease>Trait Implementations§
Source§impl Default for ClickResult
impl Default for ClickResult
Source§fn default() -> ClickResult
fn default() -> ClickResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ClickResult
impl RefUnwindSafe for ClickResult
impl Send for ClickResult
impl Sync for ClickResult
impl Unpin for ClickResult
impl UnsafeUnpin for ClickResult
impl UnwindSafe for ClickResult
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