Ejemplo n.º 1
0
 public TerminalEmulator(int cols, int lines)
 {
     _inv_lock = new object();
     _font = new FontGroup(new Font[] { new UnicodeFont(new System.Drawing.Font("Consolas", 16.0F), new PointF()) }, new SizeF(10.0F, 20.0F));
     _chars = new TerminalChars(this, cols, lines);
     SetStyle(ControlStyles.ResizeRedraw, true);
     DoubleBuffered = true;
     InitializeComponent();
 }
Ejemplo n.º 2
0
 internal override void Draw(System.Drawing.Graphics graphics, FontGroup font, System.Drawing.RectangleF rec)
 {
     if (!br.ContainsKey(bgcolor))
         br[bgcolor] = new SolidBrush(bgcolor);
     graphics.FillRectangle(br[bgcolor], rec);
 }
Ejemplo n.º 3
0
 internal override void Draw(System.Drawing.Graphics graphics, FontGroup font, System.Drawing.RectangleF rec)
 {
     base.Draw(graphics, font, rec);
     if (!br.ContainsKey(fgcolor))
         br[fgcolor] = new SolidBrush(fgcolor);
     foreach (Font f in font.Fonts)
     {
         if (f.Accept(value))
         {
             rec.X += f.Offset.X;
             rec.Y += f.Offset.Y;
             graphics.DrawString(value.ToString(), f.GetFont, br[fgcolor], rec, format);
             break;
         }
     }
 }
Ejemplo n.º 4
0
 internal abstract void Draw(System.Drawing.Graphics graphics, FontGroup font, System.Drawing.RectangleF rec);
Ejemplo n.º 5
0
 internal override void Draw(System.Drawing.Graphics graphics, FontGroup _font, System.Drawing.RectangleF rec)
 {
 }