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
파일 보기 프로젝트 열기: sillsdev/FieldWorks

공개 메소드들

메소드 설명
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