contentLister/inc/displayUpdate.h File Reference

control - application interface with the display manager More...

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

Go to the source code of this file.

Enumerations

enum  {
  LOWEST_LEVEL = 0, LIST_ITEM_FOCUS_LEVEL, TOOLBAR_UPDATE_LEVEL, TEXTENTRY_CHANGED_LEVEL,
  LISTER_EXPOSE_LEVEL, MAIN_WINDOW_EXPOSE_LEVEL, KEYBOARD_SHOW_HIDE_LEVEL, NO_DISPLAY_UPDATE_LEVEL = 99
}

Functions

gboolean display_update_request_screen_refresh (int level)
void display_update_increase_level (int level)
void display_update_decrease_level (int level)
int display_update_get_level (void)


Detailed Description

control - application interface with the display manager

<File description>="">

Definition in file displayUpdate.h.


Enumeration Type Documentation

anonymous enum

Enumerator:
LOWEST_LEVEL 
LIST_ITEM_FOCUS_LEVEL 
TOOLBAR_UPDATE_LEVEL 
TEXTENTRY_CHANGED_LEVEL 
LISTER_EXPOSE_LEVEL 
MAIN_WINDOW_EXPOSE_LEVEL 
KEYBOARD_SHOW_HIDE_LEVEL 
NO_DISPLAY_UPDATE_LEVEL 

Definition at line 41 of file displayUpdate.h.


Function Documentation

void display_update_decrease_level ( int  level  ) 

Decrease 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 143 of file displayUpdate.c.

00144 {
00145     CL_SCREENPRINTF("new level %d - currentlevel %d", level, g_currentLevel);
00146 
00147     if (level < g_currentLevel)
00148     {
00149         g_currentLevel = level;
00150     }
00151 }

int display_update_get_level ( void   ) 

Definition at line 124 of file displayUpdate.c.

00125 {
00126     return g_currentLevel;
00127 }

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 131 of file displayUpdate.c.

00132 {
00133     CL_SCREENPRINTF("new level %d - currentlevel %d", level, g_currentLevel);
00134 
00135     if (level > g_currentLevel)
00136     {
00137         g_currentLevel = level;
00138     }
00139 }

gboolean display_update_request_screen_refresh ( int  level  ) 

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

Parameters:
status indicates whether or not not used
Returns:
TRUE on success

Definition at line 108 of file displayUpdate.c.

00109 {
00110     CL_SCREENPRINTF("entry level %d currentlevel %d", level, g_currentLevel);
00111 
00112     if (level >= g_currentLevel)
00113     {
00114         CL_TIMEDISPLAY("Before adding idle callback");
00115 
00116         gtk_idle_add(display_update_during_idle_handling, (gpointer) level);
00117 
00118         g_currentLevel = level + 1;
00119     }
00120     CL_SCREENPRINTF("leave level %d currentlevel %d", level, g_currentLevel);
00121     return TRUE;
00122 }

Here is the call graph for this function:


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