connectionMgr/inc/displayStatus.h File Reference

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

#include <glib.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 SELECTION_FOCUS_IN_LEVEL   1
#define SELECTION_CLICKED_LEVEL   1
#define TEXT_ENTRY_FOCUS_IN_LEVEL   1
#define TEXT_ENTRY_CHANGED_LEVEL   1
#define BUTTON_FOCUS_IN_LEVEL   1
#define SELECTION_CHANGED_LEVEL   2
#define SETTING_ITEM_CHANGE   3
#define STATUS_ITEM_CHANGE   3
#define SETUP_PAGE_LAYOUT_CHANGE   3
#define ONE_BUTTON_ITEM_CLICKED_LEVEL   4
#define SETUP_SCREEN_EXPOSE_LEVEL   4
#define MAIN_WINDOW_EXPOSE_LEVEL   5
#define KEYBOARD_SHOW_HIDE_LEVEL   6
#define NO_DISPLAY_UPDATE_LEVEL   99
#define WAVEFORM_FULLSCREEN   0
#define WAVEFORM_BW   1
#define WAVEFORM_TYPING   2

Functions

void display_update_remove_idle_handler_id (void)
gboolean display_update_request_screen_refresh (int level, int waveform)
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

connectionMgr - application interface with the display manager

Copyright (C) 2007 iRex Technologies BV.

<File description>="">

Copyright (C) 2007 iRex Technologies BV.

Definition in file displayStatus.h.


Define Documentation

#define BUTTON_FOCUS_IN_LEVEL   1

Definition at line 42 of file displayStatus.h.

#define KEYBOARD_SHOW_HIDE_LEVEL   6

Definition at line 55 of file displayStatus.h.

#define LOWEST_LEVEL   0

Definition at line 34 of file displayStatus.h.

#define MAIN_WINDOW_EXPOSE_LEVEL   5

Definition at line 53 of file displayStatus.h.

#define NO_DISPLAY_UPDATE_LEVEL   99

Definition at line 57 of file displayStatus.h.

#define ONE_BUTTON_ITEM_CLICKED_LEVEL   4

Definition at line 51 of file displayStatus.h.

#define SELECTION_CHANGED_LEVEL   2

Definition at line 44 of file displayStatus.h.

#define SELECTION_CLICKED_LEVEL   1

Definition at line 37 of file displayStatus.h.

#define SELECTION_FOCUS_IN_LEVEL   1

Definition at line 36 of file displayStatus.h.

#define SETTING_ITEM_CHANGE   3

Definition at line 46 of file displayStatus.h.

#define SETUP_PAGE_LAYOUT_CHANGE   3

Definition at line 48 of file displayStatus.h.

#define SETUP_SCREEN_EXPOSE_LEVEL   4

Definition at line 52 of file displayStatus.h.

#define STATUS_ITEM_CHANGE   3

Definition at line 47 of file displayStatus.h.

#define TEXT_ENTRY_CHANGED_LEVEL   1

Definition at line 40 of file displayStatus.h.

#define TEXT_ENTRY_FOCUS_IN_LEVEL   1

Definition at line 39 of file displayStatus.h.

#define WAVEFORM_BW   1

Definition at line 60 of file displayStatus.h.

#define WAVEFORM_FULLSCREEN   0

Definition at line 59 of file displayStatus.h.

#define WAVEFORM_TYPING   2

Definition at line 61 of file displayStatus.h.


Function Documentation

void display_update_decrease_level ( int  level  ) 

Definition at line 190 of file displayStatus.c.

00191 {
00192     CN_DMPRINTF("decrease from %d to %d", g_currentLevel, level);
00193 
00194     if (level < g_currentLevel)
00195     {
00196         g_currentLevel = level;
00197     }
00198 }

int display_update_get_level ( void   ) 

Definition at line 173 of file displayStatus.c.

00174 {
00175     return g_currentLevel;
00176 }

void display_update_increase_level ( int  level  ) 

Increase/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 179 of file displayStatus.c.

00180 {
00181     CN_DMPRINTF("increase from %d to %d", g_currentLevel, level);
00182 
00183     if (level > g_currentLevel)
00184     {
00185         g_currentLevel = level;
00186     }
00187 }

void display_update_remove_idle_handler_id ( void   ) 

Definition at line 52 of file displayStatus.c.

00053 {
00054     if (g_idle_hander_id)
00055     {
00056         CN_DMPRINTF("\nRemoving the old idle handler.\n");
00057         g_source_remove(g_idle_hander_id);
00058         g_idle_hander_id = 0;
00059     }
00060 }

gboolean display_update_request_screen_refresh ( int  level,
int  waveform 
)

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

Parameters:
level - priority of this screen udpate request
waveform - requested e-ink waveform
Returns:
TRUE on success

Definition at line 150 of file displayStatus.c.

00151 {
00152     CN_DMPRINTF("[%d] entry level %d currentlevel %d", 
00153             counter++, level, g_currentLevel);
00154 
00155     if (level >= g_currentLevel)
00156     {
00157         g_currentLevel = level + 1;
00158 
00159         if (waveform != 0)
00160         {
00161             CN_DMPRINTF("Special waveform request");
00162             level += waveform << 16;
00163         }
00164 
00165         display_update_remove_idle_handler_id();
00166 
00167         g_idle_hander_id = gtk_idle_add(display_update_during_idle_handling,
00168                                         (gpointer) level);
00169     }
00170     return TRUE;
00171 }

Here is the call graph for this function:


Generated on Sun Dec 14 17:15:33 2008 by  doxygen 1.5.6