TOC PREV NEXT INDEX

UItwoPoint

Synopsis

pick two points in a rendering window as press-drag-release

UIinteractor UItwoPoint {
view+notify+read;
string+read+nowrite+notify startEvent
= "<Btn1Down>";
string+read+nowrite+notify runEvent
= "<Btn1Motion>";
string+read+nowrite+notify stopEvent
= "<Btn1Up>";
int state<val_state=4> = 3;
omethod+notify_inst+write inst<NEvisible=0,
lang="cxx",interruptable=0>= "UItwoPointUpdate"
};

Description

UItwoPoint matches a user gesture that contains a start event, a free-running event, and a stop event. This matches a press-drag-release motion.For example, in a rendering window this would implement drawing a line between two points.

Subobjects

*viewxytime

Inherited from UIinteractor.

startEvent

String. Sets the event specification that triggers the start of the gesture. Once this event occurrs, the runEvent becomes the event to match. The default for Windows is "<BtnLDown>" and for Motif it is "<Btn1Down>".

runEvent

String. Sets the event specification that is continuously triggered until the stop event occurs. It triggers a change in the x and y values of the UIinteractor. The default for Windows is "<BtnMMotion>" and for Motif it is "<Btn1Motion>".

stopEvent.

String. Sets the event specification that triggers the end of the gesture. It triggers a change in the x and y values of the UIinteractor. The default for Windows is "<BtnRUp>" and for Motif it is "<Btn1up>".

state

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

Example

Main.Viewers.Viewer3D.ViewEditors v/view.v v/gd.v

File

v/UI.v

See Also Related Modules

UIframeEtchedIn
UIonePoint

TOC PREV NEXT INDEX