public void dbug_AddDrawElement(RenderElement visualElement, DrawBoard currentCanvas, string additionalMsg) { StringBuilder stBuilder = new StringBuilder(); stBuilder.Append(new string('.', dbug_drawLevel)); stBuilder.Append("[" + dbug_drawLevel + "] c_" + currentCanvas.debug_canvas_id + " "); stBuilder.Append(visualElement.dbug_FullElementDescription()); Rectangle r = visualElement.dbugGetGlobalRect(); stBuilder.Append(" global(" + r.X + "," + r.Y + "," + r.Width + "," + r.Height + ")"); Rectangle currentClipRect = currentCanvas.CurrentClipRect; stBuilder.Append(" clip(" + currentClipRect.X + "," + currentClipRect.Y + "," + currentClipRect.Width + "," + currentClipRect.Height + ") "); if (visualElement.dbugParentVisualElement != null) { stBuilder.Append(" of " + visualElement.dbugParentVisualElement.dbug_FullElementDescription()); } dbug_rootDrawingMsg.AddLast(new dbugLayoutMsg(visualElement, stBuilder.ToString())); if (additionalMsg != null) { stBuilder.Length = 0; stBuilder.Append(new string('.', dbug_drawLevel)); stBuilder.Append("[" + dbug_drawLevel + "] c:" + currentCanvas.debug_canvas_id + " "); stBuilder.Append(visualElement.dbug_FullElementDescription()); dbug_rootDrawingMsg.AddLast(new dbugLayoutMsg(visualElement, stBuilder.ToString())); } }
public void WriteInfo(RenderElement v, string info, string indentPrefix, string indentPostfix) { ++msgLineNum; ShouldBreak(); strmWriter.Write(new string('\t', indentCount)); strmWriter.Write(indentPrefix + indentCount + indentPostfix + info + " "); strmWriter.Write(v.dbug_FullElementDescription()); strmWriter.Write("\r\n"); strmWriter.Flush(); }
public void WriteInfo(string info, RenderElement v) { ++msgLineNum; ShouldBreak(); strmWriter.Write(new string('\t', indentCount)); strmWriter.Write(info); strmWriter.Write(v.dbug_FullElementDescription()); strmWriter.Write("\r\n"); strmWriter.Flush(); }
public void WriteInfo(string info, RenderElement ve) { ++msgCounter; ShouldBreak(); strmWriter.Write(new string('\t', indentCount)); strmWriter.Write(info); strmWriter.Write(ve.dbug_FullElementDescription()); strmWriter.Write("\r\n"); strmWriter.Flush(); }
public void dbug_AddDrawElement(RenderElement visualElement, Canvas currentCanvas, string additionalMsg) { StringBuilder stBuilder = new StringBuilder(); stBuilder.Append(new string('.', dbug_drawLevel)); stBuilder.Append("[" + dbug_drawLevel + "] c_" + currentCanvas.debug_canvas_id + " "); stBuilder.Append(visualElement.dbug_FullElementDescription()); Rectangle r = visualElement.dbugGetGlobalRect(); stBuilder.Append(" global(" + r.X + "," + r.Y + "," + r.Width + "," + r.Height + ")"); Rectangle currentClipRect = currentCanvas.CurrentClipRect; stBuilder.Append(" clip(" + currentClipRect.X + "," + currentClipRect.Y + "," + currentClipRect.Width + "," + currentClipRect.Height + ") "); if (visualElement.dbugParentVisualElement != null) { stBuilder.Append(" of " + visualElement.dbugParentVisualElement.dbug_FullElementDescription()); } dbug_rootDrawingMsg.AddLast(new dbugLayoutMsg(visualElement, stBuilder.ToString())); if (additionalMsg != null) { stBuilder.Length = 0; stBuilder.Append(new string('.', dbug_drawLevel)); stBuilder.Append("[" + dbug_drawLevel + "] c:" + currentCanvas.debug_canvas_id + " "); stBuilder.Append(visualElement.dbug_FullElementDescription()); dbug_rootDrawingMsg.AddLast(new dbugLayoutMsg(visualElement, stBuilder.ToString())); } }