C# Class Ext.Net.DD

Inheritance: DragDrop
Afficher le fichier Open project: pgodwin/Ext.net Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
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.

Method Details

AlignElWithMouse() public méthode

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.
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
Résultat void

AutoOffset() public méthode

Sets the pointer offset to the distance between the linked element's top left corner and the location the element was clicked
public AutoOffset ( int iPageX, int iPageY ) : void
iPageX int the X coordinate of the click
iPageY int the Y coordinate of the click
Résultat void

CachePosition() public méthode

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.
public CachePosition ( ) : void
Résultat void

CachePosition() public méthode

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.
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)
Résultat void

SetDelta() public méthode

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)
public SetDelta ( int iDeltaX, int iDeltaY ) : void
iDeltaX int the distance from the left
iDeltaY int the distance from the top
Résultat void

SetDragElPos() public méthode

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 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
Résultat void