Example #1
0
		public MainWindow () : base(Gtk.WindowType.Toplevel)
		{
			Build ();

			InitScene (drawingarea1.Allocation.Width, drawingarea1.Allocation.Height);

			timer = new Timer (10, OnTimer, true);
		}
Example #2
0
			/// <summary>
			/// Initializes a new instance of the <see cref="Redhound.GLib.Timer+TimerWorker"/> class.
			/// </summary>
			/// <param name='interval'>
			/// Interval, ms.
			/// </param>
			/// <param name='timerHandler'>
			/// Timer handler method.
			/// </param>
			/// <param name='host'>
			/// Host timer object.
			/// </param>
			public TimerWorker (int interval, EventHandler timerHandler, Timer host)
			{
				this.host = host;
				this.timerHandler += new EventHandler(timerHandler);
				global::GLib.Timeout.Add((uint)interval, onTimer);
			}
Example #3
0
		public MainWindow () : base(Gtk.WindowType.Toplevel)
		{
			Build ();

			timer = new Timer (50,  OnTimer, true);
		}