settings/src/displayStatus.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.

Defines

#define LOWEST_LEVEL   0
#define SELECTION_FOCUS_IN_LEVEL   1
#define SELECTION_CLICKED_LEVEL   2
#define TEXT_ENTRY_FOCUS_IN_LEVEL   3
#define TEXT_ENTRY_CHANGED_LEVEL   4
#define BUTTON_FOCUS_IN_LEVEL   5
#define SETTING_ITEM_CHANGE   6
#define SETUP_PAGE_LAYOUT_CHANGE   7
#define ONE_BUTTON_ITEM_CLICKED_LEVEL   8
#define SETUP_SCREEN_EXPOSE_LEVEL   9
#define MAIN_WINDOW_EXPOSE_LEVEL   10
#define KEYBOARD_SHOW_HIDE_LEVEL   11
#define NO_DISPLAY_UPDATE_LEVEL   99
#define WAVEFORM_FULLSCREEN   0
#define WAVEFORM_BW   1
#define WAVEFORM_TYPING   2

Functions

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)
void display_update_reset_level (void)


Detailed Description

control - application interface with the display manager

Copyright (C) 2005-2008 iRex Technologies B.V. All rights reserved.

<File description>="">

Definition in file displayStatus.h.


Define Documentation

#define BUTTON_FOCUS_IN_LEVEL   5

Definition at line 45 of file displayStatus.h.

#define KEYBOARD_SHOW_HIDE_LEVEL   11

Definition at line 51 of file displayStatus.h.

#define LOWEST_LEVEL   0

Definition at line 40 of file displayStatus.h.

#define MAIN_WINDOW_EXPOSE_LEVEL   10

Definition at line 50 of file displayStatus.h.

#define NO_DISPLAY_UPDATE_LEVEL   99

Definition at line 52 of file displayStatus.h.

#define ONE_BUTTON_ITEM_CLICKED_LEVEL   8

Definition at line 48 of file displayStatus.h.

#define SELECTION_CLICKED_LEVEL   2

Definition at line 42 of file displayStatus.h.

#define SELECTION_FOCUS_IN_LEVEL   1

Definition at line 41 of file displayStatus.h.

#define SETTING_ITEM_CHANGE   6

Definition at line 46 of file displayStatus.h.

#define SETUP_PAGE_LAYOUT_CHANGE   7

Definition at line 47 of file displayStatus.h.

#define SETUP_SCREEN_EXPOSE_LEVEL   9

Definition at line 49 of file displayStatus.h.

#define TEXT_ENTRY_CHANGED_LEVEL   4

Definition at line 44 of file displayStatus.h.

#define TEXT_ENTRY_FOCUS_IN_LEVEL   3

Definition at line 43 of file displayStatus.h.

#define WAVEFORM_BW   1

Definition at line 55 of file displayStatus.h.

#define WAVEFORM_FULLSCREEN   0

Definition at line 54 of file displayStatus.h.

#define WAVEFORM_TYPING   2

Definition at line 56 of file displayStatus.h.


Function Documentation

void display_update_decrease_level ( int  level  ) 

Definition at line 172 of file displayStatus.c.

00173 {
00174     ST_LOGPRINTF("new level %d - currentlevel %d", level, g_currentLevel);
00175 
00176     if (level < g_currentLevel)
00177     {
00178         g_currentLevel = level;
00179     }
00180 }

int display_update_get_level ( void   ) 

Definition at line 155 of file displayStatus.c.

00156 {
00157     return g_currentLevel;
00158 }

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 161 of file displayStatus.c.

00162 {
00163     ST_LOGPRINTF("increase from %d to %d", g_currentLevel, level);
00164 
00165     if (level > g_currentLevel)
00166     {
00167         g_currentLevel = level;
00168     }
00169 }

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:
status indicates whether or not not used
data corresponds to the e-ink waveform (value passed as integer). NULL corresponds to Full Update
Returns:
TRUE on success

Definition at line 136 of file displayStatus.c.

00137 {
00138     ST_LOGPRINTF("[%d] entry level %d currentlevel %d", counter++, level, g_currentLevel);
00139 
00140     if (level >= g_currentLevel)
00141     {
00142         if (waveform != 0)
00143         {
00144             ST_LOGPRINTF("Special waveform request");
00145             level += waveform << 16;
00146         }
00147 
00148         gtk_idle_add(display_update_during_idle_handling, (gpointer) level);
00149 
00150         g_currentLevel = level + 1;
00151     }
00152     return TRUE;
00153 }

Here is the call graph for this function:

void display_update_reset_level ( void   ) 


Generated on Sun Dec 14 17:16:55 2008 by  doxygen 1.5.6