C# Class Mono.TextEditor.TextViewMargin

Inheritance: Mono.TextEditor.Margin
Afficher le fichier Open project: powerumc/monodevelop_korean Class Usage Examples

Méthodes publiques

Свойство Type Description
EmptyRectangle Gdk.Rectangle
GetLink string>.Func

Private Properties

Свойство Type Description
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

Méthodes publiques

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

Méthodes protégées

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

Private Methods

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

Method Details

ClearSearchMaker() public méthode

public ClearSearchMaker ( ) : void
Résultat void

ColumnToX() public méthode

public ColumnToX ( Mono.TextEditor.DocumentLine line, int column ) : double
line Mono.TextEditor.DocumentLine
column int
Résultat double

CreateLinePartLayout() public méthode

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

CreateLinePartLayout() public méthode

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

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Draw() protected méthode

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

DrawCaret() public méthode

public DrawCaret ( Gdk win, Gdk rect ) : void
win Gdk
rect Gdk
Résultat void

DrawCaretLineMarker() public méthode

public DrawCaretLineMarker ( Cairo cr, double xPos, double y, double width, double lineHeight ) : void
cr Cairo
xPos double
y double
width double
lineHeight double
Résultat void

DrawRectangleWithRuler() public méthode

public DrawRectangleWithRuler ( Cairo cr, double x, Cairo area, Cairo color, bool drawDefaultBackground ) : void
cr Cairo
x double
area Cairo
color Cairo
drawDefaultBackground bool
Résultat void

ForceInvalidateLine() public méthode

public ForceInvalidateLine ( int lineNr ) : void
lineNr int
Résultat void

GetLayout() public méthode

public GetLayout ( Mono.TextEditor.DocumentLine line ) : LayoutWrapper
line Mono.TextEditor.DocumentLine
Résultat LayoutWrapper

GetLineHeight() public méthode

public GetLineHeight ( Mono.TextEditor.DocumentLine line ) : double
line Mono.TextEditor.DocumentLine
Résultat double

GetLineHeight() public méthode

public GetLineHeight ( int logicalLineNumber ) : double
logicalLineNumber int
Résultat double

GetNextTabstop() public static méthode

public static GetNextTabstop ( TextEditorData textEditor, int currentColumn ) : int
textEditor TextEditorData
currentColumn int
Résultat int

GetNextTabstop() public static méthode

public static GetNextTabstop ( TextEditorData textEditor, int currentColumn, int tabSize ) : int
textEditor TextEditorData
currentColumn int
tabSize int
Résultat int

GetWidth() public méthode

public GetWidth ( string text ) : int
text string
Résultat int

HideCodeSegmentPreviewWindow() public méthode

public HideCodeSegmentPreviewWindow ( ) : void
Résultat void

LineToY() public méthode

public LineToY ( int logicalLine ) : double
logicalLine int
Résultat double

LocationToPoint() public méthode

public LocationToPoint ( Mono.TextEditor.DocumentLocation loc ) : Cairo.Point
loc Mono.TextEditor.DocumentLocation
Résultat Cairo.Point

LocationToPoint() public méthode

public LocationToPoint ( Mono.TextEditor.DocumentLocation loc, bool useAbsoluteCoordinates ) : Cairo.Point
loc Mono.TextEditor.DocumentLocation
useAbsoluteCoordinates bool
Résultat Cairo.Point

LocationToPoint() public méthode

public LocationToPoint ( int line, int column ) : Cairo.Point
line int
column int
Résultat Cairo.Point

LocationToPoint() public méthode

public LocationToPoint ( int line, int column, bool useAbsoluteCoordinates ) : Cairo.Point
line int
column int
useAbsoluteCoordinates bool
Résultat Cairo.Point

MouseHover() protected méthode

protected MouseHover ( Mono.TextEditor.MarginMouseEventArgs args ) : void
args Mono.TextEditor.MarginMouseEventArgs
Résultat void

MouseLeft() protected méthode

protected MouseLeft ( ) : void
Résultat void

MousePressed() protected méthode

protected MousePressed ( Mono.TextEditor.MarginMouseEventArgs args ) : void
args Mono.TextEditor.MarginMouseEventArgs
Résultat void

MouseReleased() protected méthode

protected MouseReleased ( Mono.TextEditor.MarginMouseEventArgs args ) : void
args Mono.TextEditor.MarginMouseEventArgs
Résultat void

OnHoveredLineChanged() protected méthode

protected OnHoveredLineChanged ( Mono.TextEditor.LineEventArgs e ) : void
e Mono.TextEditor.LineEventArgs
Résultat void

OnMainSearchResultChanged() protected méthode

protected OnMainSearchResultChanged ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnSearchRegionsUpdated() protected méthode

protected OnSearchRegionsUpdated ( EventArgs e ) : void
e System.EventArgs
Résultat void

OptionsChanged() protected méthode

protected OptionsChanged ( ) : void
Résultat void

PointToLocation() public méthode

public PointToLocation ( Cairo p, bool endAtEol = false, bool snapCharacters = false ) : Mono.TextEditor.DocumentLocation
p Cairo
endAtEol bool
snapCharacters bool
Résultat Mono.TextEditor.DocumentLocation

PointToLocation() public méthode

public PointToLocation ( double xp, double yp, bool endAtEol = false, bool snapCharacters = false ) : Mono.TextEditor.DocumentLocation
xp double
yp double
endAtEol bool
snapCharacters bool
Résultat Mono.TextEditor.DocumentLocation

PurgeLayoutCache() public méthode

public PurgeLayoutCache ( ) : void
Résultat void

RefreshSearchMarker() public méthode

public RefreshSearchMarker ( ) : void
Résultat void

RemoveCachedLine() public méthode

public RemoveCachedLine ( Mono.TextEditor.DocumentLine line ) : void
line Mono.TextEditor.DocumentLine
Résultat void

ResetCaretBlink() public méthode

public ResetCaretBlink ( uint delay ) : void
delay uint
Résultat void

RoundedRectangle() public static méthode

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

TextViewMargin() public méthode

public TextViewMargin ( MonoTextEditor textEditor ) : System
textEditor MonoTextEditor
Résultat System

TranslateIndexToUTF8() public static méthode

public static TranslateIndexToUTF8 ( string text, int index ) : int
text string
index int
Résultat int

TranslateToUTF8Index() public static méthode

public static TranslateToUTF8Index ( char charArray, uint textIndex, uint &curIndex, uint &byteIndex ) : uint
charArray char
textIndex uint
curIndex uint
byteIndex uint
Résultat uint

YToLine() public méthode

public YToLine ( double yPos ) : int
yPos double
Résultat int

Property Details

EmptyRectangle public_oe static_oe property

public static Rectangle,Gdk EmptyRectangle
Résultat Gdk.Rectangle

GetLink public_oe property

public Func GetLink
Résultat string>.Func