コード例 #1
0
ファイル: Window.cs プロジェクト: Nurrl/corewar
 public int box(int vAttrs, int hAttrs) => Curse.box(Handle, vAttrs, hAttrs);
コード例 #2
0
ファイル: Window.cs プロジェクト: Nurrl/corewar
 public int box(WinAttribute vAttrs, WinAttribute hAttrs) => Curse.box(Handle, (int)vAttrs, (int)hAttrs);
コード例 #3
0
ファイル: Window.cs プロジェクト: Nurrl/corewar
 public int SetColor(ColorPair pair) => Curse.wbkgd(Handle, Curse.ColorPair(pair.pairId));
コード例 #4
0
ファイル: Window.cs プロジェクト: Nurrl/corewar
 public int Refresh() => Curse.wrefresh(Handle);
コード例 #5
0
ファイル: Window.cs プロジェクト: Nurrl/corewar
 static Window()
 {
     Curse.initscr();
     Standar = new Window(Curse.consoleGetStdscr(), Curse.Lines, Curse.Cols);
     Current = new Window(Curse.consoleGetCurscr());
 }
コード例 #6
0
ファイル: Window.cs プロジェクト: Nurrl/corewar
 public int SetColor(int colorPairId) => Curse.wbkgd(Handle, Curse.ColorPair(colorPairId));
コード例 #7
0
ファイル: Window.cs プロジェクト: Nurrl/corewar
 public int Attroff(int attrs) => Curse.wattroff(Handle, attrs);
コード例 #8
0
ファイル: Window.cs プロジェクト: Nurrl/corewar
 public int RedrawLine(int line, int count) => Curse.wredrawln(Handle, line, count);
コード例 #9
0
ファイル: Window.cs プロジェクト: Nurrl/corewar
 public int Move(int y, int x) => Curse.wmove(Handle, y, x);
コード例 #10
0
ファイル: Window.cs プロジェクト: Nurrl/corewar
 public int AddCh(int c) => Curse.waddCh(Handle, c);
コード例 #11
0
ファイル: Window.cs プロジェクト: Nurrl/corewar
        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
ファイル: Window.cs プロジェクト: Nurrl/corewar
        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
ファイル: Window.cs プロジェクト: Nurrl/corewar
        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
ファイル: Window.cs プロジェクト: Nurrl/corewar
 public int ClearToEol() => Curse.wclrtoeol(Handle);
コード例 #15
0
ファイル: Window.cs プロジェクト: Nurrl/corewar
 public int Mvprintw(int y, int x, string s) => Curse.mvwprintw(Handle, y, x, s);
コード例 #16
0
ファイル: Window.cs プロジェクト: Nurrl/corewar
 public int RedrawLine(int line) => Curse.wredrawln(Handle, line, 1);
コード例 #17
0
ファイル: Window.cs プロジェクト: Nurrl/corewar
 public int Printw(string s) => Curse.wprintw(Handle, s);
コード例 #18
0
ファイル: Window.cs プロジェクト: Nurrl/corewar
 public int Clear() => Curse.wclear(Handle);
コード例 #19
0
ファイル: ColorPair.cs プロジェクト: Nurrl/corewar
 public static int InitPair(short pairId, ColorCode forground, ColorCode Background) => Curse.init_pair(pairId, forground, Background);