logo
pub enum MethodParams<'a> {
    Click,
    IsEmpty(&'a mut bool),
    GetValue(&'a mut Value),
    SetValue(Value),
    Custom(u32LPVOID),
}
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(u32LPVOID)

Custom methods, unknown for engine. Sciter will not intrepret it and will do just dispatching.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.