C# Class SIL.FieldWorks.TE.DraftViews.DummyGraphics

Implement IVwGraphicsWin32 so that we can store the HDC that gets passed in and later return it.
Inheritance: IVwGraphicsWin32, IFWDisposable
ファイルを表示 Open project: sillsdev/FieldWorks

Public Methods

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

Protected Methods

Method Description
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.

Method Details

CheckDisposed() public method

Check to see if the object has been disposed. All public Properties and Methods should call this before doing anything else.
public CheckDisposed ( ) : void
return void

Dispose() public method

Must not be virtual.
public Dispose ( ) : void
return void

Dispose() protected method

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

DrawGlyphs() public method

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

DrawHorzLine() public method

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

DrawLine() public method

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

DrawPolygon() public method

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

DrawRectangle() public method

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

DrawText() public method

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

GetClipRect() public method

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

GetDeviceContext() public method

public GetDeviceContext ( ) : IntPtr
return System.IntPtr

GetFontData() public method

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

GetFontEmSquare() public method

public GetFontEmSquare ( ) : int
return int

GetGlyphMetrics() public method

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

GetSubscriptHeightRatio() public method

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

GetSubscriptYOffsetRatio() public method

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

GetSuperscriptHeightRatio() public method

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

GetSuperscriptYOffsetRatio() public method

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

GetTextExtent() public method

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

GetTextLeadWidth() public method

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

GetTextStyleContext() public method

public GetTextStyleContext ( ) : IntPtr
return System.IntPtr

Initialize() public method

public Initialize ( System hdc ) : void
hdc System
return void

InvertRect() public method

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

MakePicture() public method

public MakePicture ( byte _bData, int cbData ) : IPicture
_bData byte
cbData int
return IPicture

PopClipRect() public method

public PopClipRect ( ) : void
return void

PushClipRect() public method

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

ReleaseDC() public method

public ReleaseDC ( ) : void
return void

RenderPicture() public method

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

SetClipRect() public method

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

SetMeasureDc() public method

public SetMeasureDc ( System hdc ) : void
hdc System
return void

SetupGraphics() public method

public SetupGraphics ( LgCharRenderProps &_chrp ) : void
_chrp LgCharRenderProps
return void

XYFromGlyphPoint() public method

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