C# Класс SIL.FieldWorks.TE.DraftViews.DummyGraphics

Implement IVwGraphicsWin32 so that we can store the HDC that gets passed in and later return it.
Наследование: IVwGraphicsWin32, IFWDisposable
Показать файл Открыть проект

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

Метод Описание
CheckDisposed ( ) : void

Check to see if the object has been disposed. All public Properties and Methods should call this before doing anything else.

Dispose ( ) : void

Must not be virtual.

DrawGlyphs ( int x, int y, int cgi, GlyphInfo _rggi ) : void

DrawHorzLine ( int xLeft, int xRight, int y, int dyHeight, int cdx, int _rgdx, int &_dxStart ) : void

DrawLine ( int xLeft, int yTop, int xRight, int yBottom ) : void

DrawPolygon ( int cvpnt, System.Point _rgvpnt ) : void

DrawRectangle ( int xLeft, int yTop, int xRight, int yBottom ) : void

DrawText ( int x, int y, int cch, string _rgch, int xStretch ) : void

GetClipRect ( int &_xLeft, int &_yTop, int &_xRight, int &_yBottom ) : void

GetDeviceContext ( ) : IntPtr

GetFontData ( int nTableId, int &_cbTableSz, SIL.FieldWorks.Common.COMInterfaces.ArrayPtr _rgb ) : void

GetFontEmSquare ( ) : int

GetGlyphMetrics ( int chw, int &_sBoundingWidth, int &_yBoundingHeight, int &_xBoundingX, int &_yBoundingY, int &_xAdvanceX, int &_yAdvanceY ) : void

GetSubscriptHeightRatio ( int &numerator, int &denominator ) : void

GetSubscriptYOffsetRatio ( int &numerator, int &denominator ) : void

GetSuperscriptHeightRatio ( int &numerator, int &denominator ) : void

GetSuperscriptYOffsetRatio ( int &numerator, int &denominator ) : void

GetTextExtent ( int cch, string _rgch, int &_x, int &_y ) : void

GetTextLeadWidth ( int cch, string _rgch, int ich, int xStretch ) : int

GetTextStyleContext ( ) : IntPtr

Initialize ( System hdc ) : void

InvertRect ( int xLeft, int yTop, int xRight, int yBottom ) : void

MakePicture ( byte _bData, int cbData ) : IPicture

PopClipRect ( ) : void

PushClipRect ( SIL.FieldWorks.Common.Utils.Rect rcClip ) : void

ReleaseDC ( ) : void

RenderPicture ( IPicture _pic, int x, int y, int cx, int cy, int xSrc, int ySrc, int cxSrc, int cySrc, SIL.FieldWorks.Common.Utils.Rect &_rcWBounds ) : void

SetClipRect ( SIL.FieldWorks.Common.Utils.Rect &_rcClip ) : void

SetMeasureDc ( System hdc ) : void

SetupGraphics ( LgCharRenderProps &_chrp ) : void

XYFromGlyphPoint ( int chw, int nPoint, int &_xRet, int &_yRet ) : void

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

Метод Описание
Dispose ( bool disposing ) : void

Executes in two distinct scenarios. 1. If disposing is true, the method has been called directly or indirectly by a user's code via the Dispose method. Both managed and unmanaged resources can be disposed. 2. If disposing is false, the method has been called by the runtime from inside the finalizer and you should not reference (access) other managed objects, as they already have been garbage collected. Only unmanaged resources can be disposed.

If any exceptions are thrown, that is fine. If the method is being done in a finalizer, it will be ignored. If it is thrown by client code calling Dispose, it needs to be handled by fixing the bug. If subclasses override this method, they should call the base implementation.

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

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

Check to see if the object has been disposed. All public Properties and Methods should call this before doing anything else.
public CheckDisposed ( ) : void
Результат void

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

Must not be virtual.
public Dispose ( ) : void
Результат void

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

Executes in two distinct scenarios. 1. If disposing is true, the method has been called directly or indirectly by a user's code via the Dispose method. Both managed and unmanaged resources can be disposed. 2. If disposing is false, the method has been called by the runtime from inside the finalizer and you should not reference (access) other managed objects, as they already have been garbage collected. Only unmanaged resources can be disposed.
If any exceptions are thrown, that is fine. If the method is being done in a finalizer, it will be ignored. If it is thrown by client code calling Dispose, it needs to be handled by fixing the bug. If subclasses override this method, they should call the base implementation.
protected Dispose ( bool disposing ) : void
disposing bool
Результат void

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

public DrawGlyphs ( int x, int y, int cgi, GlyphInfo _rggi ) : void
x int
y int
cgi int
_rggi GlyphInfo
Результат void

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

public DrawHorzLine ( int xLeft, int xRight, int y, int dyHeight, int cdx, int _rgdx, int &_dxStart ) : void
xLeft int
xRight int
y int
dyHeight int
cdx int
_rgdx int
_dxStart int
Результат void

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

public DrawLine ( int xLeft, int yTop, int xRight, int yBottom ) : void
xLeft int
yTop int
xRight int
yBottom int
Результат void

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

public DrawPolygon ( int cvpnt, System.Point _rgvpnt ) : void
cvpnt int
_rgvpnt System.Point
Результат void

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

public DrawRectangle ( int xLeft, int yTop, int xRight, int yBottom ) : void
xLeft int
yTop int
xRight int
yBottom int
Результат void

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

public DrawText ( int x, int y, int cch, string _rgch, int xStretch ) : void
x int
y int
cch int
_rgch string
xStretch int
Результат void

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

public GetClipRect ( int &_xLeft, int &_yTop, int &_xRight, int &_yBottom ) : void
_xLeft int
_yTop int
_xRight int
_yBottom int
Результат void

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

public GetDeviceContext ( ) : IntPtr
Результат System.IntPtr

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

public GetFontData ( int nTableId, int &_cbTableSz, SIL.FieldWorks.Common.COMInterfaces.ArrayPtr _rgb ) : void
nTableId int
_cbTableSz int
_rgb SIL.FieldWorks.Common.COMInterfaces.ArrayPtr
Результат void

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

public GetFontEmSquare ( ) : int
Результат int

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

public GetGlyphMetrics ( int chw, int &_sBoundingWidth, int &_yBoundingHeight, int &_xBoundingX, int &_yBoundingY, int &_xAdvanceX, int &_yAdvanceY ) : void
chw int
_sBoundingWidth int
_yBoundingHeight int
_xBoundingX int
_yBoundingY int
_xAdvanceX int
_yAdvanceY int
Результат void

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

public GetSubscriptHeightRatio ( int &numerator, int &denominator ) : void
numerator int
denominator int
Результат void

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

public GetSubscriptYOffsetRatio ( int &numerator, int &denominator ) : void
numerator int
denominator int
Результат void

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

public GetSuperscriptHeightRatio ( int &numerator, int &denominator ) : void
numerator int
denominator int
Результат void

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

public GetSuperscriptYOffsetRatio ( int &numerator, int &denominator ) : void
numerator int
denominator int
Результат void

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

public GetTextExtent ( int cch, string _rgch, int &_x, int &_y ) : void
cch int
_rgch string
_x int
_y int
Результат void

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

public GetTextLeadWidth ( int cch, string _rgch, int ich, int xStretch ) : int
cch int
_rgch string
ich int
xStretch int
Результат int

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

public GetTextStyleContext ( ) : IntPtr
Результат System.IntPtr

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

public Initialize ( System hdc ) : void
hdc System
Результат void

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

public InvertRect ( int xLeft, int yTop, int xRight, int yBottom ) : void
xLeft int
yTop int
xRight int
yBottom int
Результат void

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

public MakePicture ( byte _bData, int cbData ) : IPicture
_bData byte
cbData int
Результат IPicture

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

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

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

public PushClipRect ( SIL.FieldWorks.Common.Utils.Rect rcClip ) : void
rcClip SIL.FieldWorks.Common.Utils.Rect
Результат void

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

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

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

public RenderPicture ( IPicture _pic, int x, int y, int cx, int cy, int xSrc, int ySrc, int cxSrc, int cySrc, SIL.FieldWorks.Common.Utils.Rect &_rcWBounds ) : void
_pic IPicture
x int
y int
cx int
cy int
xSrc int
ySrc int
cxSrc int
cySrc int
_rcWBounds SIL.FieldWorks.Common.Utils.Rect
Результат void

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

public SetClipRect ( SIL.FieldWorks.Common.Utils.Rect &_rcClip ) : void
_rcClip SIL.FieldWorks.Common.Utils.Rect
Результат void

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

public SetMeasureDc ( System hdc ) : void
hdc System
Результат void

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

public SetupGraphics ( LgCharRenderProps &_chrp ) : void
_chrp LgCharRenderProps
Результат void

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

public XYFromGlyphPoint ( int chw, int nPoint, int &_xRet, int &_yRet ) : void
chw int
nPoint int
_xRet int
_yRet int
Результат void