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

            if (win.Visible)
            {
                win.Visible = false;
                RefreshAll();
            }
        }
示例#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;
 }
示例#10
0
 public static string GetLine(Window win, string s)
 {
     return win.GetLine(s, -1);
 }
示例#11
0
 public static string GetLine(Window win, string s, int maxChars)
 {
     return win.GetLine(s, maxChars);
 }
示例#12
0
 public static string GetLine(Window win)
 {
     return win.GetLine("", -1);
 }
示例#13
0
 public static KeyInfo GetKey(Window win, bool echo)
 {
     return win.GetKey(echo);
 }
示例#14
0
 public static KeyInfo GetKey(Window win)
 {
     return win.GetKey(false);
 }
示例#15
0
 public static void Refresh(Window win)
 {
     win.Refresh();
 }
示例#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;
 }
示例#17
0
 public static int RunMenu(Window win, IEnumerable items)
 {
     return win.RunMenu(items, null);
 }
示例#18
0
 public static void Move(Window win, int col, int row)
 {
     win.Move(col, row);
 }
示例#19
0
 public static void Scroll(Window win, int count)
 {
     Scroll(win,0,-1,count);
 }
示例#20
0
 public static void OutRefresh(Window win)
 {
     win.OutRefresh();
 }
示例#21
0
 public static void ScrollOk(Window win, bool flag)
 {
     win.ScrollOk(flag);
 }
示例#22
0
 public static void Put(Window w, char ch)
 {
     w.Put(ch);
 }
示例#23
0
 public static void SetBufferPos(Window win,int x,int y)
 {
     win.SetBufferPos(x, y);
 }
示例#24
0
 public static void PutLine(Window w)
 {
     w.PutLine();
 }
示例#25
0
 public static void Show(Window win)
 {
     if (!win.Visible)
     {
         win.Visible = true;
         RefreshAll();
     }
 }
示例#26
0
 public static void PutLine(Window w, string s)
 {
     w.PutLine(s);
 }
示例#27
0
 public static bool Standout(Window win, bool flag)
 {
     return win.Standout(flag);
 }
示例#28
0
 public static void PutLine(Window w, char ch)
 {
     w.PutLine(ch);
 }
示例#29
0
 internal static void Unregister(Window win)
 {
     WindowList.Remove(win);
 }
示例#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;
 }