#include <fcntl.h>
#include <sys/ioctl.h>
#include <config.h>
#include <stdio.h>
#include <unistd.h>
Go to the source code of this file.
#define BLACK 3 |
Definition at line 167 of file displayUpdate.h.
#define BLACK_BRUSH_X 82 |
Definition at line 158 of file displayUpdate.h.
#define BLACK_BUBBLE_SIZE_X 7 |
Definition at line 131 of file displayUpdate.h.
#define BLACK_BUBBLE_SIZE_Y 7 |
Definition at line 132 of file displayUpdate.h.
#define BLACK_BUBBLE_X 102 |
Definition at line 129 of file displayUpdate.h.
#define BLACK_BUBBLE_Y 49 |
Definition at line 130 of file displayUpdate.h.
#define BLACK_CURSOR_SIZE_X 114 |
Definition at line 121 of file displayUpdate.h.
#define BLACK_CURSOR_SIZE_Y 24 |
Definition at line 122 of file displayUpdate.h.
#define BLACK_CURSOR_X 0 |
Definition at line 119 of file displayUpdate.h.
#define BLACK_CURSOR_Y 24 |
Definition at line 120 of file displayUpdate.h.
#define BOOT_PROGRESS_START_STEP (0) |
Definition at line 115 of file displayUpdate.h.
#define BOOT_PROGRESS_STEPS (18) |
Definition at line 114 of file displayUpdate.h.
#define BRUSH_Y 49 |
Definition at line 159 of file displayUpdate.h.
#define DARK_GRAY 2 |
Definition at line 166 of file displayUpdate.h.
#define DGRAY_BRUSH_X 55 |
Definition at line 157 of file displayUpdate.h.
#define DM_QUALITY_FULL 0 |
Definition at line 228 of file displayUpdate.h.
#define DM_QUALITY_TYPING 2 |
Definition at line 229 of file displayUpdate.h.
#define ESTIMATED_BOOT_JIFFIES (ESTIMATED_BOOT_TIME * 100) |
Definition at line 113 of file displayUpdate.h.
#define ESTIMATED_BOOT_TIME (39) |
Definition at line 112 of file displayUpdate.h.
#define FBIO_DISPLAY _IOW(FBIO_IOCTL_BASE, 1, struct display_update_info) |
Definition at line 91 of file displayUpdate.h.
#define FBIO_DRAW_BRUSH _IOW(FBIO_IOCTL_BASE, 4, struct brush_draw_info_obsolete) |
Definition at line 94 of file displayUpdate.h.
#define FBIO_DRAW_BRUSH_GENERIC _IOW(FBIO_IOCTL_BASE, 9, struct brush_draw_info) |
Definition at line 99 of file displayUpdate.h.
#define FBIO_DRAW_BUBBLE _IOW(FBIO_IOCTL_BASE, 8, struct brush_draw_info_obsolete) |
Definition at line 98 of file displayUpdate.h.
#define FBIO_DRAWPIXELS _IOW(FBIO_IOCTL_BASE, 3, struct transfer_buffer) |
Definition at line 93 of file displayUpdate.h.
#define FBIO_ERASE_WHITE _IOW(FBIO_IOCTL_BASE, 2, struct display_update_info) |
Definition at line 92 of file displayUpdate.h.
#define FBIO_IOCTL_BASE 'v' |
Definition at line 90 of file displayUpdate.h.
#define FBIO_REDRAW _IOW(FBIO_IOCTL_BASE, 5, struct display_update_info) |
Definition at line 95 of file displayUpdate.h.
#define FBIO_UPLOAD_BRUSH _IO(FBIO_IOCTL_BASE, 7) |
Definition at line 97 of file displayUpdate.h.
#define FBIO_UPLOAD_WAVEFORM _IOC(_IOC_WRITE, FBIO_IOCTL_BASE, 6, WAVEFORM_SIZE) |
Definition at line 96 of file displayUpdate.h.
#define HARDWARE_V3 1 |
Definition at line 108 of file displayUpdate.h.
#define LGRAY_BRUSH_X 28 |
Definition at line 156 of file displayUpdate.h.
#define LIGHT_GRAY 1 |
Definition at line 165 of file displayUpdate.h.
#define LOWEST_LEVEL 0 |
Definition at line 224 of file displayUpdate.h.
#define MAIN_WINDOW_EXPOSE_LEVEL 1 |
Definition at line 225 of file displayUpdate.h.
#define MAX_BRUSH_SIZE 6 |
Definition at line 161 of file displayUpdate.h.
#define MOZEMBED_UPDATE_LEVEL 2 |
Definition at line 226 of file displayUpdate.h.
#define PIXELBUFSIZE 25 |
Definition at line 169 of file displayUpdate.h.
#define PROGRESS_BLOCK_BLACK_SIZE_X 19 |
Definition at line 151 of file displayUpdate.h.
#define PROGRESS_BLOCK_BLACK_SIZE_Y 36 |
Definition at line 152 of file displayUpdate.h.
#define PROGRESS_BLOCK_BLACK_X 159 |
Definition at line 149 of file displayUpdate.h.
#define PROGRESS_BLOCK_BLACK_Y 22 |
Definition at line 150 of file displayUpdate.h.
#define PROGRESS_BLOCK_BWHITE_SIZE_X 19 |
Definition at line 141 of file displayUpdate.h.
#define PROGRESS_BLOCK_BWHITE_SIZE_Y 36 |
Definition at line 142 of file displayUpdate.h.
#define PROGRESS_BLOCK_BWHITE_X 118 |
Definition at line 139 of file displayUpdate.h.
#define PROGRESS_BLOCK_BWHITE_Y 22 |
Definition at line 140 of file displayUpdate.h.
#define PROGRESS_BLOCK_WHITE_SIZE_X 19 |
Definition at line 146 of file displayUpdate.h.
#define PROGRESS_BLOCK_WHITE_SIZE_Y 36 |
Definition at line 147 of file displayUpdate.h.
#define PROGRESS_BLOCK_WHITE_X 138 |
Definition at line 144 of file displayUpdate.h.
#define PROGRESS_BLOCK_WHITE_Y 22 |
Definition at line 145 of file displayUpdate.h.
#define PROGRESS_STEP_JIFFIES (ESTIMATED_BOOT_JIFFIES / (BOOT_PROGRESS_STEPS - BOOT_PROGRESS_START_STEP)) |
Definition at line 116 of file displayUpdate.h.
#define WAVEFORM_2BPP_IMAGE 0 |
Definition at line 102 of file displayUpdate.h.
#define WAVEFORM_4BPP_IMAGE 1 |
Definition at line 103 of file displayUpdate.h.
#define WAVEFORM_DRAW 4 |
Definition at line 104 of file displayUpdate.h.
#define WAVEFORM_FAST_BLACK_WHITE 6 |
Definition at line 105 of file displayUpdate.h.
#define WAVEFORM_SIZE (128*1024) |
Definition at line 87 of file displayUpdate.h.
#define WAVEFORM_TYPING 9 |
Definition at line 106 of file displayUpdate.h.
#define WHITE 0 |
Definition at line 164 of file displayUpdate.h.
#define WHITE_BRUSH_X 1 |
Definition at line 155 of file displayUpdate.h.
#define WHITE_BUBBLE_SIZE_X 7 |
Definition at line 136 of file displayUpdate.h.
#define WHITE_BUBBLE_SIZE_Y 7 |
Definition at line 137 of file displayUpdate.h.
#define WHITE_BUBBLE_X 21 |
Definition at line 134 of file displayUpdate.h.
#define WHITE_BUBBLE_Y 49 |
Definition at line 135 of file displayUpdate.h.
#define WHITE_CURSOR_SIZE_X 114 |
Definition at line 126 of file displayUpdate.h.
#define WHITE_CURSOR_SIZE_Y 24 |
Definition at line 127 of file displayUpdate.h.
#define WHITE_CURSOR_X 0 |
Definition at line 124 of file displayUpdate.h.
#define WHITE_CURSOR_Y 0 |
Definition at line 125 of file displayUpdate.h.
typedef unsigned short u16 |
Definition at line 42 of file displayUpdate.h.
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.
level | screen refresh level |
Definition at line 115 of file displayUpdate.c.
00116 { 00117 if (level > g_currentLevel) 00118 { 00119 g_currentLevel = level; 00120 } 00121 }
gboolean display_update_request_screen_refresh | ( | int | level, | |
gpointer | data | |||
) |
set address of gtk idle callback, where the e-inkt display update is requested
status | indicates whether or not not used | |
data | not used |
Definition at line 78 of file displayUpdate.c.
00079 { 00080 int theCurrentLevel = display_update_get_level(); 00081 int quality; 00082 00083 if (data == NULL) 00084 { 00085 quality = DM_QUALITY_FULL; 00086 } 00087 else 00088 { 00089 quality = (int) data; 00090 } 00091 00092 if (level >= theCurrentLevel) 00093 { 00094 00095 gtk_idle_add(display_update_during_idle_handling, (gpointer) quality); 00096 00097 //reset the current level 00098 display_update_reset_level(); 00099 00100 } 00101 return TRUE; 00102 }