www.pudn.com > gps_working.rar > gps_photopad.h


 
#ifndef gps_photopad_h______ 
#define gps_photopad_h______ 
 
#include "fixed_echo.h" 
 
#include "list.h" 
 
typedef struct { 
 
	/*  这个node将全部的item链起来*/ 
	list_head_t all_node; 
 
	/* 这个node将邻近的item链起来,动态改变的,用于显示photo*/ 
	list_head_t neighbor_node; 
	 
	char *filename; 
 
	int longitude;	 
	int latitude;	 
 
	/* 郑蒙的私有数据*/ 
	// 
	// 
	// 
	 
} gps_photopad_item_t; 
 
/* 系统必须严格按照init,add,fresh,close这个顺序执行*/ 
/* 需要增加新的node时,把全部node加进来,然后调用fresh*/ 
 
/* widht, height 屏幕大小*/ 
fixed_status gps_photopad_init(int width, int height); 
 
/* 系统启动的时候,把jpeg文件一个一个加进来*/ 
fixed_status gps_photopad_addnode(char *filename); 
 
/* 全部node加进来后,调用这个函数*/ 
void gps_photopad_addnode_fresh(); 
 
void gps_photopad_close(); 
 
 
/* 每一个点画一个蓝色的正方形*/ 
void gps_photopad_drawpad(void *window_buf,  
	int left_longitude, int right_longitude, int up_latitude, int down_latitude); 
 
/* 根据用户click的位置,获得一个photo的list*/ 
/* get photo一定在drawpad之后 */ 
/* 这个list通过neighbor_node 串起来。如果没有符合的photo则返回NULL*/ 
gps_photopad_item_t* gps_photopad_get_photo(int click_x, int click_y); 
	 
#endif