C# Класс Mono.TextEditor.TextViewMargin

Наследование: Mono.TextEditor.Margin
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
EmptyRectangle Gdk.Rectangle
GetLink string>.Func

Private Properties

Свойство Тип Описание
CalculateClickLocation bool
CancelCodeSegmentTooltip void
DecorateTabsAndSpaces void
DimColor Cairo.Color
DimColor Cairo.Color
DisposeGCs void
DisposeLayoutDict void
DisposeSearchPatternWorker void
DrawEolMarker void
DrawIndent void
DrawLinePart void
DrawScrollShadow void
GetCachedChunks List
GetCaretChar char
GetEolMarkerIndex int
GetFirstSearchResult TextSegment
GetFoldRectangles FoldSegment>>.IEnumerable
GetPixel ulong
GetPixel ulong
GetSelectionOffsets void
GetVirtualSpaceLayout LayoutWrapper
HandleFocusInEvent void
HandleFocusOutEvent void
HandleSearchChanged void
HandleSelection void
HandleTextReplaced void
HandleVAdjustmentValueChanged void
InnerDecorateTabsAndSpaces void
InternalHandleSelection void
IsInsideSelection bool
OnCaretBlink void
OnLineShown void
OpenCodeSegmentEditor void
ScanWord int
SearchPatternWorkerDoWork void
SetVisibleCaretPosition void
ShowTooltip void
StopCaretThread void
TextEditorDocumentLineChanged void
TextEditor_HighlightSearchPatternChanged void
UpdateCaret bool
UpdateRegions void

Открытые методы

Метод Описание
ClearSearchMaker ( ) : void
ColumnToX ( Mono.TextEditor.DocumentLine line, int column ) : double
CreateLinePartLayout ( ISyntaxMode mode, Mono.TextEditor.DocumentLine line, int offset, int length, int selectionStart, int selectionEnd ) : LayoutWrapper
CreateLinePartLayout ( ISyntaxMode mode, Mono.TextEditor.DocumentLine line, int logicalRulerColumn, int offset, int length, int selectionStart, int selectionEnd ) : LayoutWrapper
Dispose ( ) : void
DrawCaret ( Gdk win, Gdk rect ) : void
DrawCaretLineMarker ( Cairo cr, double xPos, double y, double width, double lineHeight ) : void
DrawRectangleWithRuler ( Cairo cr, double x, Cairo area, Cairo color, bool drawDefaultBackground ) : void
ForceInvalidateLine ( int lineNr ) : void
GetLayout ( Mono.TextEditor.DocumentLine line ) : LayoutWrapper
GetLineHeight ( Mono.TextEditor.DocumentLine line ) : double
GetLineHeight ( int logicalLineNumber ) : double
GetNextTabstop ( TextEditorData textEditor, int currentColumn ) : int
GetNextTabstop ( TextEditorData textEditor, int currentColumn, int tabSize ) : int
GetWidth ( string text ) : int
HideCodeSegmentPreviewWindow ( ) : void
LineToY ( int logicalLine ) : double
LocationToPoint ( Mono.TextEditor.DocumentLocation loc ) : Cairo.Point
LocationToPoint ( Mono.TextEditor.DocumentLocation loc, bool useAbsoluteCoordinates ) : Cairo.Point
LocationToPoint ( int line, int column ) : Cairo.Point
LocationToPoint ( int line, int column, bool useAbsoluteCoordinates ) : Cairo.Point
PointToLocation ( Cairo p, bool endAtEol = false, bool snapCharacters = false ) : Mono.TextEditor.DocumentLocation
PointToLocation ( double xp, double yp, bool endAtEol = false, bool snapCharacters = false ) : Mono.TextEditor.DocumentLocation
PurgeLayoutCache ( ) : void
RefreshSearchMarker ( ) : void
RemoveCachedLine ( Mono.TextEditor.DocumentLine line ) : void
ResetCaretBlink ( uint delay ) : void
RoundedRectangle ( Cairo cr, double x, double y, double w, double h, double r, CairoCorners corners, bool topBottomFallsThrough ) : void
TextViewMargin ( MonoTextEditor textEditor ) : System
TranslateIndexToUTF8 ( string text, int index ) : int
TranslateToUTF8Index ( char charArray, uint textIndex, uint &curIndex, uint &byteIndex ) : uint
YToLine ( double yPos ) : int

Защищенные методы

Метод Описание
Draw ( Cairo cr, Cairo area, Mono.TextEditor.DocumentLine line, int lineNr, double x, double y, double _lineHeight ) : void
MouseHover ( Mono.TextEditor.MarginMouseEventArgs args ) : void
MouseLeft ( ) : void
MousePressed ( Mono.TextEditor.MarginMouseEventArgs args ) : void
MouseReleased ( Mono.TextEditor.MarginMouseEventArgs args ) : void
OnHoveredLineChanged ( Mono.TextEditor.LineEventArgs e ) : void
OnMainSearchResultChanged ( EventArgs e ) : void
OnSearchRegionsUpdated ( EventArgs e ) : void
OptionsChanged ( ) : void

Приватные методы

Метод Описание
CalculateClickLocation ( double x, double y, Mono.TextEditor.DocumentLocation &clickLocation ) : bool
CancelCodeSegmentTooltip ( ) : void
DecorateTabsAndSpaces ( Cairo ctx, LayoutWrapper layout, int offset, double x, double y, int selectionStart, int selectionEnd ) : void
DimColor ( Cairo color ) : Cairo.Color
DimColor ( Cairo color, double dimFactor ) : Cairo.Color
DisposeGCs ( ) : void
DisposeLayoutDict ( ) : void
DisposeSearchPatternWorker ( ) : void
DrawEolMarker ( Cairo cr, Mono.TextEditor.DocumentLine line, bool selected, double x, double y ) : void
DrawIndent ( Cairo cr, LayoutWrapper layout, Mono.TextEditor.DocumentLine line, double xPos, double y ) : void
DrawLinePart ( Cairo cr, Mono.TextEditor.DocumentLine line, int lineNumber, int logicalRulerColumn, int offset, int length, double &position, bool &isSelectionDrawn, double y, double maxX, double _lineHeight ) : void
DrawScrollShadow ( Cairo cr, double x, double y, double _lineHeight ) : void
GetCachedChunks ( ISyntaxMode mode, TextDocument doc, Mono style, Mono.TextEditor.DocumentLine line, int offset, int length ) : List
GetCaretChar ( ) : char
GetEolMarkerIndex ( UnicodeNewline ch ) : int
GetFirstSearchResult ( int startOffset, int endOffset ) : TextSegment
GetFoldRectangles ( int lineNr ) : FoldSegment>>.IEnumerable
GetPixel ( Cairo color ) : ulong
GetPixel ( Color color ) : ulong
GetSelectionOffsets ( Mono.TextEditor.DocumentLine line, int &selectionStart, int &selectionEnd ) : void
GetVirtualSpaceLayout ( Mono.TextEditor.DocumentLine line, Mono.TextEditor.DocumentLocation location ) : LayoutWrapper
HandleFocusInEvent ( object o, Gtk.FocusInEventArgs args ) : void
HandleFocusOutEvent ( object o, Gtk.FocusOutEventArgs args ) : void
HandleSearchChanged ( object sender, EventArgs args ) : void
HandleSelection ( int lineOffset, int logicalRulerColumn, int selectionStart, int selectionEnd, int startOffset, int endOffset, HandleSelectionDelegate handleNotSelected, HandleSelectionDelegate handleSelected ) : void
HandleTextReplaced ( object sender, Mono.TextEditor.DocumentChangeEventArgs e ) : void
HandleVAdjustmentValueChanged ( object sender, EventArgs e ) : void
InnerDecorateTabsAndSpaces ( Cairo ctx, LayoutWrapper layout, int offset, double x, double y, int selectionStart, int selectionEnd, char spaceOrTab ) : void
InternalHandleSelection ( int selectionStart, int selectionEnd, int startOffset, int endOffset, HandleSelectionDelegate handleNotSelected, HandleSelectionDelegate handleSelected ) : void
IsInsideSelection ( Mono.TextEditor.DocumentLocation clickLocation ) : bool
OnCaretBlink ( EventArgs e ) : void
OnLineShown ( Mono.TextEditor.DocumentLine line ) : void
OpenCodeSegmentEditor ( ) : void
ScanWord ( TextDocument doc, int offset, bool forwardDirection ) : int
SearchPatternWorkerDoWork ( object sender, System e ) : void
SetVisibleCaretPosition ( double x, double y, double nonPreeditX, double nonPreeditY ) : void
ShowTooltip ( TextSegment segment, Gdk.Rectangle hintRectangle ) : void
StopCaretThread ( ) : void
TextEditorDocumentLineChanged ( object sender, Mono.TextEditor.LineEventArgs e ) : void
TextEditor_HighlightSearchPatternChanged ( object sender, EventArgs e ) : void
UpdateCaret ( ) : bool
UpdateRegions ( IEnumerable regions, SearchWorkerArguments args ) : void

Описание методов

ClearSearchMaker() публичный Метод

public ClearSearchMaker ( ) : void
Результат void

ColumnToX() публичный Метод

public ColumnToX ( Mono.TextEditor.DocumentLine line, int column ) : double
line Mono.TextEditor.DocumentLine
column int
Результат double

CreateLinePartLayout() публичный Метод

public CreateLinePartLayout ( ISyntaxMode mode, Mono.TextEditor.DocumentLine line, int offset, int length, int selectionStart, int selectionEnd ) : LayoutWrapper
mode ISyntaxMode
line Mono.TextEditor.DocumentLine
offset int
length int
selectionStart int
selectionEnd int
Результат LayoutWrapper

CreateLinePartLayout() публичный Метод

public CreateLinePartLayout ( ISyntaxMode mode, Mono.TextEditor.DocumentLine line, int logicalRulerColumn, int offset, int length, int selectionStart, int selectionEnd ) : LayoutWrapper
mode ISyntaxMode
line Mono.TextEditor.DocumentLine
logicalRulerColumn int
offset int
length int
selectionStart int
selectionEnd int
Результат LayoutWrapper

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

Draw() защищенный Метод

protected Draw ( Cairo cr, Cairo area, Mono.TextEditor.DocumentLine line, int lineNr, double x, double y, double _lineHeight ) : void
cr Cairo
area Cairo
line Mono.TextEditor.DocumentLine
lineNr int
x double
y double
_lineHeight double
Результат void

DrawCaret() публичный Метод

public DrawCaret ( Gdk win, Gdk rect ) : void
win Gdk
rect Gdk
Результат void

DrawCaretLineMarker() публичный Метод

public DrawCaretLineMarker ( Cairo cr, double xPos, double y, double width, double lineHeight ) : void
cr Cairo
xPos double
y double
width double
lineHeight double
Результат void

DrawRectangleWithRuler() публичный Метод

public DrawRectangleWithRuler ( Cairo cr, double x, Cairo area, Cairo color, bool drawDefaultBackground ) : void
cr Cairo
x double
area Cairo
color Cairo
drawDefaultBackground bool
Результат void

ForceInvalidateLine() публичный Метод

public ForceInvalidateLine ( int lineNr ) : void
lineNr int
Результат void

GetLayout() публичный Метод

public GetLayout ( Mono.TextEditor.DocumentLine line ) : LayoutWrapper
line Mono.TextEditor.DocumentLine
Результат LayoutWrapper

GetLineHeight() публичный Метод

public GetLineHeight ( Mono.TextEditor.DocumentLine line ) : double
line Mono.TextEditor.DocumentLine
Результат double

GetLineHeight() публичный Метод

public GetLineHeight ( int logicalLineNumber ) : double
logicalLineNumber int
Результат double

GetNextTabstop() публичный статический Метод

public static GetNextTabstop ( TextEditorData textEditor, int currentColumn ) : int
textEditor TextEditorData
currentColumn int
Результат int

GetNextTabstop() публичный статический Метод

public static GetNextTabstop ( TextEditorData textEditor, int currentColumn, int tabSize ) : int
textEditor TextEditorData
currentColumn int
tabSize int
Результат int

GetWidth() публичный Метод

public GetWidth ( string text ) : int
text string
Результат int

HideCodeSegmentPreviewWindow() публичный Метод

public HideCodeSegmentPreviewWindow ( ) : void
Результат void

LineToY() публичный Метод

public LineToY ( int logicalLine ) : double
logicalLine int
Результат double

LocationToPoint() публичный Метод

public LocationToPoint ( Mono.TextEditor.DocumentLocation loc ) : Cairo.Point
loc Mono.TextEditor.DocumentLocation
Результат Cairo.Point

LocationToPoint() публичный Метод

public LocationToPoint ( Mono.TextEditor.DocumentLocation loc, bool useAbsoluteCoordinates ) : Cairo.Point
loc Mono.TextEditor.DocumentLocation
useAbsoluteCoordinates bool
Результат Cairo.Point

LocationToPoint() публичный Метод

public LocationToPoint ( int line, int column ) : Cairo.Point
line int
column int
Результат Cairo.Point

LocationToPoint() публичный Метод

public LocationToPoint ( int line, int column, bool useAbsoluteCoordinates ) : Cairo.Point
line int
column int
useAbsoluteCoordinates bool
Результат Cairo.Point

MouseHover() защищенный Метод

protected MouseHover ( Mono.TextEditor.MarginMouseEventArgs args ) : void
args Mono.TextEditor.MarginMouseEventArgs
Результат void

MouseLeft() защищенный Метод

protected MouseLeft ( ) : void
Результат void

MousePressed() защищенный Метод

protected MousePressed ( Mono.TextEditor.MarginMouseEventArgs args ) : void
args Mono.TextEditor.MarginMouseEventArgs
Результат void

MouseReleased() защищенный Метод

protected MouseReleased ( Mono.TextEditor.MarginMouseEventArgs args ) : void
args Mono.TextEditor.MarginMouseEventArgs
Результат void

OnHoveredLineChanged() защищенный Метод

protected OnHoveredLineChanged ( Mono.TextEditor.LineEventArgs e ) : void
e Mono.TextEditor.LineEventArgs
Результат void

OnMainSearchResultChanged() защищенный Метод

protected OnMainSearchResultChanged ( EventArgs e ) : void
e System.EventArgs
Результат void

OnSearchRegionsUpdated() защищенный Метод

protected OnSearchRegionsUpdated ( EventArgs e ) : void
e System.EventArgs
Результат void

OptionsChanged() защищенный Метод

protected OptionsChanged ( ) : void
Результат void

PointToLocation() публичный Метод

public PointToLocation ( Cairo p, bool endAtEol = false, bool snapCharacters = false ) : Mono.TextEditor.DocumentLocation
p Cairo
endAtEol bool
snapCharacters bool
Результат Mono.TextEditor.DocumentLocation

PointToLocation() публичный Метод

public PointToLocation ( double xp, double yp, bool endAtEol = false, bool snapCharacters = false ) : Mono.TextEditor.DocumentLocation
xp double
yp double
endAtEol bool
snapCharacters bool
Результат Mono.TextEditor.DocumentLocation

PurgeLayoutCache() публичный Метод

public PurgeLayoutCache ( ) : void
Результат void

RefreshSearchMarker() публичный Метод

public RefreshSearchMarker ( ) : void
Результат void

RemoveCachedLine() публичный Метод

public RemoveCachedLine ( Mono.TextEditor.DocumentLine line ) : void
line Mono.TextEditor.DocumentLine
Результат void

ResetCaretBlink() публичный Метод

public ResetCaretBlink ( uint delay ) : void
delay uint
Результат void

RoundedRectangle() публичный статический Метод

public static RoundedRectangle ( Cairo cr, double x, double y, double w, double h, double r, CairoCorners corners, bool topBottomFallsThrough ) : void
cr Cairo
x double
y double
w double
h double
r double
corners CairoCorners
topBottomFallsThrough bool
Результат void

TextViewMargin() публичный Метод

public TextViewMargin ( MonoTextEditor textEditor ) : System
textEditor MonoTextEditor
Результат System

TranslateIndexToUTF8() публичный статический Метод

public static TranslateIndexToUTF8 ( string text, int index ) : int
text string
index int
Результат int

TranslateToUTF8Index() публичный статический Метод

public static TranslateToUTF8Index ( char charArray, uint textIndex, uint &curIndex, uint &byteIndex ) : uint
charArray char
textIndex uint
curIndex uint
byteIndex uint
Результат uint

YToLine() публичный Метод

public YToLine ( double yPos ) : int
yPos double
Результат int

Описание свойств

EmptyRectangle публичное статическое свойство

public static Rectangle,Gdk EmptyRectangle
Результат Gdk.Rectangle

GetLink публичное свойство

public Func GetLink
Результат string>.Func