Esempio n. 1
0
            public override void DrawAfterEol(Mono.TextEditor.TextEditor textEditor, Cairo.Context cr, double y, EndOfLineMetrics lineHeight)
            {
                using (var pango = cr.CreateLayout()) {
                    pango.FontDescription = textEditor.Options.Font;
                    cr.SetSourceColor(bg);

                    pango.SetText(hits.ToString());

                    cr.MoveTo(lineHeight.TextRenderEndPosition, y);
                    cr.ShowLayout(pango);
                }

                base.DrawAfterEol(textEditor, cr, y, lineHeight);
            }