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

📄 wgui_datetime.c

📁 MTK6226修改平台UI的文件介绍
💻 C
📖 第 1 页 / 共 5 页
字号:
 *  width       [IN]        
 *  height      [IN]        
 * RETURNS
 *  void
 *****************************************************************************/
void wgui_resize_year_input(S32 width, S32 height)
{   /* resize year input box equal to width and height pass as parameter */
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    gui_resize_single_line_input_box(&wgui_date_input_year, width, height);
}


/*****************************************************************************
 * FUNCTION
 *  wgui_move_hours_input
 * DESCRIPTION
 *  move hours input box to particula position x , y equal to valeu pass as parameter
 * PARAMETERS
 *  x       [IN]        
 *  y       [IN]        
 * RETURNS
 *  void
 *****************************************************************************/
void wgui_move_hours_input(S32 x, S32 y)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    gui_move_single_line_input_box(&wgui_time_input_hours, x, y);
}


/*****************************************************************************
 * FUNCTION
 *  wgui_resize_hours_input
 * DESCRIPTION
 *  resize hours  inpuit box
 * PARAMETERS
 *  width       [IN]        
 *  height      [IN]        
 * RETURNS
 *  void
 *****************************************************************************/
void wgui_resize_hours_input(S32 width, S32 height)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    gui_resize_single_line_input_box(&wgui_time_input_hours, width, height);
}


/*****************************************************************************
 * FUNCTION
 *  wgui_move_minutes_input
 * DESCRIPTION
 *  move minutes input box to particula position x , y equal to valeu pass as parameter
 * PARAMETERS
 *  x       [IN]        
 *  y       [IN]        
 * RETURNS
 *  void
 *****************************************************************************/
void wgui_move_minutes_input(S32 x, S32 y)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    gui_move_single_line_input_box(&wgui_time_input_minutes, x, y);
}


/*****************************************************************************
 * FUNCTION
 *  wgui_resize_minutes_input
 * DESCRIPTION
 *  resize minutes  inpuit box
 * PARAMETERS
 *  width       [IN]        
 *  height      [IN]        
 * RETURNS
 *  void
 *****************************************************************************/
void wgui_resize_minutes_input(S32 width, S32 height)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    gui_resize_single_line_input_box(&wgui_time_input_minutes, width, height);
}


/*****************************************************************************
 * FUNCTION
 *  wgui_move_seconds_input
 * DESCRIPTION
 *  move seconds input box to particula position x , y equal to valeu pass as parameter
 * PARAMETERS
 *  x       [IN]        
 *  y       [IN]        
 * RETURNS
 *  void
 *****************************************************************************/
void wgui_move_seconds_input(S32 x, S32 y)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    gui_move_single_line_input_box(&wgui_time_input_seconds, x, y);
}


/*****************************************************************************
 * FUNCTION
 *  wgui_resize_seconds_input
 * DESCRIPTION
 *  resize seconds  inpuit box
 * PARAMETERS
 *  width       [IN]        
 *  height      [IN]        
 * RETURNS
 *  void
 *****************************************************************************/
void wgui_resize_seconds_input(S32 width, S32 height)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    gui_resize_single_line_input_box(&wgui_time_input_seconds, width, height);
}


/*****************************************************************************
 * FUNCTION
 *  wgui_move_AM_PM_input
 * DESCRIPTION
 *  move am-pm input box to particula position x , y equal to valeu pass as parameter
 * PARAMETERS
 *  x       [IN]        
 *  y       [IN]        
 * RETURNS
 *  void
 *****************************************************************************/
void wgui_move_AM_PM_input(S32 x, S32 y)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    gui_move_single_line_input_box(&wgui_time_input_AM_PM, x, y);
}


/*****************************************************************************
 * FUNCTION
 *  wgui_resize_AM_PM_input
 * DESCRIPTION
 *  resize am-pm  inpuit box
 * PARAMETERS
 *  width       [IN]        
 *  height      [IN]        
 * RETURNS
 *  void
 *****************************************************************************/
void wgui_resize_AM_PM_input(S32 width, S32 height)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    gui_resize_single_line_input_box(&wgui_time_input_AM_PM, width, height);
}


/*****************************************************************************
 * FUNCTION
 *  wgui_enable_seconds_input
 * DESCRIPTION
 *  enbale second input flag
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void wgui_enable_seconds_input(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    wgui_seconds_input_enabled = 1;
}


/*****************************************************************************
 * FUNCTION
 *  wgui_disable_seconds_input
 * DESCRIPTION
 *  disable second input flag
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void wgui_disable_seconds_input(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    wgui_seconds_input_enabled = 0;
}


/*****************************************************************************
 * FUNCTION
 *  wgui_enable_AM_PM_input
 * DESCRIPTION
 *  enbale am pm input flag
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void wgui_enable_AM_PM_input(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    wgui_AM_PM_input_enabled = 1;
}


/*****************************************************************************
 * FUNCTION
 *  wgui_disable_AM_PM_input
 * DESCRIPTION
 *  disable am pm input flag
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void wgui_disable_AM_PM_input(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    wgui_AM_PM_input_enabled = 0;
}


/*****************************************************************************
 * FUNCTION
 *  wgui_date_time_input_set_object_focus
 * DESCRIPTION
 *  set focus on input box pass as paaremter
 * PARAMETERS
 *  b       [IN]        
 * RETURNS
 *  void
 *****************************************************************************/
void wgui_date_time_input_set_object_focus(single_line_input_box *b)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    if (b == NULL)
    {
        return;
    }
    b->flags &= ~UI_SINGLE_LINE_INPUT_BOX_STATE_NORMAL;
    b->flags |= UI_SINGLE_LINE_INPUT_BOX_STATE_SELECTED;
    b->flags &= ~UI_SINGLE_LINE_INPUT_BOX_DISABLE_CURSOR_DRAW;
}


/*****************************************************************************
 * FUNCTION
 *  wgui_date_time_input_remove_object_focus
 * DESCRIPTION
 *  remove  focus from input box pass as paaremter
 * PARAMETERS
 *  b       [IN]        
 * RETURNS
 *  void
 *****************************************************************************/
void wgui_date_time_input_remove_object_focus(single_line_input_box *b)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    if (b == NULL)
    {
        return;
    }
    b->flags &= ~UI_SINGLE_LINE_INPUT_BOX_STATE_SELECTED;
    b->flags |= UI_SINGLE_LINE_INPUT_BOX_STATE_NORMAL;

⌨️ 快捷键说明

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