C# Класс Alsing.Windows.Forms.SyntaxBox.Painter.NativePainter

Painter class that uses GDI32 to render the content of a SyntaxBoxControl
Наследование: IPainter
Показать файл Открыть проект

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

Метод Описание
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