scribble/inc/displayUpdate.h File Reference

#include <liberdm/erdm.h>

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define LOWEST_LEVEL   0
#define MAIN_WINDOW_EXPOSE_LEVEL   1

Functions

gboolean display_update_request_screen_refresh (int level, gpointer data)
void display_update_increase_level (int level)


Define Documentation

#define LOWEST_LEVEL   0

Definition at line 36 of file displayUpdate.h.

#define MAIN_WINDOW_EXPOSE_LEVEL   1

Definition at line 37 of file displayUpdate.h.


Function Documentation

void display_update_increase_level ( int  level  ) 

Increase the level value of the screen refresh. Meaning that the screen refresh will only be requested to the displayManager for levels equal or larger then this level value.

Parameters:
level screen refresh level
Returns:
TRUE on success

Definition at line 116 of file displayUpdate.c.

00117 {
00118     if (level > g_currentLevel)
00119     {
00120         g_currentLevel = level;
00121     }
00122 }

gboolean display_update_request_screen_refresh ( int  level,
gpointer  data 
)

set address of gtk idle callback, where the e-inkt display update is requested

Parameters:
status indicates whether or not not used
data is quality.see eDmquality in <liberdm/erdm.h> typedef enum { dmQFull = 0, dmQBW, dmQTyping, dmQUndefined } eDmQuality;
Returns:
TRUE on success

Definition at line 80 of file displayUpdate.c.

00081 {
00082     int     theCurrentLevel = display_update_get_level();
00083     int     quality = (int) data;
00084 
00085     SB_IPCPRINTF("quality:%d\n",quality);
00086     if (quality == 0)
00087     {
00088         quality = dmQFull;
00089     }
00090 
00091 
00092     if (level >= theCurrentLevel)
00093     {
00094         g_idle_add_full(G_PRIORITY_HIGH_IDLE,   
00095                         display_update_during_idle_handling,
00096                         (gpointer) quality,
00097                         NULL);
00098         //gtk_idle_add(display_update_during_idle_handling, (gpointer) quality);
00099         //reset the current level
00100         display_update_reset_level();
00101     }
00102     return TRUE;
00103 }

Here is the call graph for this function:


Generated on Sun Dec 14 17:14:21 2008 by  doxygen 1.5.6