public override void Visit(IFrameEnd msg) { base.Visit(msg); DrawTime(msg); RectangleF r = m.OffsetTextRect; if (TextLineIdx == 0) { ctx.Canvas.DrawString("}", ctx.Font, ctx.InfoMessagesBrush, r.X, r.Y); } if (msg.Start != null) { r.X += ctx.CharSize.Width * 2; Brush commentsBrush = ctx.CommentsBrush; ctx.Canvas.DrawString("//", ctx.Font, commentsBrush, r.X, r.Y); r.X += ctx.CharSize.Width * 3; DrawStringWithInplaceHightlight(msg, commentsBrush, r.Location); } DrawCursorIfNeeded(msg); FillOutlineBackground(); DrawFrameEndOutline(msg); }
void DrawFrameEndOutline(IFrameEnd msg) { if (IsBookmarked) { Image icon = ctx.BookmarkIcon; ctx.Canvas.DrawImage(icon, (ctx.CollapseBoxesAreaSize - icon.Width) / 2, m.MessageRect.Y + (ctx.LineHeight - icon.Height) / 2, icon.Width, icon.Height ); } }
public virtual void Visit(IFrameEnd msg) { HandleMessageText(msg, ctx.CharSize.Width * 5); }
void IFrameBegin.SetEnd(IFrameEnd e) { end = e; }