Struct zng_wgt::OnNodeOpArgs
source · pub struct OnNodeOpArgs {
pub op: UiNodeOpMethod,
pub count: usize,
pub timestamp: DInstant,
}
Expand description
Arguments for the node operation event properties.
Fields§
§op: UiNodeOpMethod
Operation.
Event args must be static so access to the full UiNodeOp
is not possible, you can quickly
declare a new property with property
and match_node
if you want to affect the widget this way.
count: usize
Number of times the handler was called.
The number is 1
for the first call and is not reset if the widget is re-inited.
timestamp: DInstant
Instant the handler was called.
Implementations§
source§impl OnNodeOpArgs
impl OnNodeOpArgs
sourcepub fn new(op: UiNodeOpMethod, count: usize, timestamp: DInstant) -> Self
pub fn new(op: UiNodeOpMethod, count: usize, timestamp: DInstant) -> Self
New args.
sourcepub fn now(op: UiNodeOpMethod, count: usize) -> Self
pub fn now(op: UiNodeOpMethod, count: usize) -> Self
New args with timestamp now.
Trait Implementations§
source§impl Clone for OnNodeOpArgs
impl Clone for OnNodeOpArgs
source§fn clone(&self) -> OnNodeOpArgs
fn clone(&self) -> OnNodeOpArgs
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for OnNodeOpArgs
impl RefUnwindSafe for OnNodeOpArgs
impl Send for OnNodeOpArgs
impl Sync for OnNodeOpArgs
impl Unpin for OnNodeOpArgs
impl UnwindSafe for OnNodeOpArgs
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more