C# Class AvalonStudio.TextEditor.Rendering.VisualLineGeometryBuilder

Exibir arquivo Open project: VitalElement/AvalonStudio Class Usage Examples

Public Methods

Method Description
GetDocumentTextPosition ( TextView textView, int offset ) : Avalonia.Rect
GetLinesForSegmentInDocument ( TextDocument textDocument, ISegment segment, bool extendToFullWidthAtLineEnd = false ) : IEnumerable
GetLinesForSegmentOnScreen ( TextView textView, ISegment segment, bool extendToFullWidthAtLineEnd = false ) : IEnumerable
GetRectsForSegment ( TextView textView, ISegment segment, bool extendToFullWidthAtLineEnd = false ) : IEnumerable
GetTextPositionInViewPort ( TextView textView, TextViewPosition position ) : Avalonia.Rect
GetTextViewPosition ( TextView textView, int offset ) : Avalonia.Rect
GetViewPortPosition ( TextView textView, int offset ) : Avalonia.Rect

Private Methods

Method Description
GetOffsetForLinesInSegmentInDocument ( TextDocument textDocument, ISegment segment, bool extendToFullWidthAtLineEnd = false ) : int>>.IEnumerable
GetOffsetForLinesInSegmentOnScreen ( TextView textView, ISegment segment, bool extendToFullWidthAtLineEnd = false ) : int>>.IEnumerable

Method Details

GetDocumentTextPosition() public static method

public static GetDocumentTextPosition ( TextView textView, int offset ) : Avalonia.Rect
textView TextView
offset int
return Avalonia.Rect

GetLinesForSegmentInDocument() public static method

public static GetLinesForSegmentInDocument ( TextDocument textDocument, ISegment segment, bool extendToFullWidthAtLineEnd = false ) : IEnumerable
textDocument AvalonStudio.TextEditor.Document.TextDocument
segment ISegment
extendToFullWidthAtLineEnd bool
return IEnumerable

GetLinesForSegmentOnScreen() public static method

public static GetLinesForSegmentOnScreen ( TextView textView, ISegment segment, bool extendToFullWidthAtLineEnd = false ) : IEnumerable
textView TextView
segment ISegment
extendToFullWidthAtLineEnd bool
return IEnumerable

GetRectsForSegment() public static method

public static GetRectsForSegment ( TextView textView, ISegment segment, bool extendToFullWidthAtLineEnd = false ) : IEnumerable
textView TextView
segment ISegment
extendToFullWidthAtLineEnd bool
return IEnumerable

GetTextPositionInViewPort() public static method

public static GetTextPositionInViewPort ( TextView textView, TextViewPosition position ) : Avalonia.Rect
textView TextView
position TextViewPosition
return Avalonia.Rect

GetTextViewPosition() public static method

public static GetTextViewPosition ( TextView textView, int offset ) : Avalonia.Rect
textView TextView
offset int
return Avalonia.Rect

GetViewPortPosition() public static method

public static GetViewPortPosition ( TextView textView, int offset ) : Avalonia.Rect
textView TextView
offset int
return Avalonia.Rect