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

📄 rmplayerobjects.h

📁 sigmadesign smp8623 gui source code ,bingo
💻 H
字号:
/*
 *
 * Copyright (c) Sigma Designs, Inc. 2004. All rights reserved.
 *
 */

/**
	@file rmplayerobjects.h
	@brief  GUI Objects definitions for DVD player
	
	@author Raul Chirinos
*/

#ifndef __RMPLAYER_OBJECTS_H__
#define __RMPLAYER_OBJECTS_H__

enum RMButtonState {
	button_enabled = 0,
	button_focused,
	button_disabled
	
};

// OSD page definition
typedef struct tagRMOSDPageObject {	
	RMascii*	file;	// bitmap file
//	RMint32		x;		// for now full size at (0,0)
//	RMint32		y;
//	RMuint32	width;
//	RMuint32	height;
	RMbool		visible;

} RMOSDPageObject, *PRMOSDPageObject;


// Menu definition
// contains menu item objects
typedef struct tagRMMenuObject {
	//RMascii*	file;	// background file?
	RMint32		x;
	RMint32		y;
	RMuint32	width;
	RMuint32	height;
	RMbool		visible;
	RMascii*	fontfile;
	RMuint8		charwidth;
	RMuint32	foregroundcolor;
	RMuint32	backgroundcolor;
	RMbool		rounded;
	RMuint32	outlinecolor;
	RMbool		itemtextsetting;	// ?????????
	
} RMMenuObject, *PRMMenuObject;


// Menu item definition
typedef struct tagRMMenuItemObject {
	RMascii*	text;
	RMuint32	keyleft;
	RMuint32	keydown;	
	
} RMMenuItemObject, *PRMMenuItemObject;



// Text Button definition
typedef struct tagRMButtonObject {
	RMascii*	file;		// NULL for text buttons, otherwise contains 3 states (enabled, focused, disabled)
	RMint32		x;
	RMint32		y;
	RMuint32	width;
	RMuint32	height;
	RMuint8		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;
	RMbool		rounded;
	RMuint32	transparentcolor;
	RMbool		usetransparentcolor;
	RMbool		itemtextsetting;	// ?????????
	RMuint32	keyleft;
	RMuint32	keyup;
	RMuint32	keyright;
	RMuint32	keydown;

} RMButtonObject, *PRMButtonObject;



// Text Table definition
// contains text item children
typedef struct tagRMTextTableObject {
	RMint32		x;
	RMint32		y;
	RMuint32	width;
	RMuint32	height;
	RMbool		visible;
	RMascii*	fontfile;
	RMuint8		charwidth;
	RMuint32	backgroundcolor;
	
} RMTextTableObject, *PRMTextTableObject;



// Text item definition
typedef struct tagRMTextItemObject {
	RMint32		x;
	RMint32		y;
	RMascii*	text;
	RMbool		visible;
	RMuint32	foregroundcolor;
	
} RMTextItemObject, *PRMTextItemObject;



// Text definition
typedef struct tagRMTextObject {
	RMint32		x;
	RMint32		y;
	RMuint32	width;
	RMuint32	height;
	RMascii*	text;
	RMascii*	fontfile;
	RMuint8		charwidth;
	RMbool		visible;
	RMuint32	foregroundcolor;
	RMuint32	backgroundcolor;
	RMbool		transparentbackground;	// backgroundcolor is transparent
	
} RMTextObject, *PRMTextObject;



// Text List definition
// contains text items
// need to input array of strings
typedef struct tagRMTextListObject {
	RMint32		x;
	RMint32		y;
	RMuint32	width;
	RMuint32	height;
	RMascii*	fontfile;
	RMuint8		charwidth;
	RMbool		visible;
	RMuint32	foregroundcolor;
	RMascii*	icon;		// need something to specify a number of icons
	RMuint32	keyleft;
	RMuint32	keyright;
	
} RMTextListObject, *PRMTextListObject;



// ProgressBar definition
typedef struct tagRMProgressBarObject {
	RMint32		x;
	RMint32		y;
	RMuint32	width;
	RMuint32	height;
	RMascii*	text;
	RMascii*	fontfile;
	RMuint8		charwidth;
	RMbool		visible;
	RMuint32	foregroundcolor;
	RMascii*	icon;		// need something to specify a number of icons
	RMint32		min;
	RMint32		max;
	RMuint8		direction;		// 0 = left-right, 1 = top-bottom

} RMProgressBarObject, *PRMProgressBarObject;



// Bitmap definition
typedef struct tagRMBitmapObject {
	RMascii*	file;
	RMint32		x;
	RMint32		y;
	RMbool		visible;
	RMuint32	transparentcolor;
	RMbool		usetransparentcolor;
		
} RMBitmapObject, *PRMBitmaObjectp;



// Popup definition
// has text children
typedef struct tagRMPopupObject {
	RMascii*	file;
	RMint32		x;
	RMint32		y;
	RMbool		visible;
		
} RMPopupObject, *PRMPopupObject;



#endif //__RMPLAYER_OBJECTS_H__

⌨️ 快捷键说明

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