Go to the source code of this file.
 | 
| static int  | calc_comp_height (int h) | 
|   | 
| static int  | key_repeated (XEvent *event) | 
|   | 
| static int  | translate_key (XEvent *event, int scancode) | 
|   | 
| static void  | hOnAltEnter () | 
|   | 
| static void *  | window_thread (void *arg) | 
|   | 
| int  | fb_hX11EnterFullscreen (int *h) | 
|   | 
| void  | fb_hX11LeaveFullscreen (void) | 
|   | 
| void  | WaitMapped (Window w) | 
|   | 
| void  | fb_hX11InitWindow (int x, int y) | 
|   | 
| void  | fb_hXlibInit (void) | 
|   | 
| int  | fb_hX11Init (char *title, int w, int h, int depth, int refresh_rate, int flags) | 
|   | 
| void  | fb_hX11Exit (void) | 
|   | 
| void  | fb_hX11Lock (void) | 
|   | 
| void  | fb_hX11Unlock (void) | 
|   | 
| void  | fb_hX11SetPalette (int index, int r, int g, int b) | 
|   | 
| void  | fb_hX11WaitVSync (void) | 
|   | 
| int  | fb_hX11GetMouse (int *x, int *y, int *z, int *buttons, int *clip) | 
|   | 
| void  | fb_hX11SetMouse (int x, int y, int show, int clip) | 
|   | 
| void  | fb_hX11SetWindowTitle (char *title) | 
|   | 
| int  | fb_hX11SetWindowPos (int x, int y) | 
|   | 
| int *  | fb_hX11FetchModes (int depth, int *size) | 
|   | 
| int  | fb_hX11ScreenInfo (ssize_t *width, ssize_t *height, ssize_t *depth, ssize_t *refresh) | 
|   | 
| ssize_t  | fb_hGetWindowHandle (void) | 
|   | 
  
  
      
        
          | static int calc_comp_height  | 
          ( | 
          int  | 
          h) |  | 
           | 
         
       
   | 
  
static   | 
  
 
 
      
        
          | ssize_t fb_hGetWindowHandle  | 
          ( | 
          void  | 
          ) |  | 
           | 
        
      
 
 
      
        
          | int fb_hX11EnterFullscreen  | 
          ( | 
          int *  | 
          h) |  | 
           | 
        
      
 
 
      
        
          | void fb_hX11Exit  | 
          ( | 
          void  | 
          ) |  | 
           | 
        
      
 
 
      
        
          | int* fb_hX11FetchModes  | 
          ( | 
          int  | 
          depth,  | 
        
        
           | 
           | 
          int *  | 
          size  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
      
        
          | int fb_hX11GetMouse  | 
          ( | 
          int *  | 
          x,  | 
        
        
           | 
           | 
          int *  | 
          y,  | 
        
        
           | 
           | 
          int *  | 
          z,  | 
        
        
           | 
           | 
          int *  | 
          buttons,  | 
        
        
           | 
           | 
          int *  | 
          clip  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
      
        
          | int fb_hX11Init  | 
          ( | 
          char *  | 
          title,  | 
        
        
           | 
           | 
          int  | 
          w,  | 
        
        
           | 
           | 
          int  | 
          h,  | 
        
        
           | 
           | 
          int  | 
          depth,  | 
        
        
           | 
           | 
          int  | 
          refresh_rate,  | 
        
        
           | 
           | 
          int  | 
          flags  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
      
        
          | void fb_hX11InitWindow  | 
          ( | 
          int  | 
          x,  | 
        
        
           | 
           | 
          int  | 
          y  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
      
        
          | void fb_hX11LeaveFullscreen  | 
          ( | 
          void  | 
          ) |  | 
           | 
        
      
 
 
      
        
          | void fb_hX11Lock  | 
          ( | 
          void  | 
          ) |  | 
           | 
        
      
 
 
      
        
          | int fb_hX11ScreenInfo  | 
          ( | 
          ssize_t *  | 
          width,  | 
        
        
           | 
           | 
          ssize_t *  | 
          height,  | 
        
        
           | 
           | 
          ssize_t *  | 
          depth,  | 
        
        
           | 
           | 
          ssize_t *  | 
          refresh  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
      
        
          | void fb_hX11SetMouse  | 
          ( | 
          int  | 
          x,  | 
        
        
           | 
           | 
          int  | 
          y,  | 
        
        
           | 
           | 
          int  | 
          show,  | 
        
        
           | 
           | 
          int  | 
          clip  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
      
        
          | void fb_hX11SetPalette  | 
          ( | 
          int  | 
          index,  | 
        
        
           | 
           | 
          int  | 
          r,  | 
        
        
           | 
           | 
          int  | 
          g,  | 
        
        
           | 
           | 
          int  | 
          b  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
      
        
          | int fb_hX11SetWindowPos  | 
          ( | 
          int  | 
          x,  | 
        
        
           | 
           | 
          int  | 
          y  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
      
        
          | void fb_hX11SetWindowTitle  | 
          ( | 
          char *  | 
          title) |  | 
           | 
        
      
 
 
      
        
          | void fb_hX11Unlock  | 
          ( | 
          void  | 
          ) |  | 
           | 
        
      
 
 
      
        
          | void fb_hX11WaitVSync  | 
          ( | 
          void  | 
          ) |  | 
           | 
        
      
 
 
      
        
          | void fb_hXlibInit  | 
          ( | 
          void  | 
          ) |  | 
           | 
        
      
 
 
  
  
      
        
          | static void hOnAltEnter  | 
          ( | 
          ) |  | 
           | 
         
       
   | 
  
static   | 
  
 
 
  
  
      
        
          | static int key_repeated  | 
          ( | 
          XEvent *  | 
          event) |  | 
           | 
         
       
   | 
  
static   | 
  
 
 
  
  
      
        
          | static int translate_key  | 
          ( | 
          XEvent *  | 
          event,  | 
         
        
           | 
           | 
          int  | 
          scancode  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
 
      
        
          | void WaitMapped  | 
          ( | 
          Window  | 
          w) |  | 
           | 
        
      
 
 
  
  
      
        
          | static void* window_thread  | 
          ( | 
          void *  | 
          arg) |  | 
           | 
         
       
   | 
  
static   | 
  
 
 
  
  
      
        
          | Cursor arrow_cursor = None | 
         
       
   | 
  
static   | 
  
 
 
  
  
      
        
          | Colormap color_map = None | 
         
       
   | 
  
static   |