C# Class TextAddin.Controls.TextLayer

Inheritance: TextAddin.Controls.Layer, ILineTracker, IServiceProvider
Afficher le fichier Open project: FloodProject/flood Class Usage Examples

Méthodes publiques

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

Méthodes protégées

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

Méthode 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 méthode

public BeforeRemoveLine ( TextAddin.Document.DocumentLine documentLine ) : void
documentLine TextAddin.Document.DocumentLine
Résultat void

CreateColorizer() protected méthode

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

GetIsCollapsed() public méthode

public GetIsCollapsed ( int lineNumber ) : bool
lineNumber int
Résultat bool

GetTextLocation() public méthode

public GetTextLocation ( Vector2i position ) : TextLocation
position Vector2i
Résultat TextLocation

GetTextLocationPosition() public méthode

public GetTextLocationPosition ( TextLocation textLocation ) : System.Vector2
textLocation TextLocation
Résultat System.Vector2

InitVisualLine() public méthode

public InitVisualLine ( VisualLine visualLine ) : VisualLine
visualLine VisualLine
Résultat VisualLine

Layout() protected méthode

protected Layout ( Flood skin ) : void
skin Flood
Résultat void

LineInserted() public méthode

public LineInserted ( TextAddin.Document.DocumentLine insertionPos, TextAddin.Document.DocumentLine newDocLine ) : void
insertionPos TextAddin.Document.DocumentLine
newDocLine TextAddin.Document.DocumentLine
Résultat void

RebuildDocument() public méthode

public RebuildDocument ( ) : void
Résultat void

SetLineLength() public méthode

public SetLineLength ( TextAddin.Document.DocumentLine line, int newTotalLength ) : void
line TextAddin.Document.DocumentLine
newTotalLength int
Résultat void

TextLayer() public méthode

public TextLayer ( TextAddin.Controls.TextView parent, TextAddin.Document.TextDocument textDocument ) : System
parent TextAddin.Controls.TextView
textDocument TextAddin.Document.TextDocument
Résultat System