erbrowser/src/displayUpdate.h File Reference

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
#define MOZEMBED_UPDATE_LEVEL   2
#define DM_QUALITY_FULL   0
#define DM_QUALITY_TYPING   2

Functions

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


Define Documentation

#define DM_QUALITY_FULL   0

Definition at line 39 of file displayUpdate.h.

#define DM_QUALITY_TYPING   2

Definition at line 40 of file displayUpdate.h.

#define LOWEST_LEVEL   0

Definition at line 35 of file displayUpdate.h.

#define MAIN_WINDOW_EXPOSE_LEVEL   1

Definition at line 36 of file displayUpdate.h.

#define MOZEMBED_UPDATE_LEVEL   2

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 123 of file displayUpdate.cpp.

00124 {
00125     if (level > g_currentLevel)
00126     {
00127         g_currentLevel = level;
00128     }
00129 }

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 not used
Returns:
TRUE on success

Definition at line 89 of file displayUpdate.cpp.

00090 {
00091     int     theCurrentLevel = display_update_get_level();
00092     int     quality = (int) data;
00093     
00094     if (quality == 0)
00095     {
00096         quality = DM_QUALITY_FULL;
00097     }
00098 
00099     BR_DISPLAYPRINTF("entry level %d currentlevel %d", level, theCurrentLevel);
00100 
00101     if (level >= theCurrentLevel)
00102     {
00103         
00104         gtk_idle_add(display_update_during_idle_handling, (gpointer) quality);
00105 
00106         //reset the current level
00107         display_update_reset_level();
00108 
00109     }
00110     return TRUE;
00111 }

Here is the call graph for this function:


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