C# Class Reko.Gui.Windows.Controls.TextView

Show file Open project: uxmal/reko Class Usage Examples

Public Methods

Method Description
ClearSelection ( ) : void
GetAnchorMiddlePoint ( ) : System.Point
GetAnchorTopPoint ( ) : System.Point
GetEndSelection ( ) : Reko.Gui.Windows.Controls.TextPointer
GetStartSelection ( ) : Reko.Gui.Windows.Controls.TextPointer
GetTagFromPoint ( System.Point ptClient ) : object

Given a point in client coordinates, locate the tag associated with the clicked span -- if there is one.

InvalidateModel ( ) : void
IsSelectionEmpty ( ) : bool
RecomputeLayout ( ) : void
TextView ( ) : Reko.Core
model_ModelChanged ( object sender, EventArgs e ) : void
vScroll_ValueChanged ( object sender, EventArgs e ) : void

Protected Methods

Method Description
ChangeLayout ( ) : void

Recomputes the spans and scrollbars of the TextView.

ComputeLayout ( Graphics g ) : void

Computes the layout of all visible text spans and stores them the member variable 'visibleLines'. This includes a final partial item on the end.

Dispose ( bool disposing ) : void
GetSpan ( System.Point pt ) : Reko.Gui.Windows.Controls.LayoutSpan

Returns the span located at the point pt.

OnFontChanged ( EventArgs e ) : void
OnKeyDown ( KeyEventArgs e ) : void
OnLostFocus ( EventArgs e ) : void
OnModelChanged ( EventArgs e ) : void
OnMouseDown ( MouseEventArgs e ) : void
OnMouseMove ( MouseEventArgs e ) : void
OnMouseUp ( MouseEventArgs e ) : void
OnMouseWheel ( MouseEventArgs e ) : void
OnPaint ( PaintEventArgs e ) : void
OnPaintBackground ( PaintEventArgs pevent ) : void
OnResize ( EventArgs e ) : void
OnScroll ( ) : void

Called when the view is scrolled.

OnServicesChanged ( ) : void

Private Methods

Method Description
ClearCaret ( ) : void
ClientToLogicalPosition ( System.Point pt ) : Reko.Gui.Windows.Controls.TextPointer
FindSpan ( System.Point ptClient, Reko.Gui.Windows.Controls.LayoutLine line ) : Reko.Gui.Windows.Controls.LayoutSpan
GetFullyVisibleLines ( ) : int
GetSize ( Reko.Gui.Windows.Controls.TextSpan span, string text, Font font, Graphics g ) : SizeF

Computes the size of a text span.

The span is first asked to measure itself, then the current style is allowed to override the size.

GetStyleStack ( ) : Reko.Gui.Windows.Controls.StyleStack
IsInsideSelection ( Reko.Gui.Windows.Controls.TextPointer pos ) : bool
LogicalPositionToClient ( Reko.Gui.Windows.Controls.TextPointer pos ) : RectangleF
SaveSelectionToStream ( System.Stream stream ) : void
SetCaret ( ) : void
UpdateScrollbar ( ) : void

Method Details

ChangeLayout() protected method

Recomputes the spans and scrollbars of the TextView.
protected ChangeLayout ( ) : void
return void

ClearSelection() public method

public ClearSelection ( ) : void
return void

ComputeLayout() protected method

Computes the layout of all visible text spans and stores them the member variable 'visibleLines'. This includes a final partial item on the end.
protected ComputeLayout ( Graphics g ) : void
g Graphics
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

GetAnchorMiddlePoint() public method

public GetAnchorMiddlePoint ( ) : System.Point
return System.Point

GetAnchorTopPoint() public method

public GetAnchorTopPoint ( ) : System.Point
return System.Point

GetEndSelection() public method

public GetEndSelection ( ) : Reko.Gui.Windows.Controls.TextPointer
return Reko.Gui.Windows.Controls.TextPointer

GetSpan() protected method

Returns the span located at the point pt.
protected GetSpan ( System.Point pt ) : Reko.Gui.Windows.Controls.LayoutSpan
pt System.Point Location specified in client coordinates.
return Reko.Gui.Windows.Controls.LayoutSpan

GetStartSelection() public method

public GetStartSelection ( ) : Reko.Gui.Windows.Controls.TextPointer
return Reko.Gui.Windows.Controls.TextPointer

GetTagFromPoint() public method

Given a point in client coordinates, locate the tag associated with the clicked span -- if there is one.
public GetTagFromPoint ( System.Point ptClient ) : object
ptClient System.Point
return object

InvalidateModel() public method

public InvalidateModel ( ) : void
return void

IsSelectionEmpty() public method

public IsSelectionEmpty ( ) : bool
return bool

OnFontChanged() protected method

protected OnFontChanged ( EventArgs e ) : void
e System.EventArgs
return void

OnKeyDown() protected method

protected OnKeyDown ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs
return void

OnLostFocus() protected method

protected OnLostFocus ( EventArgs e ) : void
e System.EventArgs
return void

OnModelChanged() protected method

protected OnModelChanged ( EventArgs e ) : void
e System.EventArgs
return void

OnMouseDown() protected method

protected OnMouseDown ( MouseEventArgs e ) : void
e System.Windows.Forms.MouseEventArgs
return void

OnMouseMove() protected method

protected OnMouseMove ( MouseEventArgs e ) : void
e System.Windows.Forms.MouseEventArgs
return void

OnMouseUp() protected method

protected OnMouseUp ( MouseEventArgs e ) : void
e System.Windows.Forms.MouseEventArgs
return void

OnMouseWheel() protected method

protected OnMouseWheel ( MouseEventArgs e ) : void
e System.Windows.Forms.MouseEventArgs
return void

OnPaint() protected method

protected OnPaint ( PaintEventArgs e ) : void
e System.Windows.Forms.PaintEventArgs
return void

OnPaintBackground() protected method

protected OnPaintBackground ( PaintEventArgs pevent ) : void
pevent System.Windows.Forms.PaintEventArgs
return void

OnResize() protected method

protected OnResize ( EventArgs e ) : void
e System.EventArgs
return void

OnScroll() protected method

Called when the view is scrolled.
protected OnScroll ( ) : void
return void

OnServicesChanged() protected method

protected OnServicesChanged ( ) : void
return void

RecomputeLayout() public method

public RecomputeLayout ( ) : void
return void

TextView() public method

public TextView ( ) : Reko.Core
return Reko.Core

model_ModelChanged() public method

public model_ModelChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

vScroll_ValueChanged() public method

public vScroll_ValueChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void