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

Linux Cross Reference
Tina4/src/PCwin/color.cpp

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

  1 /* Color handling in a tv_screen (X11 version) */
  2 
  3 #include <stdio.h>
  4 #include <string.h>
  5 #include <math.h>
  6 #include <signal.h>
  7 #include <limits.h>
  8 
  9 #include <dibapi.h>
 10 
 11 #ifdef __cplusplus
 12 extern "C" {
 13 #endif
 14 #include <tina/sys.h>
 15 #include <tina/sysfuncs.h>
 16 #include <tina/math.h>
 17 #include <tina/vision.h>
 18 #include <tina/visionfuncs.h>
 19 #include <tina/tv.h>
 20 #include <tina/toolsfuncs.h>
 21 #include <tina/tv_screen.h>
 22 #ifdef __cplusplus
 23 }
 24 #endif
 25 
 26 extern void (*screen_text) (char *);
 27 #define Print(x)  if(screen_text!=NULL) screen_text(x)
 28 
 29 
 30 /* Set the background color of a tv_screen to X pixel given */
 31 extern "C" void tv_screen_background_set(Tv_screen * tv_screen, long 
 32 unsigned int color)
 33 {
 34     if (tv_screen)
 35     {
 36     }
 37     Print("tv_screen_background_set?");    
 38 }
 39 
 40 
 41 /* Set the foreground color of a tv_screen to X pixel given */
 42 extern "C" void tv_screen_color_set(Tv_screen * tv_screen, long unsigned 
 43 int color)
 44 {
 45     if (tv_screen)
 46     {
 47     }
 48     Print("tv_screen_color_set?");
 49 }
 50 
 51 /* Reset the color cell 'pixel' (in the X colormap) to given rgb's
 52  * (0-255) */
 53 extern "C" void tv_screen_reset_color(Tv_screen * tv_screen, long unsigned 
 54 int pixel, int red, int green, int blue)
 55 {
 56     unsigned char r = red;
 57     unsigned char g = green;
 58     unsigned char b = blue;
 59 
 60     if (tv_screen)
 61     {
 62     }
 63     Print("tv_screen_reset_color?");
 64 }
 65 
 66 /* Reset the color cell 'pixel' (in the X colormap) to rgb's of the
 67  * given color_name.  NB if color_name not found does nowt */
 68 extern "C" void tv_screen_reset_named_color(Tv_screen * tv_screen, long 
 69 unsigned int pixel, char *color_name)
 70 {
 71     if (tv_screen)
 72     {
 73 
 74     }
 75     Print("tv_screen_reset_named_color?");
 76 }
 77 
 78 
 79 
 80 /* X Window specific pixel returned (NOT Tina_pixel) */
 81 extern "C" unsigned long tv_screen_get_pixel(Tv_screen * tv_screen, Ipos 
 82 pos)
 83 {
 84     unsigned long pixel = 0;
 85 
 86     if (tv_screen)
 87     {
 88 
 89     }
 90     Print("long tv_screen_get_pixel");
 91     return (pixel);
 92 }
 93 

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