C# Class Ensage.Common.Menu.Draw.DraggableItem

The item which can be dragged.
Inheritance: ResizableItem
显示文件 Open project: EnsageSharp/Ensage.Common

Protected Methods

Method Description
DraggableItem ( float defaultResizePercentage ) : System

Initializes a new instance of the DraggableItem class.

DraggableOnReceiveMessage ( System.Utils message, System.Vector2 cursorPos, uint key, List draggableItems, WndEventArgs args = null ) : void

The on receive message.

IsInside ( System.Vector2 position ) : bool

The is inside.

OnReceiveMessage ( System.Utils message, System.Vector2 cursorPos, uint key, WndEventArgs args = null ) : void

The on receive message.

Private Methods

Method Description
PrepareDraggedIcon ( ) : void

The prepare dragged icon.

Method Details

DraggableItem() protected method

Initializes a new instance of the DraggableItem class.
protected DraggableItem ( float defaultResizePercentage ) : System
defaultResizePercentage float /// The default Resize Percentage. ///
return System

DraggableOnReceiveMessage() protected method

The on receive message.
protected DraggableOnReceiveMessage ( System.Utils message, System.Vector2 cursorPos, uint key, List draggableItems, WndEventArgs args = null ) : void
message System.Utils /// The message. ///
cursorPos System.Vector2 /// The cursor position. ///
key uint /// The key. ///
draggableItems List /// The Items. ///
args WndEventArgs /// The args. ///
return void

IsInside() protected abstract method

The is inside.
protected abstract IsInside ( System.Vector2 position ) : bool
position System.Vector2 /// The position. ///
return bool

OnReceiveMessage() protected abstract method

The on receive message.
protected abstract OnReceiveMessage ( System.Utils message, System.Vector2 cursorPos, uint key, WndEventArgs args = null ) : void
message System.Utils /// The message. ///
cursorPos System.Vector2 /// The cursor position. ///
key uint /// The key. ///
args WndEventArgs /// The args. ///
return void