guiapp_action_powerdownmenu.c

来自「IT projecotr reference design.」· C语言 代码 · 共 54 行

C
54
字号
/*****************************************************************************
**             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 "guiStyle.h"
#include "guiApp_action.h"
#include "osd.h"
#include "guiApp.h"

/* Initialize the items */
int08 guiApp_action_Powerdown_OnStart( int16 menuId, GUIMSG *msg )
{
    guiApp_SetMenuPosition( menuId, GUI_BOTTOMRIGHT );
    
    return PASS;
}


/* implement item behavior, system interaction */
int08 guiApp_action_Powerdown_GuiMsg( int16 menuId, int16 itemId, GUIMSG *msg )
{
    if( msg == NULL )
        return FAIL;
    
    switch( msg->type )
    {
        case GUIMSG_INC:
        case GUIMSG_DEC:
        case GUIMSG_INC_Y:
        case GUIMSG_DEC_Y:
        case GUIMSG_ASSERT:
            guiStyle_CloseMenu( menuId );
            break;
            
        default:
            break;
    }   
    return PASS;
}

int08 guiApp_action_Powerdown_Redraw( int16 menuId, GUIMSG *msg )
{
    guiApp_SetMenuPosition( menuId, GUI_BOTTOMRIGHT );
    
    return PASS;
}

⌨️ 快捷键说明

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