pub enum MethodParams<'a> {
Click,
IsEmpty(&'a mut bool),
GetValue(&'a mut Value),
SetValue(Value),
Custom(u32, LPVOID),
}
Expand description
Behavior method params.
Sciter sends these events to native behaviors.
Variants§
Click
Click event (either from mouse or code).
IsEmpty(&'a mut bool)
Get current :empty
state,
i.e. if behavior has no children and no text.
GetValue(&'a mut Value)
Get the current value of the behavior.
SetValue(Value)
Set the current value of the behavior.
Custom(u32, LPVOID)
Custom methods, unknown for engine. Sciter will not intrepret it and will do just dispatching.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for MethodParams<'a>
impl<'a> RefUnwindSafe for MethodParams<'a>
impl<'a> !Send for MethodParams<'a>
impl<'a> !Sync for MethodParams<'a>
impl<'a> Unpin for MethodParams<'a>
impl<'a> !UnwindSafe for MethodParams<'a>
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