⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dirhandler.h

📁 神龙卡开发原代码
💻 H
字号:
/* * H file for dirhandler.c * Copyright (c) Sigma Designs 2002-2003.  All Rights Reserved * */ #ifndef _DIRHANDLER_H#define _DIRHANDLER_H#define IMG_XOFF			30#define IMG_YOFF			58#define IMG_WIDTH			600#define IMG_HEIGHT			400#define DIR_WIDTH			600	//456#define DIR_HEIGHT			300#define DIR_FG_XPOS			178#define DIR_FG_YPOS			117		// bottom alignment#define DIR_BG_XPOS			165#define DIR_BG_YPOS			100		//#define DIR_YOFF			25#define DIR_MSG_XPOS		DIR_FG_XPOS#define DIR_MSG_YPOS		200#define DIR_ICON_XPOS		138#define LOADING_MSG_XPOS	(IMG_XOFF)#define LOADING_MSG_YPOS	40#define NAV_RETURN_YPOS		340#define NAV_WIDTH			105#define NAV_HEIGHT			37#define PLAY_SINGLE			0#define PLAY_ALL			1#define PLAY_RANDOM			2static void DrawDirList();static void PlayAVPfile(int fid);// End image bits, size 13x25static unsigned int imagebits_leftend[25] = {0x003F,0x01FF,0x03FF,0x07FF,0x0FFF,0x1FFF,0x3FFF,0x3FFF,0x7FFF,0x7FFF,0x7FFF,0xFFFF,0xFFFF,0xFFFF,0x7FFF,0x7FFF,0x7FFF,0x3FFF,0x3FFF,0x1FFF,0x0FFF,0x07FF,0x03FF,0x00FF,0x003F};#if 0static unsigned int imagebits_rightend[25] = {0xE000,0xFC00,0xFE00,0xFF00,0xFF80,0xFFC0,0xFFE0,0xFFE0,0xFFF0,0xFFF0,0xFFF0,0xFFF8,0xFFF8,0xFFF8,0xFFF0,0xFFF0,0xFFF0,0xFFE0,0xFFE0,0xFFC0,0xFF80,0xFF00,0xFE00,0xF800,0xE000};#endif#define PLAY_PLAYLIST_BUTTON	0#define CREATE_EDIT_BUTTON		1#define SELECT_ALL_BUTTON		2#define REMOVE_ALL_BUTTON		3#define VIEW_PLAYLIST_BUTTON	4#define PREV_PAGE_BUTTON		5#define NEXT_PAGE_BUTTON		6#define RETURN_BUTTON			7#define PLAY_ALL_BUTTON			8#define PLAY_RANDOM_BUTTON		9static struct {	char *imgOff, *imgOn;} navItem[] = {	{"img/lib/playoff.png","img/lib/playon.png"},	{"img/lib/createeditoff.png","img/lib/createediton.png"},		{"img/lib/selalloff.png","img/lib/selallon.png"},	//194	{"img/lib/remalloff.png","img/lib/remallon.png"},		{"img/lib/viewplayoff.png","img/lib/viewplayon.png"},	//232	{"img/lib/prevoff.png","img/lib/prevon.png"},	//270	{"img/lib/nextoff.png","img/lib/nexton.png"},	//308	{"img/lib/returnoff.png","img/lib/returnon.png"},	//346	{"img/lib/playalloff.png","img/lib/playallon.png"},	{"img/lib/shuffleplayoff.png","img/lib/shuffleplayon.png"}};static struct {	int id, y;} navList[8];static int curNavId, curNavPage, n_navItems, playrandomNavId, playallNavId;static int nextButton, prevButton, nextNavId, prevNavId;static int n_items, n_topItem, n_lastItem, curfId, n_files;static int plInc;static int *fl = NULL, *randPl = NULL, *sortedfl;static GR_GC_ID gc1, gc_pal0, gc_pal6, gc_pal244;static GR_WINDOW_ID wid;static OSD_WINDOW *wgt = NULL;static GR_BOOL bkgrnd_changed = GR_FALSE;static int libType, loadingFileMsg = 0, playMode = PLAY_SINGLE, errMsg;static char filename[512], fileext[4];int int_rand(int n);#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -