-
Notifications
You must be signed in to change notification settings - Fork 38
TInteractivity
-
TMouseXY
Where is the mouse in local x,y coordinates?-
point : DynamicBehaviour<Point>
-
point : DynamicBehaviour<Point>
-
TMouseInside
Is the mouse inside the child?
If handle is false, then allow lower-z-order element to handle mouse inside events.
In other words it is transparent for events. If someone above us handled it, we do
not change the behaviour even when inside.
If handle is true, then we handle it when inside, otherwise not.
ATTENTION: TMouseInside does not work for TRANSPARENT forms in JS-mode-
inside : DynamicBehaviour<bool>
-
handle : bool
-
inside : DynamicBehaviour<bool>
-
TMouseDown
Is the mouse pressed down? We respect z-order, and handle this if inside-
down : DynamicBehaviour<bool>
-
down : DynamicBehaviour<bool>
-
TMouseDownGhost
Same as TMouseDown, except that it allows lower-z-order element to handle mouse
(in other words it is transparent for events)-
down : DynamicBehaviour<bool>
-
down : DynamicBehaviour<bool>
-
TMouseRightDown
Is the mouse right button pressed down? We respect z-order, and handle this if inside-
down : DynamicBehaviour<bool>
-
down : DynamicBehaviour<bool>
-
TMouseRightDownGhost
Same as TMouseMiddleDown, except that it allows lower-z-order element to handle mouse
(in other words it is transparent for events)-
down : DynamicBehaviour<bool>
-
down : DynamicBehaviour<bool>
-
TMouseMiddleDown
Is the mouse wheel button pressed down? We respect z-order, and handle this if inside-
down : DynamicBehaviour<bool>
-
down : DynamicBehaviour<bool>
-
TMouseMiddleDownGhost
Same as TMouseMiddleDown, except that it allows lower-z-order element to handle mouse
(in other words it is transparent for events)-
down : DynamicBehaviour<bool>
-
down : DynamicBehaviour<bool>
-
TRollOver
Is the mouse rolled over this form (or any of the children).
This respects z-order, so only the top-most clip will get this event.
Does not work on touch devices. Use TMouseInside above for that.-
over : DynamicBehaviour<bool>
-
over : DynamicBehaviour<bool>
-
TKeyBroadcast
-
pressed : DynamicBehaviour<KeyEvent>
-
pressed : DynamicBehaviour<KeyEvent>
-
TKey
Triggered when a key is pressed. There is filter to decide what events are interesting.
This respects z-order. The top-most interactive that wants the event gets it.
The pressed-behaviour turns into the key, and then back to "noKey" when the key is released (or auto-repeat kicks in).-
pressed : DynamicBehaviour<KeyEvent>
-
filterFn : (KeyEvent) -> bool
-
pressed : DynamicBehaviour<KeyEvent>
-
TMouseWheel
Is the mouse wheel moved?-
delta : DynamicBehaviour<double>
-
delta : DynamicBehaviour<double>
-
TPanGesture
-
fn : (state : GestureState, dx : double, dy : double) -> bool
-
fn : (state : GestureState, dx : double, dy : double) -> bool
-
TMouseDownGhostHandleRadiusEvents
Same as TMouseDownGhost, except that it handles click radius events on mobile-
down : DynamicBehaviour<bool>
-
down : DynamicBehaviour<bool>
-
TPinchGesture
-
fn : (state : GestureState, scale : double, dx : double, dy : double) -> bool
-
fn : (state : GestureState, scale : double, dx : double, dy : double) -> bool
-
TFileDrop
Makes nested Form to allow any file to be dropped. Provides name and file content as data URL.
maxFiles is a limit of files should be loaded at one drop. If you do not want to limit set to -1.
Note: onData 3'rd argument should be called every time when you are ready to receive next chunk.
mimeTypeRegExpFilter is a regular expression string which applies to each file MIME type. If you don't want to filter just set to empty string.
Here is MIME Types list https://www.sitepoint.com/web-foundations/mime-types-complete-list/-
maxFiles : int
-
mimeTypeRegExpFilter : string
-
onDone : (files : [ native ]) -> void
-
maxFiles : int
-
EventHandler