C# 클래스 Alsing.Windows.Forms.SyntaxBox.Painter.NativePainter

Painter class that uses GDI32 to render the content of a SyntaxBoxControl
상속: IPainter
파일 보기 프로젝트 열기: vchelaru/FlatRedBall

공개 메소드들

메소드 설명
CharFromPixel ( int X, int Y ) : TextPoint

Implementation of the iPainter CharFromPixel method

Dispose ( ) : void
GetMaxCharWidth ( ) : int
InitGraphics ( ) : void

Implementation of the IPainter InitGraphics method. Initializes GDI32 backbuffers and brushes.

MeasureRow ( Row xtr, int Count ) : Size

Implementation of the IPainter MeasureRow method.

MeasureString ( string s ) : Size

Implementation of the IPainter MeasureString method

NativePainter ( EditViewControl control ) : System

NativePainter constructor.

RenderAll ( ) : void

Implementation of the IPainter RenderAll method.

RenderAll ( Graphics g ) : void

Implementation of the IPainter RenderAll method

RenderCaret ( Graphics g ) : void
RenderRow ( int RowIndex ) : void

Resize ( ) : void

Implementation of the IPainter Resize method

비공개 메소드들

메소드 설명
ColumnFromPixel ( int RowIndex, int X ) : TextPoint
GetTextPointPixelPos ( TextPoint tp ) : Point
InitIMEWindow ( ) : void
RenderAll2 ( ) : void
RenderBox ( int x, int y, int width, int height ) : void
RenderCaret ( int RowIndex, int ypos ) : void
RenderCollapsedSelectedText ( int RowIndex, int xPos ) : void
RenderCollapsedSelection ( int RowIndex ) : void
RenderCollapsedText ( int RowIndex, int xPos ) : void
RenderExpansion ( int RowIndex ) : void
RenderMargin ( int RowIndex ) : void
RenderRow ( int RowIndex, int RowPos ) : void
RenderSelectedText ( int RowIndex ) : void
RenderSelectedText ( int RowIndex, int XOffset, Word StartWord ) : void
RenderSelection ( int RowIndex ) : void
RenderText ( int RowIndex ) : void
RenderText ( int RowIndex, int XOffset, Word StartWord ) : void
SetBrackets ( ) : void
SetFont ( bool bold, bool italic, bool underline, GDISurface surface ) : void
SetSpanIndicators ( ) : void
SetStringFont ( bool bold, bool italic, bool underline ) : void

메소드 상세

CharFromPixel() 공개 메소드

Implementation of the iPainter CharFromPixel method
public CharFromPixel ( int X, int Y ) : TextPoint
X int Screen x position in pixels
Y int Screen y position in pixels
리턴 Alsing.SourceCode.TextPoint

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

GetMaxCharWidth() 공개 메소드

public GetMaxCharWidth ( ) : int
리턴 int

InitGraphics() 공개 메소드

Implementation of the IPainter InitGraphics method. Initializes GDI32 backbuffers and brushes.
public InitGraphics ( ) : void
리턴 void

MeasureRow() 공개 메소드

Implementation of the IPainter MeasureRow method.
public MeasureRow ( Row xtr, int Count ) : Size
xtr Alsing.SourceCode.Row Row to measure
Count int Last char index
리턴 System.Drawing.Size

MeasureString() 공개 메소드

Implementation of the IPainter MeasureString method
public MeasureString ( string s ) : Size
s string String to measure
리턴 System.Drawing.Size

NativePainter() 공개 메소드

NativePainter constructor.
public NativePainter ( EditViewControl control ) : System
control EditViewControl The control that will use the Painter
리턴 System

RenderAll() 공개 메소드

Implementation of the IPainter RenderAll method.
public RenderAll ( ) : void
리턴 void

RenderAll() 공개 메소드

Implementation of the IPainter RenderAll method
public RenderAll ( Graphics g ) : void
g System.Drawing.Graphics Target Graphics object
리턴 void

RenderCaret() 공개 메소드

public RenderCaret ( Graphics g ) : void
g System.Drawing.Graphics
리턴 void

RenderRow() 공개 메소드

public RenderRow ( int RowIndex ) : void
RowIndex int
리턴 void

Resize() 공개 메소드

Implementation of the IPainter Resize method
public Resize ( ) : void
리턴 void