Exemplo n.º 1
0
            public EventController(EcoreEvasCallback Event, Enlightenment.Ecore.Window c)
            {
                window           = c;
                evnt_num         = Event;
                private_callback = new PrivEventHandler(EventCallback);
                switch (evnt_num)
                {
                case EcoreEvasCallback.Resize: ecore_evas_callback_resize_set(window.Raw, private_callback); break;

                case EcoreEvasCallback.Move: ecore_evas_callback_move_set(window.Raw, private_callback); break;

                case EcoreEvasCallback.Show: ecore_evas_callback_show_set(window.Raw, private_callback); break;

                case EcoreEvasCallback.Hide: ecore_evas_callback_hide_set(window.Raw, private_callback); break;

                case EcoreEvasCallback.DeleteRequest: ecore_evas_callback_delete_request_set(window.Raw, private_callback); break;

                case EcoreEvasCallback.Destroy: ecore_evas_callback_destroy_set(window.Raw, private_callback); break;

                case EcoreEvasCallback.FocusIn: ecore_evas_callback_focus_in_set(window.Raw, private_callback); break;

                case EcoreEvasCallback.FocusOut: ecore_evas_callback_focus_out_set(window.Raw, private_callback); break;

                case EcoreEvasCallback.MouseIn: ecore_evas_callback_mouse_in_set(window.Raw, private_callback); break;

                case EcoreEvasCallback.MouseOut: ecore_evas_callback_mouse_out_set(window.Raw, private_callback); break;

                case EcoreEvasCallback.PreRender: ecore_evas_callback_pre_render_set(window.Raw, private_callback); break;

                case EcoreEvasCallback.PostRender: ecore_evas_callback_post_render_set(window.Raw, private_callback); break;
                }
            }
Exemplo n.º 2
0
      public EventController(EcoreEvasCallback Event, Enlightenment.Ecore.Window c)
      {
	window = c;
	evnt_num = Event;
	private_callback = new PrivEventHandler(EventCallback);
	switch(evnt_num) 
	{
	 case EcoreEvasCallback.Resize: ecore_evas_callback_resize_set(window.Raw, private_callback); break;
	 case EcoreEvasCallback.Move: ecore_evas_callback_move_set(window.Raw, private_callback); break;
	 case EcoreEvasCallback.Show: ecore_evas_callback_show_set(window.Raw, private_callback); break;
	 case EcoreEvasCallback.Hide: ecore_evas_callback_hide_set(window.Raw, private_callback); break;
	 case EcoreEvasCallback.DeleteRequest: ecore_evas_callback_delete_request_set(window.Raw, private_callback); break;
	 case EcoreEvasCallback.Destroy: ecore_evas_callback_destroy_set(window.Raw, private_callback); break;
	 case EcoreEvasCallback.FocusIn: ecore_evas_callback_focus_in_set(window.Raw, private_callback); break;
	 case EcoreEvasCallback.FocusOut: ecore_evas_callback_focus_out_set(window.Raw, private_callback); break;
	 case EcoreEvasCallback.MouseIn: ecore_evas_callback_mouse_in_set(window.Raw, private_callback); break;
	 case EcoreEvasCallback.MouseOut: ecore_evas_callback_mouse_out_set(window.Raw, private_callback); break;
	 case EcoreEvasCallback.PreRender: ecore_evas_callback_pre_render_set(window.Raw, private_callback); break;
	 case EcoreEvasCallback.PostRender: ecore_evas_callback_post_render_set(window.Raw, private_callback); break;
	}
      }