C# Class GoToDef.GoToDefMouseHandler

Handle ctrl+click on valid elements to send GoToDefinition to the shell. Also handle mouse moves (when control is pressed) to highlight references for which GoToDefinition will (likely) be valid.
Inheritance: MouseProcessorBase
显示文件 Open project: NoahRic/GoToDef

Private Properties

Property Type Description
DispatchGoToDef bool
InDragOperation bool
RelativeToView Point
SetHighlightSpan bool
TryHighlightItemUnderMouse bool

Public Methods

Method Description
GoToDefMouseHandler ( IWpfTextView view, IOleCommandTarget commandTarget, IClassifier aggregator, ITextStructureNavigator navigator, CtrlKeyState state ) : System
PostprocessMouseLeftButtonDown ( System.Windows.Input.MouseButtonEventArgs e ) : void
PreprocessMouseLeave ( System.Windows.Input.MouseEventArgs e ) : void
PreprocessMouseMove ( System.Windows.Input.MouseEventArgs e ) : void
PreprocessMouseUp ( System.Windows.Input.MouseButtonEventArgs e ) : void

Private Methods

Method Description
DispatchGoToDef ( ) : bool
InDragOperation ( Point anchorPoint, Point currentPoint ) : bool
RelativeToView ( Point position ) : Point
SetHighlightSpan ( SnapshotSpan span ) : bool
TryHighlightItemUnderMouse ( Point position ) : bool

Method Details

GoToDefMouseHandler() public method

public GoToDefMouseHandler ( IWpfTextView view, IOleCommandTarget commandTarget, IClassifier aggregator, ITextStructureNavigator navigator, CtrlKeyState state ) : System
view IWpfTextView
commandTarget IOleCommandTarget
aggregator IClassifier
navigator ITextStructureNavigator
state CtrlKeyState
return System

PostprocessMouseLeftButtonDown() public method

public PostprocessMouseLeftButtonDown ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs
return void

PreprocessMouseLeave() public method

public PreprocessMouseLeave ( System.Windows.Input.MouseEventArgs e ) : void
e System.Windows.Input.MouseEventArgs
return void

PreprocessMouseMove() public method

public PreprocessMouseMove ( System.Windows.Input.MouseEventArgs e ) : void
e System.Windows.Input.MouseEventArgs
return void

PreprocessMouseUp() public method

public PreprocessMouseUp ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs
return void