TOC PREV NEXT INDEX

UImouseEvent

Synopsis

Updates int's parameters "x", "y" and "time" as a result of a mouse event and adds "buttonType", "buttonMask" "modType" "ModMask" and "state".

UIinteractor UImouseEvents { // run when view changes view+notify+read+nowrite; // if true, button must be done for events boolean+read+notify+nowrite onButtonDown = 1; /* * Bit mask for the buttons that events are delivered for (if * mustBeDown = 1) */ int+read+notify+nowrite buttonRequestMask = 1 | 2 | 4; enum buttonType<val_state=4> { choices = { "left", "middle", "right" }; }; // 0 = none buttons down, 1 = left, 2 = middle, 4 = right int buttonMask<val_state=4>; enum modType<val_state=4> { choices = { "none", "shift", "ctrl", "alt" }; }; // 0=no modifiers, 1=shift, 2=ctrl, 4=alt int modMask<val_state=4>; enum state<val_state=4> { choices = { "down", "motion", "up" }; values = { 1, 2, 3 }; };

Description

UImouseEvent initializes a module's widgets to the ModuleStack window when it is dragged into the ModuleStack workspace.

Subobjects

*viewxytime

Inherited from UIinteractor.

ButtonRequestMask

int. Checks wheich button is pressed. 1=left, 2=middle, 4 =right.

ModType

enum. Checks which modifiers if existant. "shift", "ctrl" or "alt."

OnButtonDown

Integer. Shows the current state of the interaction:1 = button down2 = running3 = button has been releasedThe default is 3.

Example

Not Available

File

v/UI.v

See Also Related Modules


TOC PREV NEXT INDEX