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

📄 guistyle_item_buttonwin.c

📁 IT projecotr reference design.
💻 C
字号:
/*****************************************************************************
**             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.
******************************************************************************/

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

/* This item style requires a 3d styled window.  List index 0 = undepressed. 
 * List index 1 = depressed */
int08 guiStyle_item_ButtonWin_SetListIndex( int16 itemId, uint08 index )
{
    uint08 winNum;
       
    /* get the first window in the item */
    if( OSD_GetItemFirstWinNum( itemId, &winNum ) != PASS )
        return FAIL;
    
    /* Set the index value */
    if( index == 0 )
        OSD_SetWinDepressed( winNum, 0 );   /* undepressed */
    else
        OSD_SetWinDepressed( winNum, 1 );   /* depressed */   

    return PASS;
}

⌨️ 快捷键说明

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