C# Class Mono.TextEditor.TextViewMargin

Inheritance: Mono.TextEditor.Margin
Mostrar archivo Open project: powerumc/monodevelop_korean Class Usage Examples

Public Properties

Property Type Description
EmptyRectangle Gdk.Rectangle
GetLink string>.Func

Private Properties

Property 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

Public Methods

Method 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

Protected Methods

Method 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

Method 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 method

public ClearSearchMaker ( ) : void
return void

ColumnToX() public method

public ColumnToX ( Mono.TextEditor.DocumentLine line, int column ) : double
line Mono.TextEditor.DocumentLine
column int
return double

CreateLinePartLayout() public method

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
return LayoutWrapper

CreateLinePartLayout() public method

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
return LayoutWrapper

Dispose() public method

public Dispose ( ) : void
return void

Draw() protected method

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
return void

DrawCaret() public method

public DrawCaret ( Gdk win, Gdk rect ) : void
win Gdk
rect Gdk
return void

DrawCaretLineMarker() public method

public DrawCaretLineMarker ( Cairo cr, double xPos, double y, double width, double lineHeight ) : void
cr Cairo
xPos double
y double
width double
lineHeight double
return void

DrawRectangleWithRuler() public method

public DrawRectangleWithRuler ( Cairo cr, double x, Cairo area, Cairo color, bool drawDefaultBackground ) : void
cr Cairo
x double
area Cairo
color Cairo
drawDefaultBackground bool
return void

ForceInvalidateLine() public method

public ForceInvalidateLine ( int lineNr ) : void
lineNr int
return void

GetLayout() public method

public GetLayout ( Mono.TextEditor.DocumentLine line ) : LayoutWrapper
line Mono.TextEditor.DocumentLine
return LayoutWrapper

GetLineHeight() public method

public GetLineHeight ( Mono.TextEditor.DocumentLine line ) : double
line Mono.TextEditor.DocumentLine
return double

GetLineHeight() public method

public GetLineHeight ( int logicalLineNumber ) : double
logicalLineNumber int
return double

GetNextTabstop() public static method

public static GetNextTabstop ( TextEditorData textEditor, int currentColumn ) : int
textEditor TextEditorData
currentColumn int
return int

GetNextTabstop() public static method

public static GetNextTabstop ( TextEditorData textEditor, int currentColumn, int tabSize ) : int
textEditor TextEditorData
currentColumn int
tabSize int
return int

GetWidth() public method

public GetWidth ( string text ) : int
text string
return int

HideCodeSegmentPreviewWindow() public method

public HideCodeSegmentPreviewWindow ( ) : void
return void

LineToY() public method

public LineToY ( int logicalLine ) : double
logicalLine int
return double

LocationToPoint() public method

public LocationToPoint ( Mono.TextEditor.DocumentLocation loc ) : Cairo.Point
loc Mono.TextEditor.DocumentLocation
return Cairo.Point

LocationToPoint() public method

public LocationToPoint ( Mono.TextEditor.DocumentLocation loc, bool useAbsoluteCoordinates ) : Cairo.Point
loc Mono.TextEditor.DocumentLocation
useAbsoluteCoordinates bool
return Cairo.Point

LocationToPoint() public method

public LocationToPoint ( int line, int column ) : Cairo.Point
line int
column int
return Cairo.Point

LocationToPoint() public method

public LocationToPoint ( int line, int column, bool useAbsoluteCoordinates ) : Cairo.Point
line int
column int
useAbsoluteCoordinates bool
return Cairo.Point

MouseHover() protected method

protected MouseHover ( Mono.TextEditor.MarginMouseEventArgs args ) : void
args Mono.TextEditor.MarginMouseEventArgs
return void

MouseLeft() protected method

protected MouseLeft ( ) : void
return void

MousePressed() protected method

protected MousePressed ( Mono.TextEditor.MarginMouseEventArgs args ) : void
args Mono.TextEditor.MarginMouseEventArgs
return void

MouseReleased() protected method

protected MouseReleased ( Mono.TextEditor.MarginMouseEventArgs args ) : void
args Mono.TextEditor.MarginMouseEventArgs
return void

OnHoveredLineChanged() protected method

protected OnHoveredLineChanged ( Mono.TextEditor.LineEventArgs e ) : void
e Mono.TextEditor.LineEventArgs
return void

OnMainSearchResultChanged() protected method

protected OnMainSearchResultChanged ( EventArgs e ) : void
e System.EventArgs
return void

OnSearchRegionsUpdated() protected method

protected OnSearchRegionsUpdated ( EventArgs e ) : void
e System.EventArgs
return void

OptionsChanged() protected method

protected OptionsChanged ( ) : void
return void

PointToLocation() public method

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

PointToLocation() public method

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

PurgeLayoutCache() public method

public PurgeLayoutCache ( ) : void
return void

RefreshSearchMarker() public method

public RefreshSearchMarker ( ) : void
return void

RemoveCachedLine() public method

public RemoveCachedLine ( Mono.TextEditor.DocumentLine line ) : void
line Mono.TextEditor.DocumentLine
return void

ResetCaretBlink() public method

public ResetCaretBlink ( uint delay ) : void
delay uint
return void

RoundedRectangle() public static method

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
return void

TextViewMargin() public method

public TextViewMargin ( MonoTextEditor textEditor ) : System
textEditor MonoTextEditor
return System

TranslateIndexToUTF8() public static method

public static TranslateIndexToUTF8 ( string text, int index ) : int
text string
index int
return int

TranslateToUTF8Index() public static method

public static TranslateToUTF8Index ( char charArray, uint textIndex, uint &curIndex, uint &byteIndex ) : uint
charArray char
textIndex uint
curIndex uint
byteIndex uint
return uint

YToLine() public method

public YToLine ( double yPos ) : int
yPos double
return int

Property Details

EmptyRectangle public_oe static_oe property

public static Rectangle,Gdk EmptyRectangle
return Gdk.Rectangle

GetLink public_oe property

public Func GetLink
return string>.Func