![]() |
![]() |
![]() |
![]() |
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
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>".
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>".
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>".
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
See Also Related Modules
![]() |
![]() |
![]() |
![]() |