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

📄 rmguiobjects.h

📁 sigmadesign smp8623 gui source code ,bingo
💻 H
字号:
/* * * Copyright (c) Sigma Designs, Inc. 2004. All rights reserved. * *//**	@file rmguiobjects.h	@brief  GUI Objects definitions for DVD player	@author Raul Chirinos*/// to allocate fixed buffers for items that change dynamically#define MAX_FIXED_TEXT_LENGTH	128#ifndef __RMGUI_OBJECTS_H__#define __RMGUI_OBJECTS_H__typedef enum {	STATE_ENABLED = 0,	STATE_SELECTED,	// has focus	STATE_DISABLED} RMGuiObjectState;typedef enum {	SELECT_LEFT = 0,	SELECT_UP,	SELECT_RIGHT,	SELECT_DOWN} RMGuiObjectSelectDirection;typedef enum {	ALIGN_LEFT = 0,	ALIGN_RIGHT,	ALIGN_CENTER} RMGuiObjectTextAlignment;typedef enum {	TRUNC_NONE = 0,	TRUNC_DOTS,	TRUNC_SIMPLE} RMTextProperties;typedef enum {	ICON_AUDIO = 0,	ICON_VIDEO,	ICON_PICTURE,	ICON_FOLDER} RMGuiObjectIconType;typedef enum {	ORIENTATION_HORIZONTAL = 0,	ORIENTATION_VERTICAL} RMGuiObjectOrientation;typedef enum {	STRING_UNKNOWN = 0,	STRING_PASSWORD,	STRING_TIME_HMS,	STRING_TRACK,	STRING_FIELD,	// numeric input	STRING_PID,	STRING_SELECTION} RMGuiObjectStringType;typedef enum {	SLIDER_BITMAPED = 0,	SLIDER_NORMAL,	SLIDER_VERTICAL,	SLIDER_INFO} RMGuiObjectSliderType;// OSD page definitiontypedef struct tagRMPageObject {	RMascii*	file;	// bitmap file	RMascii*	url;	// bitmap file	RMuint16	x;		// for now full size at (0,0)	RMuint16	y;	RMuint16	width;	RMuint16	height;	RMbool		visible;	RMbool		dynamic;} RMPageObject, *PRMPageObject;// Menu definition// contains menu item objectstypedef struct tagRMMenuObject {	RMuint16	x;	RMuint16	y;	RMuint16	width;	RMuint16	height;	RMbool		visible;	RMascii*	fontfile;	RMuint8		charwidth;	RMuint32	foregroundcolor;	RMuint32	backgroundcolor;	RMuint16	rounded;	RMuint32	outlinecolor;	RMuint8		selecteditem;	RMuint8		previouslyselecteditem;	RMbool		hasfocus;	RMbool		redraw;	RMuint32	menuoutlinecolor;} RMMenuObject, *PRMMenuObject;// Menu item definitiontypedef struct tagRMMenuItemObject {	RMascii*	text;	RMascii		textvalue[MAX_FIXED_TEXT_LENGTH];	// right aligned item text	RMGuiObjectState state;} RMMenuItemObject, *PRMMenuItemObject;// Text Button definitiontypedef struct tagRMButtonObject {	RMascii*	file;		// NULL for text buttons, otherwise if selectedFile = NULL contains 3 states (enabled, focused, disabled)	RMascii*	selectedFile;	// selected view, if NULL, file is 3 state	RMascii*	selectOverlay;	RMuint16	x;	RMuint16	y;	RMuint16	width;	RMuint16	height;	RMGuiObjectState state;	RMbool		visible;	RMascii*	text;			// ignored if bitmapped	RMascii*	fontfile;		// ignored if bitmapped	RMuint8		charwidth;		// ignored if bitmapped	RMuint32	foregroundcolor;	// ignored if bitmapped	RMuint32	backgroundcolor;	// ignored if bitmapped	RMuint32	outlinecolor;	RMuint16	rounded;	RMuint32	transparentcolor;	RMbool		usetransparentcolor;	RMGuiObjectTextAlignment textalign;	RMuint8  	zIndex;} RMButtonObject, *PRMButtonObject;// Text item definitiontypedef struct tagRMTextItemObject {	RMascii		text[4*MAX_FIXED_TEXT_LENGTH];	RMuint8		row;	RMuint8		column;	RMuint32	foregroundcolor;	RMbool		update;		// ignored if parent redraw flag is used	RMbool		mergecolumns;	// expand text across columns	RMbool		border;} RMTextItemObject, *PRMTextItemObject;// Text Table definition// contains text item childrentypedef struct tagRMTextTableObject {	RMuint16	x;	RMuint16	y;	RMuint16	width;	RMuint16	height;	RMbool		visible;	RMascii*	fontfile;	RMuint8		charwidth;	RMuint8		columns;	RMuint32	backgroundcolor;	RMbool		redraw;	RMuint16	columnwidth;} RMTextTableObject, *PRMTextTableObject;// String object definitiontypedef struct tagRMStringObject {	RMuint16	x;	RMuint16	y;	RMuint16	width;	RMuint16	height;	RMascii*	text;	RMascii*	fontfile;	RMuint8		charwidth;	RMbool		visible;	RMGuiObjectStringType	type;	RMbool		hasfocus;	RMuint32	foregroundcolor;	RMuint32	backgroundcolor;	RMuint32	outlinecolor;	RMbool		transparentbackground;	// backgroundcolor is transparent	RMGuiObjectTextAlignment textalign;	RMuint8		inputchar;	RMuint32	selectioncolor;	RMuint8		id;} RMStringObject, *PRMStringObject;// Text List definition// contains text items// need to input array of stringstypedef struct tagRMListObject {	RMuint16	x;	RMuint16	y;	RMuint16	width;	RMuint16	height;	RMuint8		numitemsPerPage;	RMascii*	fontfile;	RMascii*	shadow;	RMuint8		charwidth;	RMbool		visible;	RMbool		extended;	RMbool		hasInfo;//	RMascii*	arrowUp;//	RMascii*	arrowUpInactive;//	RMascii*	arrowDown;//	RMascii*	arrowDownInactive;	RMbool		hasfocus;	RMbool		redraw;	RMuint32	foregroundcolor;	RMuint32	backgroundcolor;	RMuint32 	transparentcolor;	RMuint16	selecteditem;	RMuint16	firstvisible;	RMuint16	lastvisible;	RMuint16	previouslyselecteditem;	RMuint16	columnWidth;	// non-selected fgnd on bkgnd, selected fgnd on transparent	RMuint32 	outlinecolor;	// used in combination with invertdisplay	RMuint16	iconwidth;	// 0 if not icons included if LISTTYPE_BILLING use for num columns	RMuint8 	filetype;	RMbool		dynamic;	RMascii*	url;	// bitmap file} RMListObject, *PRMListObject;// List item definitiontypedef struct tagRMListItemObject {	RMascii*	file;		// NULL for text buttons	RMascii*	selectedFile;	// selected view	RMascii		text[MAX_FIXED_TEXT_LENGTH];	RMint16		index;	RMbool		begin;	RMint16		shift;	RMascii*	icon;	RMascii*	path;	RMascii*	director;	RMascii*	description;	RMascii*	pop_up;	RMascii*	actors;	RMascii*	company;	RMascii*	time;	RMascii*	price;	RMascii*	releace;	RMascii*	subtitles;	RMGuiObjectState state;} RMListItemObject, *PRMListItemObject;// Slider definitiontypedef struct tagRMSliderObject {	RMascii*	back;	RMascii*	thumb;	RMascii*	full;	RMascii* 	text;	RMuint16	thumbStartX; //upper-left corner	RMuint16	thumbStartY;	RMuint16	thumbEndX;	//bottom-right corner	RMuint16	thumbEndY;	RMascii		thumbTextTime[10]; //hard set to 10 because max text is "00:00:00\0"	RMascii		thumbTextLength[10]; //hard set to 10 because max text is "00:00:00\0"	RMuint16	x;	RMuint16	y;	RMuint16	width;	RMuint16	height;	RMascii*	fontfile;	RMbool		visible;	RMuint32	foregroundcolor;	RMuint32	backgroundcolor;	RMuint8		steps;	RMuint8		stepnumber;	RMuint8		prevstep;	RMbool		redraw;	RMGuiObjectSliderType type;} RMSliderObject, *PRMSliderObject;typedef struct tagRMPanelObject{	RMascii*	file;	RMuint16	x;	RMuint16	y;	RMuint16	width;	RMuint16	height;	RMuint8		orientation;	RMbool 		visible; //visible in tv mode}RMPanelObject;typedef struct tagTVListItem {	RMint32 number;	RMascii* name;	RMascii* url;}RMTVListItem;typedef struct tagTVList{	RMTVListItem* items;	RMuint8 nbItems;	RMuint8 current;	RMuint8 previous;	RMuint8 firstvisible;	RMuint8 lastvisible;	RMuint8 numItemsPerPage;	RMascii* path;	RMbool starting;	RMbool up;	RMuint16 x;	RMuint16 y;	RMuint16 width;	RMuint16 height;	RMuint8 fonstsize;	RMbool rotate;}RMTVList;// Icon definitiontypedef struct tagRMIconObject {	RMascii*	file;	RMuint32	transparentcolor;	RMGuiObjectIconType type;} RMIconObject, *PRMIconObject;// Bitmap definitiontypedef struct tagRMBitmapObject {	RMascii*	file;	RMuint16	x;	RMuint16	y;	RMbool		visible;	RMuint32	transparentcolor;	RMbool		usetransparentcolor;	RMuint8  	zIndex;} RMBitmapObject, *PRMBitmapObject;#endif //__RMGUI_OBJECTS_H__

⌨️ 快捷键说明

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