guistyle_item_lut.h

来自「IT projecotr reference design.」· C头文件 代码 · 共 83 行

H
83
字号
/*****************************************************************************
**             TEXAS INSTRUMENTS PROPRIETARY INFORMATION
**
**  (c) Copyright, Texas Instruments Incorporated, 2006.
**      All Rights Reserved.
**
**  Property of Texas Instruments Incorporated. Restricted Rights -
**  Use, duplication, or disclosure is subject to restrictions set
**  forth in TI's program license agreement and associated documentation.
******************************************************************************/

#ifndef _GUI_STYLE_ITEM_LUT_H
#define _GUI_STYLE_ITEM_LUT_H

#include "common.h"
#include "guiStyle.h"

#define MIST_ITEM_LAST -1

/* item style look up table structure */
typedef struct _GUI_STYLE_ITEM_FUNCTIONLUT
{
    int16 styleId;
    int08 (*GuiMsg)( GUI_OPEN_MENU *menu, GUIMSG *msg );
    int08 (*SetSingleValue)( int16 itemId, int32 value, int32 min, int32 max );
    int08 (*SetListIndex)( int16 itemId, uint08 index );
    int08 (*SetTextString)( int16 itemId, uint08 *string );
    int08 (*Highlight)( int16 itemId, uint08 winNum, BOOL highlight );
    int08 (*GrayOut)( int16 itemId, BOOL gray );
} GUI_STYLE_ITEM_FUNCTIONLUT;

/* Item Style Functions Public Interface */
int08 guiStyle_item_SetSingleValue( int16 itemId, int32 value, int32 min, int32 max );
int08 guiStyle_item_SetListIndex( int16 itemId, uint08 index );
int08 guiStyle_item_SetTextString( int16 itemId, uint08 *string );
int08 guiStyle_item_GuiMsg( GUI_OPEN_MENU *menu, GUIMSG *msg );
int08 guiStyle_item_Highlight( int16 itemId, uint08 winNum, BOOL highlight );
int08 guiStyle_item_GrayOut( int16 itemId, BOOL gray );


/*************************************************************
 * Function declarations
 *
 * Add declarations here for functions included in the
 * item style LUT.
 *
 *************************************************************/
/* generic display-only item style declarations */
int08 guiStyle_item_Generic_GuiMsg( GUI_OPEN_MENU *menu, GUIMSG *msg );
int08 guiStyle_item_Generic_GrayOut( int16 itemId, BOOL gray );
int08 guiStyle_item_Generic_MenuWindowHighlight( int16 itemId, uint08 winNum, BOOL highlight );
int08 guiStyle_item_Generic_ItemWindowHighlight( int16 itemId, uint08 winNum, BOOL highlight );


/* string & string-display-only item style declarations */
int08 guiStyle_item_String_SetTextString( int16 itemId, uint08 *string );
int08 guiStyle_item_String_SetSingleValue( int16 itemId, int32 value, int32 min, int32 max );

/* slider with text item style declarations */
int08 guiStyle_item_SliderWithText_SetSingleValue( int16 itemId, int32 value, int32 min, int32 max );
int08 guiStyle_item_SliderWithText_GuiMsg( GUI_OPEN_MENU *menu, GUIMSG *msg );

/* list item style declarations */
int08 guiStyle_item_List_SetListIndex( int16 itemId, uint08 index );
int08 guiStyle_item_List_GuiMsg( GUI_OPEN_MENU *menu, GUIMSG *msg );

/* checkbox item style declarations */
int08 guiStyle_item_Checkbox_SetListIndex( int16 itemId, uint08 index );
int08 guiStyle_item_Checkbox_GuiMsg( GUI_OPEN_MENU *menu, GUIMSG *msg );

/* button_list item style declarations */
int08 guiStyle_item_ButtonList_SetListIndex( int16 itemId, uint08 index );
int08 guiStyle_item_ButtonList_GuiMsg( GUI_OPEN_MENU *menu, GUIMSG *msg );

/* button_win item style declarations (also uses guiStyle_item_ButtonList_GuiMsg)*/
int08 guiStyle_item_ButtonWin_SetListIndex( int16 itemId, uint08 index );
int08 guiStyle_item_ButtonWin_Highlight( int16 itemId, uint08 winNum, BOOL highlight );

/* radio button item style declarations */
int08 guiStyle_item_Radio_SetListIndex( int16 itemId, uint08 index );
int08 guiStyle_item_Radio_GuiMsg( GUI_OPEN_MENU *menu, GUIMSG *msg );

#endif

⌨️ 快捷键说明

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