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

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

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

  1 /**@(#)
  2 **/
  3 #include <stdio.h>
  4 #include <tina/sys.h>
  5 #include <tina/math.h>
  6 #include <tina/tv.h>
  7 #include <tina/tv_screen.h>
  8 
  9 void    null_function();
 10 void    tv_screen_zoom_proc();
 11 void    tv_screen_roi_proc();
 12 void    tv_screen_pick_proc();
 13 void    tv_screen_mouse_proc();
 14 
 15 void    tv_screen_set_bkgrnd(Tv_screen * tv_screen, long unsigned int color)
 16 {
 17     if (tv_screen == NULL)
 18         return;
 19     XSetBackground(tv_screen->display, tv_screen->gc, color);
 20 }
 21 
 22 void    tv_screen_set_color(Tv_screen * tv_screen, long unsigned int color)
 23 {
 24     if (tv_screen == NULL)
 25         return;
 26     XSetForeground(tv_screen->display, tv_screen->gc, color);
 27 }
 28 
 29 void    tv_screen_set_op(Tv_screen * tv_screen, int op)
 30 {
 31     XGCValues gc_val;
 32 
 33     if (tv_screen == NULL)
 34         return;
 35     gc_val.function = op;
 36     XChangeGC(tv_screen->display, tv_screen->gc, GCFunction, &gc_val);
 37 }
 38 
 39 void    tv_screen_set_linewidth(Tv_screen * tv_screen, int width)
 40 {
 41     XGCValues gc_val;
 42 
 43     if (tv_screen == NULL)
 44         return;
 45     gc_val.line_width = width;
 46     XChangeGC(tv_screen->display, tv_screen->gc, GCLineWidth, &gc_val);
 47 }
 48 
 49 void    tv_screen_set_linestyle(Tv_screen * tv_screen, int style)
 50 {
 51     XGCValues gc_val;
 52 
 53     if (tv_screen == NULL)
 54         return;
 55     gc_val.line_style = style;
 56     XChangeGC(tv_screen->display, tv_screen->gc, GCLineStyle, &gc_val);
 57 }
 58 

~ [ 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.