erkeyb-display-sched.c File Reference

#include <stdio.h>
#include <string.h>
#include <gtk/gtk.h>
#include "erkeyb-display-sched.h"
Include dependency graph for erkeyb-display-sched.c:

Go to the source code of this file.

Functions

void erkeyb_stop_display_update (void)
gboolean erkeyb_display_yield (gpointer data)
gboolean erkeyb_display_update (gpointer data)
void erkeyb_on_idle_display_yield (gint type)
void erkeyb_on_idle_display_update (gint type)
void erkeyb_on_timeout_display_yield (gint timeout, gint type)
void erkeyb_on_timeout_display_update (gint timeout, gint type)

Variables

static gboolean g_have_control = FALSE

Function Documentation

gboolean erkeyb_display_update ( gpointer  data  ) 

Definition at line 87 of file erkeyb-display-sched.c.

References display_update_keep_control(), and g_have_control.

Referenced by erkeyb_on_idle_display_update(), and erkeyb_on_timeout_display_update().

00088 {
00089     if ( g_have_control )
00090     {
00091         display_update_keep_control((gint) data);
00092     }
00093     return FALSE;
00094 }

Here is the call graph for this function:

Here is the caller graph for this function:

gboolean erkeyb_display_yield ( gpointer  data  ) 

Definition at line 77 of file erkeyb-display-sched.c.

References display_update_return_control(), and g_have_control.

Referenced by erkeyb_on_idle_display_yield(), and erkeyb_on_timeout_display_yield().

00078 {
00079     if ( g_have_control )
00080     {
00081         display_update_return_control((gint) data);
00082         g_have_control = FALSE;
00083     }
00084     return FALSE;
00085 }

Here is the call graph for this function:

Here is the caller graph for this function:

void erkeyb_on_idle_display_update ( gint  type  ) 

Definition at line 104 of file erkeyb-display-sched.c.

References erkeyb_display_update(), and g_have_control.

00105 {
00106     if ( g_have_control )
00107     {
00108         g_idle_add(erkeyb_display_update, (gpointer) type );
00109     }
00110 }

Here is the call graph for this function:

void erkeyb_on_idle_display_yield ( gint  type  ) 

Definition at line 96 of file erkeyb-display-sched.c.

References erkeyb_display_yield(), and g_have_control.

Referenced by ergtk_keyb_finalize(), and on_highlight_expired().

00097 {
00098     if ( g_have_control )
00099     {
00100         g_idle_add(erkeyb_display_yield, (gpointer) type );
00101     }
00102 }

Here is the call graph for this function:

Here is the caller graph for this function:

void erkeyb_on_timeout_display_update ( gint  timeout,
gint  type 
)

Definition at line 120 of file erkeyb-display-sched.c.

References erkeyb_display_update(), and g_have_control.

Referenced by ergtk_keyb_button_clicked_event_cb().

00121 {
00122     if ( g_have_control )
00123     {
00124         g_timeout_add(timeout, erkeyb_display_update, (gpointer) type );
00125     }
00126 }

Here is the call graph for this function:

Here is the caller graph for this function:

void erkeyb_on_timeout_display_yield ( gint  timeout,
gint  type 
)

Definition at line 112 of file erkeyb-display-sched.c.

References erkeyb_display_yield(), and g_have_control.

00113 {
00114     if ( g_have_control )
00115     {
00116         g_timeout_add(timeout, erkeyb_display_yield, (gpointer) type );
00117     }
00118 }

Here is the call graph for this function:

void erkeyb_stop_display_update ( void   ) 

File Name : erkeyb-display-sched.h

Description: Functions to trigger display updates on an e-ink device Copyright (C) 2009 iRex Technologies B.V. All rights reserved.

Definition at line 68 of file erkeyb-display-sched.c.

References display_gain_control(), and g_have_control.

Referenced by ergtk_keyb_button_clicked_event_cb().

00069 {
00070     if (! g_have_control )
00071     {
00072         g_have_control = TRUE;
00073         display_gain_control();
00074     }
00075 }

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

gboolean g_have_control = FALSE [static]
Generated by  doxygen 1.6.2-20100208