00001 #ifndef __ERKEYB_DISPLAY_SCHED_H__ 00002 #define __ERKEYB_DISPLAY_SCHED_H__ 00003 00004 00005 /** 00006 * File Name : erkeyb-display-sched.h 00007 * 00008 * Description: Functions to trigger display updates on an e-ink device 00009 */ 00010 00011 /* 00012 * This file is part of erkeyb 00013 * 00014 * matchbox-keyboard is free software: you can redistribute it and/or modify 00015 * it under the terms of the GNU General Public License as published by 00016 * the Free Software Foundation, either version 2 of the License, or 00017 * (at your option) any later version. 00018 * 00019 * matchbox-keyboard is distributed in the hope that it will be useful, 00020 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00021 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00022 * GNU General Public License for more details. 00023 * 00024 * You should have received a copy of the GNU General Public License 00025 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00026 */ 00027 00028 /** 00029 * Copyright (C) 2009 iRex Technologies B.V. 00030 * All rights reserved. 00031 */ 00032 00033 00034 //---------------------------------------------------------------------------- 00035 // Include Files 00036 //---------------------------------------------------------------------------- 00037 00038 #include "liberutils/display_utils.h" 00039 00040 #include <gtk/gtk.h> 00041 00042 G_BEGIN_DECLS 00043 00044 //---------------------------------------------------------------------------- 00045 // Macro Definitions 00046 //---------------------------------------------------------------------------- 00047 00048 00049 //---------------------------------------------------------------------------- 00050 // Forward Declarations 00051 //---------------------------------------------------------------------------- 00052 00053 00054 //---------------------------------------------------------------------------- 00055 // Type Declarations 00056 //---------------------------------------------------------------------------- 00057 00058 00059 //---------------------------------------------------------------------------- 00060 // Global Constants 00061 //---------------------------------------------------------------------------- 00062 00063 00064 //============================================================================ 00065 // Public Functions 00066 //============================================================================ 00067 00068 void erkeyb_stop_display_update(void); 00069 00070 gboolean erkeyb_display_update(gpointer data); 00071 void erkeyb_on_idle_display_update(gint type); 00072 void erkeyb_on_timeout_display_update(gint timeout, gint type); 00073 00074 gboolean erkeyb_display_yield(gpointer data); 00075 void erkeyb_on_idle_display_yield(gint type); 00076 void erkeyb_on_timeout_display_yield(gint timeout, gint type); 00077 00078 00079 G_END_DECLS 00080 00081 #endif 00082