Exemplo n.º 1
0
 public int box(int vAttrs, int hAttrs) => Curse.box(Handle, vAttrs, hAttrs);
Exemplo n.º 2
0
 public int box(WinAttribute vAttrs, WinAttribute hAttrs) => Curse.box(Handle, (int)vAttrs, (int)hAttrs);
Exemplo n.º 3
0
 public int SetColor(ColorPair pair) => Curse.wbkgd(Handle, Curse.ColorPair(pair.pairId));
Exemplo n.º 4
0
 public int Refresh() => Curse.wrefresh(Handle);
Exemplo n.º 5
0
 static Window()
 {
     Curse.initscr();
     Standar = new Window(Curse.consoleGetStdscr(), Curse.Lines, Curse.Cols);
     Current = new Window(Curse.consoleGetCurscr());
 }
Exemplo n.º 6
0
 public int SetColor(int colorPairId) => Curse.wbkgd(Handle, Curse.ColorPair(colorPairId));
Exemplo n.º 7
0
 public int Attroff(int attrs) => Curse.wattroff(Handle, attrs);
Exemplo n.º 8
0
 public int RedrawLine(int line, int count) => Curse.wredrawln(Handle, line, count);
Exemplo n.º 9
0
 public int Move(int y, int x) => Curse.wmove(Handle, y, x);
Exemplo n.º 10
0
 public int AddCh(int c) => Curse.waddCh(Handle, c);
Exemplo n.º 11
0
        static public Window CreateDerWindow(Window parent, int height, int width, int x, int y)
        {
            IntPtr handle = Curse.derwin(parent.Handle, height, width, y, x);

            return(new Window(handle, height, width));
        }
Exemplo n.º 12
0
        static public Window CreateNewWindow(int height, int width, int x, int y)
        {
            IntPtr handle = Curse.newwin(height, width, y, x);

            return(new Window(handle, height, width));
        }
Exemplo n.º 13
0
        static public Window CreateSubWindowCentered(Window parent, int height, int width, int x, int y)
        {
            IntPtr handle = Curse.subwin(parent.Handle, height, width, y - height / 2, x - width / 2);

            return(new Window(handle, height, width));
        }
Exemplo n.º 14
0
 public int ClearToEol() => Curse.wclrtoeol(Handle);
Exemplo n.º 15
0
 public int Mvprintw(int y, int x, string s) => Curse.mvwprintw(Handle, y, x, s);
Exemplo n.º 16
0
 public int RedrawLine(int line) => Curse.wredrawln(Handle, line, 1);
Exemplo n.º 17
0
 public int Printw(string s) => Curse.wprintw(Handle, s);
Exemplo n.º 18
0
 public int Clear() => Curse.wclear(Handle);
Exemplo n.º 19
0
 public static int InitPair(short pairId, ColorCode forground, ColorCode Background) => Curse.init_pair(pairId, forground, Background);