Exemple #1
0
 public static char GetChar(Window win)
 {
     return win.GetChar();
 }
Exemple #2
0
 public static bool Standout(Window win)
 {
     return win.Standout();
 }
Exemple #3
0
 internal static void Register(Window win)
 {
     WindowList.Add(win);
 }
Exemple #4
0
 public static int SelectKey(Window win, params Keys[] keys)
 {
     return win.SelectKey(keys);
 }
Exemple #5
0
 public static void SetScreenPos(Window win,int x,int y)
 {
     if (win.SetWindowPos(x, y))
     {
         RefreshAll();
     }
 }
Exemple #6
0
 public static int RunMenu(Window win, IEnumerable items, IApply handler)
 {
     return win.RunMenu(items, handler);
 }
Exemple #7
0
 public static void Scroll(Window win, int top,int height,int count)
 {
     win.Scroll( top, height, count);
 }
Exemple #8
0
        public static void Hide(Window win)
        {
            if (win == StdScr)
            {
                return;
            }

            if (win.Visible)
            {
                win.Visible = false;
                RefreshAll();
            }
        }
Exemple #9
0
 public static Window MakeWindow(int x, int y, int w, int h, int maxh)
 {
     CheckBounds(ref x, ref y, ref w, ref h, Terminal.Width, Terminal.Height);
     maxh = Math.Max(h, maxh);
     var pad = new Buffer(w, maxh);
     var win = new Window(x, y, pad, 0, 0, w, h);
     Register(win);
     return win;
 }
Exemple #10
0
 public static string GetLine(Window win, string s)
 {
     return win.GetLine(s, -1);
 }
Exemple #11
0
 public static string GetLine(Window win, string s, int maxChars)
 {
     return win.GetLine(s, maxChars);
 }
Exemple #12
0
 public static string GetLine(Window win)
 {
     return win.GetLine("", -1);
 }
Exemple #13
0
 public static KeyInfo GetKey(Window win, bool echo)
 {
     return win.GetKey(echo);
 }
Exemple #14
0
 public static KeyInfo GetKey(Window win)
 {
     return win.GetKey(false);
 }
Exemple #15
0
 public static void Refresh(Window win)
 {
     win.Refresh();
 }
Exemple #16
0
 public static Window MakeWindow(Window orig, int x, int y, int w, int h)
 {
     CheckBounds(ref x, ref y, ref w, ref h, orig.Width, orig.Height);
     var win = new Window(orig.ScreenLeft + x, orig.ScreenTop + y, orig.Buffer, x, y, w, h);
     Register(win);
     return win;
 }
Exemple #17
0
 public static int RunMenu(Window win, IEnumerable items)
 {
     return win.RunMenu(items, null);
 }
Exemple #18
0
 public static void Move(Window win, int col, int row)
 {
     win.Move(col, row);
 }
Exemple #19
0
 public static void Scroll(Window win, int count)
 {
     Scroll(win,0,-1,count);
 }
Exemple #20
0
 public static void OutRefresh(Window win)
 {
     win.OutRefresh();
 }
Exemple #21
0
 public static void ScrollOk(Window win, bool flag)
 {
     win.ScrollOk(flag);
 }
Exemple #22
0
 public static void Put(Window w, char ch)
 {
     w.Put(ch);
 }
Exemple #23
0
 public static void SetBufferPos(Window win,int x,int y)
 {
     win.SetBufferPos(x, y);
 }
Exemple #24
0
 public static void PutLine(Window w)
 {
     w.PutLine();
 }
Exemple #25
0
 public static void Show(Window win)
 {
     if (!win.Visible)
     {
         win.Visible = true;
         RefreshAll();
     }
 }
Exemple #26
0
 public static void PutLine(Window w, string s)
 {
     w.PutLine(s);
 }
Exemple #27
0
 public static bool Standout(Window win, bool flag)
 {
     return win.Standout(flag);
 }
Exemple #28
0
 public static void PutLine(Window w, char ch)
 {
     w.PutLine(ch);
 }
Exemple #29
0
 internal static void Unregister(Window win)
 {
     WindowList.Remove(win);
 }
Exemple #30
0
 public static object ForeColor(Window win, object color)
 {
     if (color == null)
     {
         return null;
     }
     var fg = win.ForeColor;
     win.ForeColor = new ColorType(color);
     return fg;
 }