mso_button.h

来自「Zoran V966 DVD 解码 Soc芯片的源程序」· C头文件 代码 · 共 76 行

H
76
字号
/***************************************************************************************
*  Copyright (c) 2004 ZORAN Corporation, All Rights Reserved
*  THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF ZORAN CORPORATION
*
*  File: $Workfile: o_button.h $
*
* Description:
* ============
* Project definition of the MSO_BUTTON object.
*
****************************************************************************************/
#ifndef _O_BUTTON_H
#define _O_BUTTON_H

#include "GUI\Object_class\Text\mso_text.h"
#include "GUI\Object_class\Button\mso_button_defs.h"

/***************************************************************************************
* 	Public Macros
****************************************************************************************/

// If this attribute is set, the button's appearance would toggle between
// depressed/raised when clicked. i.e. it behaves as a radio button.
#define MS_ATTR_RADIO_BUTTON		MS_ATTR_GENERAL_PURPOSE_3
#define MS_IsRadioButton		MS_IsGeneralPurpose3
#define MS_IsSetRadio			MS_IsSelected
#define MS_SetRadio				MS_SetSelected
#define MS_ResetRadio				MS_ClearSlected

/***************************************************************************************
* 	Public typdef definitions.
****************************************************************************************/

/***************************************************************************************
* 	Operation functions
****************************************************************************************/

/***************************************************************************************
*	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.
****************************************************************************************/
MS_OP OBUTTON_Operation(MSO_OBJECT __NEAR* pThis, MS_OP MsOp, UINT32 lParam);

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

/***************************************************************************************
*	Function	: 	ButtonFillOSDSeg
*
*	In		: 	pThis	=	Pointer to button object.
*				pAbsArea	=	Absolute area of pThis object.
*
*	Out		: 	None.
*
*	Return	:	TRUE if successful.
*
*	Desc 	:	Default display function of all button objects.
****************************************************************************************/
#define OBUTTON_FillOSDSeg	OTEXT_FillOSDSeg

#endif // _O_BUTTON_H

⌨️ 快捷键说明

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