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

📄 mso_button.c

📁 ZORAN 962/966 SOURCE CODE,DVD chip
💻 C
字号:
/* **************************************************************************************
*  Copyright (c) 2004 ZORAN Corporation, All Rights Reserved
*  THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF ZORAN CORPORATION
*
*  File: $Workfile: o_button.c $
*
* Description:
* ============
* Project definition of the MSO_BUTTON functions
*
****************************************************************************************/
#include "Config.h"		// Global Configuration - do not remove!
#ifdef DEBUG_UI_TRACE
#undef IFTRACE
#define IFTRACE if (gTraceUI)
#include "Debug\DbgMain.h"
#endif //DEBUG_UI_TRACE

#include "Include\SysDefs.h"

/***************************************************************************************
*	 Include files
****************************************************************************************/
#include <stdio.h>
#include <string.h>

// Included UI MENU SYSTEM files
#include "GUI\Menu_system\ms_object.h"
#include "gui\menu_system\osd_rendering.h"
#include "gui\menu_system\ms_display.h"
#include "GUI\Menu_system\ms_screen.h"
#include "GUI\Object_class\Button\mso_button.h"
#include "GUI\Resource\Bitmap\bitmap.h"
#include "Menu\menu_operation_def.h"
#ifndef DEBUG_UI_TRACE
#undef dbg_printf(sMsg)
#define dbg_printf(sMsg)
#undef	dbgm_printf(sMsg, mode)
#define dbgm_printf(sMsg, mode)
#endif
/***************************************************************************************
* 	Operation functions
****************************************************************************************/
#define pDescriptorButton				((MS_DESCRIPTOR_BUTTON*)(pThis->mpDescriptor))

/***************************************************************************************
*	Function	: 	ButtonOperation
*
*	In		: 	pThis	=	Pointer to the MSO_BUTTON object.
*
*				MsOp	=	Operation ID.
*
*				lParam	=	Parameter associated with an MS_OP if any.
*
*	Out		: 	None.
*
*	Return	:	ID of the operation that is to be propagated once processing is done,
*				otherwise MS_OP_NONE.
*
*	Desc 	:	This is the default operation function for all MSO_BUTTON objects.
****************************************************************************************/
#pragma argsused
MS_OP OBUTTON_Operation(MSO_OBJECT __NEAR* pThis, MS_OP MsOp, UINT32 lParam)
{
	switch (MsOp)
	{
	case MS_OP_ENTER:	// Fall Through !!!
		{
			if(MS_IsRadioButton(pThis))
			{
				((MS_IsSetRadio(pThis)) ? (MS_ResetRadio(pThis)) : (MS_SetRadio(pThis)));
				MS_DisplayAddObject(pThis);
			}
			MsOp = pDescriptorButton->mMsOp;
		}
	   	break;

	default:
		break;
	}
	return OTEXT_Operation(pThis, MsOp, lParam);
}

/***************************************************************************************
* 	Display functions
****************************************************************************************/

/***************************************************************************************
*	Function	: 	ButtonFillOSDSeg
*
*	In		: 	pThis	=	Pointer to button object.
*				pAbsArea	=	Absolute area of pThis object.
*
*	Out		: 	None.
*
*	Return	:	None.
*
*	Desc 	:	Default display function of all button objects. same as text display function
****************************************************************************************/


⌨️ 快捷键说明

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