프로퍼티 | 타입 | 설명 |
---|
메소드 | 설명 | |
---|---|---|
AlignElWithMouse ( string el, int iPageX, int iPageY ) : void |
Sets the element to the location of the mousedown or click event, maintaining the cursor location relative to the location on the element that was clicked. Override this if you want to place the element in a location other than where the cursor is.
|
|
AutoOffset ( int iPageX, int iPageY ) : void |
Sets the pointer offset to the distance between the linked element's top left corner and the location the element was clicked
|
|
CachePosition ( ) : void |
Saves the most recent position so that we can reset the constraints and tick marks on-demand. We need to know this so that we can calculate the number of pixels the element is offset from its original position.
|
|
CachePosition ( int iPageX, int iPageY ) : void |
Saves the most recent position so that we can reset the constraints and tick marks on-demand. We need to know this so that we can calculate the number of pixels the element is offset from its original position.
|
|
SetDelta ( int iDeltaX, int iDeltaY ) : void |
Sets the pointer offset. You can call this directly to force the offset to be in a particular location (e.g., pass in 0,0 to set it to the center of the object)
|
|
SetDragElPos ( int iPageX, int iPageY ) : void |
Sets the drag element to the location of the mousedown or click event, maintaining the cursor location relative to the location on the element that was clicked. Override this if you want to place the element in a location other than where the cursor is.
|
public AlignElWithMouse ( string el, int iPageX, int iPageY ) : void | ||
el | string | the element to move |
iPageX | int | the X coordinate of the mousedown or drag event |
iPageY | int | the Y coordinate of the mousedown or drag event |
리턴 | void |
public AutoOffset ( int iPageX, int iPageY ) : void | ||
iPageX | int | the X coordinate of the click |
iPageY | int | the Y coordinate of the click |
리턴 | void |
public CachePosition ( int iPageX, int iPageY ) : void | ||
iPageX | int | current x position (optional, this just makes it so we don't have to look it up again) |
iPageY | int | current y position (optional, this just makes it so we don't have to look it up again) |
리턴 | void |
public SetDelta ( int iDeltaX, int iDeltaY ) : void | ||
iDeltaX | int | the distance from the left |
iDeltaY | int | the distance from the top |
리턴 | void |
public SetDragElPos ( int iPageX, int iPageY ) : void | ||
iPageX | int | the X coordinate of the mousedown or drag event |
iPageY | int | the Y coordinate of the mousedown or drag event |
리턴 | void |