~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Tina4/src/X11/activity.c

Version: ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /**@(#)Manage changes in tv_screen activity.
  2 **/
  3 
  4 #include <math.h>
  5 #include <signal.h>
  6 #include <tina/sys.h>
  7 #include <tina/math.h>
  8 #include <tina/tv.h>
  9 #include <tina/tv_screen.h>
 10 #include <tina/X11funcs.h>
 11 
 12 /*
 13  * Sets an appropriate cursor for tv_screen activity 
 14  */
 15 void tv_screen_set_activity_cursor(Tv_screen * tv_screen, int activity)
 16 {
 17   if (tv_screen == NULL)
 18     return;
 19 
 20   switch (activity)
 21   {
 22   case NULL:
 23     tw_cursor_set(tv_screen->display, tv_screen->window, null_cursor);
 24     break;
 25   case ZOOM:
 26     tw_cursor_set(tv_screen->display, tv_screen->window, zoom_cursor);
 27     break;
 28   case ROI:
 29     tw_cursor_set(tv_screen->display, tv_screen->window, roi_cursor);
 30     break;
 31   case POLYROI:
 32     tw_cursor_set(tv_screen->display, tv_screen->window, roi_cursor);
 33     break;
 34   case POINT:
 35     tw_cursor_set(tv_screen->display, tv_screen->window, pick_cursor);
 36     break;
 37   case GLOBAL:
 38     tw_cursor_set(tv_screen->display, tv_screen->window, pick_cursor);
 39     break;
 40   case PICK:
 41     tw_cursor_set(tv_screen->display, tv_screen->window, pick_cursor);
 42     break;
 43   case MOUSE:
 44     tw_cursor_set(tv_screen->display, tv_screen->window, mouse_cursor);
 45     break;
 46   }
 47 }
 48 
 49 
 50 
 51 
 52 
 53 
 54 
 55 
 56 
 57 
 58 
 59 
 60 
 61 
 62 
 63 
 64 
 65 
 66 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.