Пример #1
0
 public int box(int vAttrs, int hAttrs) => Curse.box(Handle, vAttrs, hAttrs);
Пример #2
0
 public int box(WinAttribute vAttrs, WinAttribute hAttrs) => Curse.box(Handle, (int)vAttrs, (int)hAttrs);
Пример #3
0
 public int SetColor(ColorPair pair) => Curse.wbkgd(Handle, Curse.ColorPair(pair.pairId));
Пример #4
0
 public int Refresh() => Curse.wrefresh(Handle);
Пример #5
0
 static Window()
 {
     Curse.initscr();
     Standar = new Window(Curse.consoleGetStdscr(), Curse.Lines, Curse.Cols);
     Current = new Window(Curse.consoleGetCurscr());
 }
Пример #6
0
 public int SetColor(int colorPairId) => Curse.wbkgd(Handle, Curse.ColorPair(colorPairId));
Пример #7
0
 public int Attroff(int attrs) => Curse.wattroff(Handle, attrs);
Пример #8
0
 public int RedrawLine(int line, int count) => Curse.wredrawln(Handle, line, count);
Пример #9
0
 public int Move(int y, int x) => Curse.wmove(Handle, y, x);
Пример #10
0
 public int AddCh(int c) => Curse.waddCh(Handle, c);
Пример #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));
        }
Пример #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));
        }
Пример #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));
        }
Пример #14
0
 public int ClearToEol() => Curse.wclrtoeol(Handle);
Пример #15
0
 public int Mvprintw(int y, int x, string s) => Curse.mvwprintw(Handle, y, x, s);
Пример #16
0
 public int RedrawLine(int line) => Curse.wredrawln(Handle, line, 1);
Пример #17
0
 public int Printw(string s) => Curse.wprintw(Handle, s);
Пример #18
0
 public int Clear() => Curse.wclear(Handle);
Пример #19
0
 public static int InitPair(short pairId, ColorCode forground, ColorCode Background) => Curse.init_pair(pairId, forground, Background);