[−][src]Enum sciter::dom::event::BEHAVIOR_EVENTS
Behavior event codes.
Variants
click on button
mouse down or key down in button
checkbox/radio/slider changed its state/value
before text change
after text change
selection in <select>
changed
node in select expanded/collapsed, heTarget is the node
request to show popup just received, here DOM of popup element can be modifed.
popup element has been measured and ready to be shown on screen,
here you can use functions like ScrollToView
.
popup element is closed, here DOM of popup element can be modifed again - e.g. some items can be removed to free memory.
menu item activated by mouse hover or by keyboard,
menu item click,
BEHAVIOR_EVENT_PARAMS structure layout
BEHAVIOR_EVENT_PARAMS.cmd - MENU_ITEM_CLICK/MENU_ITEM_ACTIVE
BEHAVIOR_EVENT_PARAMS.heTarget - owner(anchor) of the menu
BEHAVIOR_EVENT_PARAMS.he - the menu item, presumably <li>
element
BEHAVIOR_EVENT_PARAMS.reason - BY_MOUSE_CLICK | BY_KEY_CLICK
"right-click", BEHAVIOR_EVENT_PARAMS::he is current popup menu HELEMENT
being processed or NULL
.
application can provide its own HELEMENT
here (if it is NULL
) or modify current menu element.
broadcast notification, sent to all elements of some container being shown or hidden
broadcast notification, sent to all elements of some container that got new value of :disabled
state
popup is about to be closed
content has been changed, is posted to the element that gets content changed, reason is combination of CONTENT_CHANGE_BITS
.
target == NULL
means the window got new document and this event is dispatched only to the window.
generic click
generic change
media changed (screen resolution, number of displays, etc.)
input language has changed, data is iso lang-country string
editable content has changed
a broadcast notification being posted to all elements of some container
that changes its :read-only
state.
change in aria-live="polite|assertive"
hyperlink click
element was collapsed, so far only behavior:tabs is sending these two to the panels
element was expanded,
activate (select) child,
used for example by accesskeys behaviors to send activation request, e.g. tab on behavior:tabs
.
ui state changed, observers shall update their visual states.
is sent for example by behavior:richtext
when caret position/selection has changed.
behavior:form
detected submission event. BEHAVIOR_EVENT_PARAMS::data
field contains data to be posted.
BEHAVIOR_EVENT_PARAMS::data
is of type T_MAP
in this case key/value pairs of data that is about
to be submitted. You can modify the data or discard submission by returning true from the handler.
behavior:form
detected reset event (from button type=reset
). BEHAVIOR_EVENT_PARAMS::data
field contains data to be reset.
BEHAVIOR_EVENT_PARAMS::data
is of type T_MAP
in this case key/value pairs of data that is about
to be rest. You can modify the data or discard reset by returning true from the handler.
document in behavior:frame
or root document is complete.
requests to behavior:history
(commands)
behavior:history
notification - history stack has changed
close popup request,
request tooltip, evt.source
<- is the tooltip element.
animation started (reason=1
) or ended(reason=0
) on the element.
document created, script namespace initialized. target
-> the document
document is about to be closed, to cancel closing do: evt.data = sciter::value("cancel")
;
last notification before document removal from the DOM
document has got DOM structure, styles and behaviors of DOM elements. Script loading run is complete at this moment.
document just finished parsing - has got DOM structure. This event is generated before the DOCUMENT_READY
.
Since 4.0.3.
<video>
"ready" notification
<video>
playback started notification
<video>
playback stoped/paused notification
<video>
request for frame source binding,
If you want to provide your own video frames source for the given target <video>
element do the following:
- Handle and consume this
VIDEO_BIND_RQ
request - You will receive second
VIDEO_BIND_RQ
request/event for the same<video>
element but this time with thereason
field set to an instance ofsciter::video_destination
interface. add_ref()
it and store it for example in worker thread producing video frames.- call
sciter::video_destination::start_streaming(...)
providing needed parameters callsciter::video_destination::render_frame(...)
as soon as they are available callsciter::video_destination::stop_streaming()
to stop the rendering (a.k.a. end of movie reached)
behavior:pager
starts pagination
behavior:pager
paginated page no, reason -> page no
behavior:pager
end pagination, reason -> total pages
event with custom name. Since 4.2.8.
all custom event codes shall be greater than this number. All codes below this will be used
solely by application - Sciter will not intrepret it and will do just dispatching.
To send event notifications with these codes use SciterSend
/PostEvent
API.
Trait Implementations
impl Clone for BEHAVIOR_EVENTS
[src]
fn clone(&self) -> BEHAVIOR_EVENTS
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for BEHAVIOR_EVENTS
[src]
impl Debug for BEHAVIOR_EVENTS
[src]
impl PartialEq<BEHAVIOR_EVENTS> for BEHAVIOR_EVENTS
[src]
fn eq(&self, other: &BEHAVIOR_EVENTS) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<BEHAVIOR_EVENTS> for BEHAVIOR_EVENTS
[src]
fn partial_cmp(&self, other: &BEHAVIOR_EVENTS) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralPartialEq for BEHAVIOR_EVENTS
[src]
Auto Trait Implementations
impl RefUnwindSafe for BEHAVIOR_EVENTS
impl Send for BEHAVIOR_EVENTS
impl Sync for BEHAVIOR_EVENTS
impl Unpin for BEHAVIOR_EVENTS
impl UnwindSafe for BEHAVIOR_EVENTS
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,