C# Class SIL.FieldWorks.SharpViews.SharpViewsTests.MockGraphics

Inheritance: IVwGraphics
Mostrar archivo Open project: sillsdev/FieldWorks Class Usage Examples

Public Properties

Property Type Description
ClipRectangle System.Drawing.Rectangle
LastRenderPictureArgs RenderPictureArgs

Private Properties

Property Type Description

Public Methods

Method Description
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, 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
DrawTextExt ( int x, int y, int cch, string _rgchw, uint uOptions, Rect &_rect, int _rgdx ) : void
GetClipRect ( int &xLeft, int &yTop, int &xRight, int &yBottom ) : void
GetFontData ( int nTableId, int &_cbTableSz ) : string
GetFontDataRgch ( int nTableId, int &_cbTableSz, SIL.FieldWorks.Common.COMInterfaces.ArrayPtr _rgch, int cchMax ) : void
GetFontEmSquare ( ) : int
GetGlyphMetrics ( int chw, int &_sBoundingWidth, int &_yBoundingHeight, int &_xBoundingX, int &_yBoundingY, int &_xAdvanceX, int &_yAdvanceY ) : void
GetSubscriptHeightRatio ( int &_iNumerator, int &_iDenominator ) : void
GetSubscriptYOffsetRatio ( int &_iNumerator, int &_iDenominator ) : void
GetSuperscriptHeightRatio ( int &_iNumerator, int &_iDenominator ) : void
GetSuperscriptYOffsetRatio ( int &_iNumerator, int &_iDenominator ) : void
GetTextExtent ( int cch, string _rgch, int &_x, int &_y ) : void
GetTextLeadWidth ( int cch, string _rgch, int ich, int xStretch ) : int
InvertRect ( int xLeft, int yTop, int xRight, int yBottom ) : void
MakePicture ( byte _bData, int cbData ) : IPicture
MockGraphics ( ) : System
PopClipRect ( ) : void
PushClipRect ( Rect rcClip ) : void
ReleaseDC ( ) : void
RenderPicture ( IPicture pic, int x, int y, int cx, int cy, int xSrc, int ySrc, int cxSrc, int cySrc, Rect &rcWBounds ) : void
SetupGraphics ( LgCharRenderProps &_chrp ) : void
XYFromGlyphPoint ( int chw, int nPoint, int &_xRet, int &_yRet ) : void

Method Details

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, Point _rgvpnt ) : void
cvpnt int
_rgvpnt 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

DrawTextExt() public method

public DrawTextExt ( int x, int y, int cch, string _rgchw, uint uOptions, Rect &_rect, int _rgdx ) : void
x int
y int
cch int
_rgchw string
uOptions uint
_rect Rect
_rgdx 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

GetFontData() public method

public GetFontData ( int nTableId, int &_cbTableSz ) : string
nTableId int
_cbTableSz int
return string

GetFontDataRgch() public method

public GetFontDataRgch ( int nTableId, int &_cbTableSz, SIL.FieldWorks.Common.COMInterfaces.ArrayPtr _rgch, int cchMax ) : void
nTableId int
_cbTableSz int
_rgch SIL.FieldWorks.Common.COMInterfaces.ArrayPtr
cchMax int
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 &_iNumerator, int &_iDenominator ) : void
_iNumerator int
_iDenominator int
return void

GetSubscriptYOffsetRatio() public method

public GetSubscriptYOffsetRatio ( int &_iNumerator, int &_iDenominator ) : void
_iNumerator int
_iDenominator int
return void

GetSuperscriptHeightRatio() public method

public GetSuperscriptHeightRatio ( int &_iNumerator, int &_iDenominator ) : void
_iNumerator int
_iDenominator int
return void

GetSuperscriptYOffsetRatio() public method

public GetSuperscriptYOffsetRatio ( int &_iNumerator, int &_iDenominator ) : void
_iNumerator int
_iDenominator 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

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

MockGraphics() public method

public MockGraphics ( ) : System
return System

PopClipRect() public method

public PopClipRect ( ) : void
return void

PushClipRect() public method

public PushClipRect ( Rect rcClip ) : void
rcClip 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, Rect &rcWBounds ) : void
pic IPicture
x int
y int
cx int
cy int
xSrc int
ySrc int
cxSrc int
cySrc int
rcWBounds Rect
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

Property Details

ClipRectangle public_oe property

public Rectangle,System.Drawing ClipRectangle
return System.Drawing.Rectangle

LastRenderPictureArgs public_oe property

public RenderPictureArgs LastRenderPictureArgs
return RenderPictureArgs