コード例 #1
0
        public static void Main(string[] args)
        {
            Application.Init();

            client = new AgarioClient();


            w           = new Gtk.Window("Agario gtk client");
            w.Decorated = false;
            w.Maximize();
            w.SetSizeRequest(1024, 768);

            darea = new CairoGraphic(client);
            darea.DoubleBuffered = true;
            darea.SetSizeRequest(800, 800);

            Box box = new HBox(false, 0);

            box.Add(darea);
            w.Add(box);
            w.Resize(500, 500);
            w.DeleteEvent += close_window;
            w.ShowAll();

            w.KeyPressEvent += OnKeyPressEvent;

            //Timer loop for ui display
            new Timer(TimerCallback, null, 0, 20);
            //Timer loop for mouse events
            new Timer(UIControl, null, 0, 100);

            Application.Run();
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: ugureren/agariosharp
        public static void Main(string[] args)
        {
            Application.Init ();

            client = new AgarioClient ();

            w = new Gtk.Window ("Agario gtk client");
            w.Decorated = false;
            w.Maximize ();
            w.SetSizeRequest (1024, 768);

            darea = new CairoGraphic (client);
            darea.DoubleBuffered = true;
            darea.SetSizeRequest (800, 800);

            Box box = new HBox (false, 0);
            box.Add (darea);
            w.Add (box);
            w.Resize (500, 500);
            w.DeleteEvent += close_window;
            w.ShowAll ();

            w.KeyPressEvent += OnKeyPressEvent;

            //Timer loop for ui display
            new Timer (TimerCallback, null, 0, 20);
            //Timer loop for mouse events
            new Timer (UIControl, null, 0, 100);

            Application.Run ();
        }