Skip to main content

Events

Events model is a great. Why? Because it fast, minimalistic, fully traceble and stable.

Events processed on each step.

import

_ @sys.events;
_ @ul.ui;
_ @os.util2;

Pools

ide.pool 15500;

Events common

ui.event.button.push
ui.event.button.click
ui.event.button.pop

ui.event.text.update
ui.event.text.changed

ide.event.code.apply

ide.event.toggle.source.data.inspector

ev.ide.event.open.console

media.input.e.key.pressed
media.input.e.key.down
media.input.e.key.up

Events Table

ev.table.add.cell
ev.table.remove.cell
ev.table.remove.all.cells
ev.table.load

events.push

events.push(u0, ide.pool,table0, ev.table.reload, history0,0,0,0);
events.push(u0, ide.pool,table0, ui.event.scroll.down, 0,0,0,0); # scroll to down

process events

ui.event.process4(pool,nid, ev)

_ @sys.events;
_ @os.util2;

my.ev {
# ev, o0... - event
if (_0==ui.event.button.click) {
# ..
};
};

ui.event.process4(ide.pool,nid, my.ev);
ui.event.process4 {
# pool,id, fn
pool0 _0;
id0 _1;

b0=1;
while(b0) {
b0:=events.pop(u0, pool0,id0);
_2(b0);
};
};