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
Afficher le fichier Open project: sillsdev/FieldWorks

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

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

Dispose() public méthode

Must not be virtual.
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

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
Résultat void

DrawGlyphs() public méthode

public DrawGlyphs ( int x, int y, int cgi, GlyphInfo _rggi ) : void
x int
y int
cgi int
_rggi GlyphInfo
Résultat void

DrawHorzLine() public méthode

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
Résultat void

DrawLine() public méthode

public DrawLine ( int xLeft, int yTop, int xRight, int yBottom ) : void
xLeft int
yTop int
xRight int
yBottom int
Résultat void

DrawPolygon() public méthode

public DrawPolygon ( int cvpnt, System.Point _rgvpnt ) : void
cvpnt int
_rgvpnt System.Point
Résultat void

DrawRectangle() public méthode

public DrawRectangle ( int xLeft, int yTop, int xRight, int yBottom ) : void
xLeft int
yTop int
xRight int
yBottom int
Résultat void

DrawText() public méthode

public DrawText ( int x, int y, int cch, string _rgch, int xStretch ) : void
x int
y int
cch int
_rgch string
xStretch int
Résultat void

GetClipRect() public méthode

public GetClipRect ( int &_xLeft, int &_yTop, int &_xRight, int &_yBottom ) : void
_xLeft int
_yTop int
_xRight int
_yBottom int
Résultat void

GetDeviceContext() public méthode

public GetDeviceContext ( ) : IntPtr
Résultat System.IntPtr

GetFontData() public méthode

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

GetFontEmSquare() public méthode

public GetFontEmSquare ( ) : int
Résultat int

GetGlyphMetrics() public méthode

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
Résultat void

GetSubscriptHeightRatio() public méthode

public GetSubscriptHeightRatio ( int &numerator, int &denominator ) : void
numerator int
denominator int
Résultat void

GetSubscriptYOffsetRatio() public méthode

public GetSubscriptYOffsetRatio ( int &numerator, int &denominator ) : void
numerator int
denominator int
Résultat void

GetSuperscriptHeightRatio() public méthode

public GetSuperscriptHeightRatio ( int &numerator, int &denominator ) : void
numerator int
denominator int
Résultat void

GetSuperscriptYOffsetRatio() public méthode

public GetSuperscriptYOffsetRatio ( int &numerator, int &denominator ) : void
numerator int
denominator int
Résultat void

GetTextExtent() public méthode

public GetTextExtent ( int cch, string _rgch, int &_x, int &_y ) : void
cch int
_rgch string
_x int
_y int
Résultat void

GetTextLeadWidth() public méthode

public GetTextLeadWidth ( int cch, string _rgch, int ich, int xStretch ) : int
cch int
_rgch string
ich int
xStretch int
Résultat int

GetTextStyleContext() public méthode

public GetTextStyleContext ( ) : IntPtr
Résultat System.IntPtr

Initialize() public méthode

public Initialize ( System hdc ) : void
hdc System
Résultat void

InvertRect() public méthode

public InvertRect ( int xLeft, int yTop, int xRight, int yBottom ) : void
xLeft int
yTop int
xRight int
yBottom int
Résultat void

MakePicture() public méthode

public MakePicture ( byte _bData, int cbData ) : IPicture
_bData byte
cbData int
Résultat IPicture

PopClipRect() public méthode

public PopClipRect ( ) : void
Résultat void

PushClipRect() public méthode

public PushClipRect ( SIL.FieldWorks.Common.Utils.Rect rcClip ) : void
rcClip SIL.FieldWorks.Common.Utils.Rect
Résultat void

ReleaseDC() public méthode

public ReleaseDC ( ) : void
Résultat void

RenderPicture() public méthode

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
Résultat void

SetClipRect() public méthode

public SetClipRect ( SIL.FieldWorks.Common.Utils.Rect &_rcClip ) : void
_rcClip SIL.FieldWorks.Common.Utils.Rect
Résultat void

SetMeasureDc() public méthode

public SetMeasureDc ( System hdc ) : void
hdc System
Résultat void

SetupGraphics() public méthode

public SetupGraphics ( LgCharRenderProps &_chrp ) : void
_chrp LgCharRenderProps
Résultat void

XYFromGlyphPoint() public méthode

public XYFromGlyphPoint ( int chw, int nPoint, int &_xRet, int &_yRet ) : void
chw int
nPoint int
_xRet int
_yRet int
Résultat void