public void DrawInsertionPoint(int ichBase, IVwGraphics _vg, Rect rcSrc, Rect rcDst, int ich, bool fAssocPrev, bool fOn, LgIPDrawMode dm) { LastDrawIpCall = new DrawInsertionPointArgs { IchBase = ichBase, Graphics = _vg, RcSrc = rcSrc, RcDst = rcDst, Ich = ich, AssocPrev = fAssocPrev, On = fOn, DrawMode = dm }; }
public void PositionsOfIP(int ichBase, IVwGraphics _vg, Rect rcSrc, Rect rcDst, int ich, bool fAssocPrev, LgIPDrawMode dm, out Rect rectPrimary, out Rect rectSecondary, out bool fPrimaryHere, out bool fSecHere) { LastPosIpCall = new PositionsOfIpArgs(); LastPosIpCall.IchBase = ichBase; LastPosIpCall.Graphics = _vg; LastPosIpCall.RcSrc = rcSrc; LastPosIpCall.RcDst = rcDst; LastPosIpCall.Ich = ich; LastPosIpCall.AssocPrev = fAssocPrev; LastPosIpCall.DrawMode = dm; if (NextPosIpResult != null) { rectPrimary = NextPosIpResult.RectPrimary; rectSecondary = new Rect(); // NextPosIpResult.RectSecondary; fPrimaryHere = NextPosIpResult.PrimaryHere; fSecHere = false; // NextPosIpResult.SecHere; } else { rectPrimary = new Rect(0,0,0,0); rectSecondary = new Rect(0,0,0,0); fPrimaryHere = true; // useful result when we don't care to prepare for this call. fSecHere = false; } }
public void PositionsOfIP(int ichBase, IVwGraphics _vg, Rect rcSrc, Rect rcDst, int ich, bool fAssocPrev, LgIPDrawMode dm, out Rect rectPrimary, out Rect rectSecondary, out bool fPrimaryHere, out bool fSecHere) { LastPosIpCall = new PositionsOfIpArgs(); LastPosIpCall.IchBase = ichBase; LastPosIpCall.Graphics = _vg; LastPosIpCall.RcSrc = rcSrc; LastPosIpCall.RcDst = rcDst; LastPosIpCall.Ich = ich; LastPosIpCall.AssocPrev = fAssocPrev; LastPosIpCall.DrawMode = dm; if (NextPosIpResult != null) { rectPrimary = NextPosIpResult.RectPrimary; rectSecondary = new Rect(); // NextPosIpResult.RectSecondary; fPrimaryHere = NextPosIpResult.PrimaryHere; fSecHere = false; // NextPosIpResult.SecHere; } else { rectPrimary = new Rect(0, 0, 0, 0); rectSecondary = new Rect(0, 0, 0, 0); fPrimaryHere = true; // useful result when we don't care to prepare for this call. fSecHere = false; } }
public void PositionsOfIP(int ichBase, IVwGraphics _vg, Rect rcSrc, Rect rcDst, int ich, bool fAssocPrev, LgIPDrawMode dm, out Rect rectPrimary, out Rect rectSecondary, out bool _fPrimaryHere, out bool _fSecHere) { throw new NotImplementedException(); }
public void DrawInsertionPoint(int ichBase, IVwGraphics _vg, Rect rcSrc, Rect rcDst, int ich, bool fAssocPrev, bool fOn, LgIPDrawMode dm) { throw new NotImplementedException(); }
public void PositionsOfIP(int ichBase, IVwGraphics _vg, Rect rcSrc, Rect rcDst, int ich, bool fAssocPrev, LgIPDrawMode dm, out Rect rectPrimary, out Rect rectSecondary, out bool fPrimaryHere, out bool fSecHere) { LastPosIpCall = new MockSegment.PositionsOfIpArgs(); LastPosIpCall.IchBase = ichBase; LastPosIpCall.Graphics = _vg; LastPosIpCall.RcSrc = rcSrc; LastPosIpCall.RcDst = rcDst; LastPosIpCall.Ich = ich; LastPosIpCall.AssocPrev = fAssocPrev; LastPosIpCall.DrawMode = dm; if (NextPosIpResult != null) { rectPrimary = NextPosIpResult.RectPrimary; rectSecondary = new Rect(); // NextPosIpResult.RectSecondary; fPrimaryHere = NextPosIpResult.PrimaryHere; fSecHere = false; // NextPosIpResult.SecHere; } else { rectPrimary = new Rect(0, 0, 0, 0); rectSecondary = new Rect(0, 0, 0, 0); fSecHere = false; if (ich < ichBase || ich > ichBase + Length) { fPrimaryHere = false; return; } fPrimaryHere = true; // useful result when we don't care to prepare for this call. int width = 0; for (int i = 0; i < ich - ichBase; i++) { width += FakeRenderEngine.CharWidth(Text[i]); } rectPrimary = PaintTransform.ConvertToPaint(new Rect(width - 1, 0, width + 1, Height), rcSrc, rcDst); } }