C# Class TextAddin.Controls.TextLayer

Inheritance: TextAddin.Controls.Layer, ILineTracker, IServiceProvider
Mostra file Open project: FloodProject/flood Class Usage Examples

Public Methods

Method Description
BeforeRemoveLine ( TextAddin.Document.DocumentLine documentLine ) : void
GetIsCollapsed ( int lineNumber ) : bool
GetTextLocation ( Vector2i position ) : TextLocation
GetTextLocationPosition ( TextLocation textLocation ) : System.Vector2
InitVisualLine ( VisualLine visualLine ) : VisualLine
LineInserted ( TextAddin.Document.DocumentLine insertionPos, TextAddin.Document.DocumentLine newDocLine ) : void
RebuildDocument ( ) : void
SetLineLength ( TextAddin.Document.DocumentLine line, int newTotalLength ) : void
TextLayer ( TextAddin.Controls.TextView parent, TextAddin.Document.TextDocument textDocument ) : System

Protected Methods

Method Description
CreateColorizer ( IHighlightingDefinition highlightingDefinition ) : IVisualLineTransformer

Creates the highlighting colorizer for the specified highlighting definition. Allows derived classes to provide custom colorizer implementations for special highlighting definitions.

Layout ( Flood skin ) : void

Private Methods

Method Description
ConnectToTextView ( object obj ) : void
DisconnectFromTextView ( object obj ) : void
ElementGenerator_Added ( TextAddin.Rendering.VisualLineElementGenerator generator ) : void
ElementGenerator_Removed ( TextAddin.Rendering.VisualLineElementGenerator generator ) : void
IServiceProvider ( Type serviceType ) : object
LineTransformer_Added ( IVisualLineTransformer lineTransformer ) : void
LineTransformer_Removed ( IVisualLineTransformer lineTransformer ) : void
OnDocumentChanged ( TextAddin.Document.TextDocument oldValue, TextAddin.Document.TextDocument newValue ) : void
OnSyntaxHighlightingChanged ( IHighlightingDefinition newValue ) : void

Method Details

BeforeRemoveLine() public method

public BeforeRemoveLine ( TextAddin.Document.DocumentLine documentLine ) : void
documentLine TextAddin.Document.DocumentLine
return void

CreateColorizer() protected method

Creates the highlighting colorizer for the specified highlighting definition. Allows derived classes to provide custom colorizer implementations for special highlighting definitions.
protected CreateColorizer ( IHighlightingDefinition highlightingDefinition ) : IVisualLineTransformer
highlightingDefinition IHighlightingDefinition
return IVisualLineTransformer

GetIsCollapsed() public method

public GetIsCollapsed ( int lineNumber ) : bool
lineNumber int
return bool

GetTextLocation() public method

public GetTextLocation ( Vector2i position ) : TextLocation
position Vector2i
return TextLocation

GetTextLocationPosition() public method

public GetTextLocationPosition ( TextLocation textLocation ) : System.Vector2
textLocation TextLocation
return System.Vector2

InitVisualLine() public method

public InitVisualLine ( VisualLine visualLine ) : VisualLine
visualLine VisualLine
return VisualLine

Layout() protected method

protected Layout ( Flood skin ) : void
skin Flood
return void

LineInserted() public method

public LineInserted ( TextAddin.Document.DocumentLine insertionPos, TextAddin.Document.DocumentLine newDocLine ) : void
insertionPos TextAddin.Document.DocumentLine
newDocLine TextAddin.Document.DocumentLine
return void

RebuildDocument() public method

public RebuildDocument ( ) : void
return void

SetLineLength() public method

public SetLineLength ( TextAddin.Document.DocumentLine line, int newTotalLength ) : void
line TextAddin.Document.DocumentLine
newTotalLength int
return void

TextLayer() public method

public TextLayer ( TextAddin.Controls.TextView parent, TextAddin.Document.TextDocument textDocument ) : System
parent TextAddin.Controls.TextView
textDocument TextAddin.Document.TextDocument
return System