Gammu API  1.32.90
gammu-bitmap.h
Go to the documentation of this file.
1 
7 #ifndef __gammu_bitmap_h
8 #define __gammu_bitmap_h
9 
15 #include <gammu-limits.h>
16 #include <gammu-types.h>
17 #include <gammu-error.h>
18 #include <gammu-statemachine.h>
19 #include <stdio.h>
20 
26 typedef enum {
33 
39 typedef struct {
41  unsigned char *Buffer;
42  size_t Length;
44 
50 typedef enum {
51  GSM_None = 1,
93 
99 typedef struct {
108  unsigned char Location;
114  unsigned char Text[2 * (GSM_BITMAP_TEXT_LENGTH + 1)];
134  unsigned char RingtoneID;
144  unsigned char BitmapPoints[GSM_BITMAP_SIZE];
148  size_t BitmapHeight;
152  size_t BitmapWidth;
156  char NetworkCode[7];
160  unsigned char Sender[2 * (GSM_MAX_NUMBER_LENGTH + 1)];
164  unsigned char ID;
172  unsigned char Name[2 * (GSM_BITMAP_TEXT_LENGTH + 1)];
173 } GSM_Bitmap;
174 
180 typedef struct {
184  unsigned char Number;
190 
197 
204 
213 void GSM_PrintBitmap(FILE * file, GSM_Bitmap * bitmap);
214 
225 GSM_Error GSM_SaveBitmapFile(char *FileName, GSM_MultiBitmap * bitmap);
226 
237 GSM_Error GSM_ReadBitmapFile(char *FileName, GSM_MultiBitmap * bitmap);
238 
249 gboolean GSM_IsPointBitmap(GSM_Bitmap * bmp, int x, int y);
250 
260 void GSM_SetPointBitmap(GSM_Bitmap * bmp, int x, int y);
261 
271 void GSM_ClearPointBitmap(GSM_Bitmap * bmp, int x, int y);
272 
280 void GSM_ClearBitmap(GSM_Bitmap * bmp);
281 
291 
292 #endif
293 
294 /* Editor configuration
295  * vim: noexpandtab sw=8 ts=8 sts=8 tw=72:
296  */