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

📄 wgui_categories_idlescreen.c

📁 MTK6226修改平台UI的文件介绍
💻 C
📖 第 1 页 / 共 5 页
字号:
    UI_UNUSED_PARAMETER(x1);
    UI_UNUSED_PARAMETER(y1);
    UI_UNUSED_PARAMETER(x2);
    UI_UNUSED_PARAMETER(y2);
}

extern void redraw_status_icon_bar(U8 j);


/*****************************************************************************
 * FUNCTION
 *  cat33_analog_clock_hide_dt_display
 * DESCRIPTION
 *  hide function of date display of analog clock
 * PARAMETERS
 *  x1      [IN]        Start x position
 *  y1      [IN]        Start y position
 *  x2      [IN]        End x position
 *  y2      [IN]        End y position
 * RETURNS
 *  void
 *****************************************************************************/
void cat33_analog_clock_hide_dt_display(S32 x1, S32 y1, S32 x2, S32 y2)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
#ifndef __GDI_MEMORY_PROFILE_2__
    PU8 idle_screen_wallpaper = get_image(idle_screen_wallpaper_ID);
#endif 

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    x1 = 0;
    /* PMT VIKAS START 20050707 */
#ifdef __MMI_UI_DALMATIAN_STATUSBAR__
    y1 = MMI_status_bar_height + MMI_title_height;
#else /* __MMI_UI_DALMATIAN_STATUSBAR__ */ 
    /* PMT VIKAS START 20051010 */
#ifdef __MMI_UI_STATUS_BAR_AT_BOTTOM__
    /* for proper display of the status bar at analog clock */
    if (is_on_idlescreen())
    {
        y1 = 0;
    }
    else
#endif /* __MMI_UI_STATUS_BAR_AT_BOTTOM__ */ 
        /* PMT VIKAS END 20051010 */
        y1 = MMI_status_bar_height;
#endif /* __MMI_UI_DALMATIAN_STATUSBAR__ */ 
    /* PMT VIKAS END 20050707 */
    x2 = UI_device_width - 1;
    /* PMT VIKAS START 20051010 */
#ifdef __MMI_UI_STATUS_BAR_AT_BOTTOM__
    /* for proper display of the status bar at analog clock */
    if (is_on_idlescreen())
    {
        y2 = (UI_device_height - 1 - MMI_button_bar_height - MMI_status_bar_height - 4);
    }
    else
#endif /* __MMI_UI_STATUS_BAR_AT_BOTTOM__ */ 
        /* PMT VIKAS END 20051010 */
        y2 = UI_device_height - MMI_button_bar_height;
    gui_set_clip(x1, y1, x2, y2);
#ifdef __GDI_MEMORY_PROFILE_2__
    /* gui_fill_rectangle(x1,y1,x2,y2,wgui_transparent_color); */
    gdi_draw_solid_rect(x1, y1, x2, y2, GDI_COLOR_TRANSPARENT); /* 112205 transparent color Calvin */
#else /* __GDI_MEMORY_PROFILE_2__ */ 
    if (idle_screen_wallpaper_ID == 0)
    {
        ASSERT(idle_screen_wallpaper_ID == 0);  /* 092005 draw_wallpaper Calvin added //analog clock idle screen should predefined image */
        gdi_image_draw_file(cat33_image_x, cat33_image_y, idle_screen_wallpaper_name);
    }
    else
    {
        if (cat33_n_frames > 1)
        {
            gui_show_animated_image_frame(
                cat33_image_x,
                cat33_image_y,
                idle_screen_wallpaper,
                (S16) cat33_frame_number);
        }
        else
        {
            gui_show_image(cat33_image_x, cat33_image_y, idle_screen_wallpaper);
        }
    }
#endif /* __GDI_MEMORY_PROFILE_2__ */ 
    redraw_status_icon_bar(1);
    idle_screen_show_network_name();
}


/*****************************************************************************
 * FUNCTION
 *  cat33_digital_clock_hide_dt_display
 * DESCRIPTION
 *  hide function of date display of digital  clock
 * PARAMETERS
 *  x1      [IN]        Start x position
 *  y1      [IN]        Start y position
 *  x2      [IN]        End x position
 *  y2      [IN]        End y position
 * RETURNS
 *  void
 *****************************************************************************/
/* Assumes that the wallpaper displayed behind the digital clock is always full screen */
void draw_wallpaper(void);
void cat33_digital_clock_hide_dt_display(S32 x1, S32 y1, S32 x2, S32 y2)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    /* 072605 Calvin added */
#ifndef __GDI_MEMORY_PROFILE_2__
    PU8 idle_screen_wallpaper = get_image(idle_screen_wallpaper_ID);
#endif 

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    /* 072605 Calvin end */

    /* PMT VIKAS START 20050707 */
#ifndef __MMI_UI_DALMATIAN_IDLESCREEN__
    /* To retain passing coordinates to the clip window */
    x1 = 0;
    x2 = UI_device_width - 1;
    /* PMT VIKAS START 20051010 */
#ifdef __MMI_UI_STATUS_BAR_AT_BOTTOM__
    /* for proper display of the status bar at digital clock */
    if (is_on_idlescreen())
    {
        y1 = 0;
    }
    else
#endif /* __MMI_UI_STATUS_BAR_AT_BOTTOM__ */ 
        /* PMT VIKAS END 20051010 */
        y1 = MMI_status_bar_height;
    /* PMT VIKAS START 20051010 */
#ifdef __MMI_UI_STATUS_BAR_AT_BOTTOM__
    /* for proper display of the status bar at digital clock */
    if (is_on_idlescreen())
    {
        y2 = (UI_device_height - 1 - MMI_button_bar_height - MMI_status_bar_height - 4);
    }
    else
#endif /* __MMI_UI_STATUS_BAR_AT_BOTTOM__ */ 
        //PMT VIKAS END 20051010
        //PMT HIMANSHU START 20050809
        /* change for idlescreen shortcuts as their height is greater
           than MMI_button_bar_height */
#if defined(__MMI_TOUCH_IDLESCREEN_SHORTCUTS__)
        y2 = UI_device_height - max_touch_idle_screen_shortcut_height() - 1;
#else 
        y2 = UI_device_height - MMI_button_bar_height;
#endif 
    /* PMT HIMANSHU END 20050809 */
#endif /* __MMI_UI_DALMATIAN_IDLESCREEN__ */ 
    /* PMT VIKAS END 20050707 */
    gui_push_clip();
    gui_set_clip(x1, y1, x2, y2);

    /* 072605 Calvin modified */
#ifdef __GDI_MEMORY_PROFILE_2__
    /* gui_fill_rectangle(x1,y1,x2,y2,wgui_transparent_color); */
    gdi_draw_solid_rect(x1, y1, x2, y2, GDI_COLOR_TRANSPARENT); /* 112205 transparent color Calvin */
#else /* __GDI_MEMORY_PROFILE_2__ */ 
#if 0
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
#endif /* 0 */ 
    draw_wallpaper();
#endif /* __GDI_MEMORY_PROFILE_2__ */ 
    /* draw_wallpaper(); */
    /* 072605 Calvin end */

    redraw_status_icon_bar(1);
    gui_pop_clip();

    /* 101904 MTK Calvin changed to sync with every other digital idle screen */
    /* idle_screen_show_network_details(); */
    if (idle_screen_type == ANALOG_IDLE_SCREEN || idle_screen_type == DIGITAL_IDLE_SCREEN)
    {
        idle_screen_show_network_name();
    }
    else
    {
        idle_screen_show_network_details();
    }
    /* MTK Calvin end */
}

/* PMT HIMANSHU START 20050625 */
#ifdef __MMI_UI_TECHNO_IDLESCREEN_BAR__


/*****************************************************************************
 * FUNCTION
 *  cat33_hide_date_display
 * DESCRIPTION
 *  hide function of date display on idlescreen
 * PARAMETERS
 *  x1      [IN]        Start x position
 *  y1      [IN]        Start y position
 *  x2      [IN]        End x position
 *  y2      [IN]        End y position
 * RETURNS
 *  void
 *****************************************************************************/
void cat33_hide_date_display(S32 x1, S32 y1, S32 x2, S32 y2)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    gui_push_clip();
    gui_set_clip(x1, y1, x2, y2);
    /* PMT HIMANSHU START 20050721 */
#ifdef __GDI_MEMORY_PROFILE_2__
    /* gui_fill_rectangle(x1, y1, x2, y2, wgui_transparent_color); */
    gdi_draw_solid_rect(x1, y1, x2, y2, GDI_COLOR_TRANSPARENT); /* 112205 transparent color Calvin */
#endif /* __GDI_MEMORY_PROFILE_2__ */ 
    /* gui_fill_rectangle(x1, y1, x2, y2, current_MMI_theme->title_filler->c); */
    gui_show_image(0, MMI_status_bar_height, get_image(idlescreen_bar_id));//070306 Alpha layer
    /* PMT HIMANSHU END 20050721 */
    gui_pop_clip();
}

/* PMT HIMANSHU START 20050721 */


/*****************************************************************************
 * FUNCTION
 *  cat33_hide_day_string_display
 * DESCRIPTION
 *  hide function of day display on idlescreen
 * PARAMETERS
 *  x1      [IN]        Start x position
 *  y1      [IN]        Start y position
 *  x2      [IN]        End x position
 *  y2      [IN]        End y position
 * RETURNS
 *  void
 *****************************************************************************/
void cat33_hide_day_string_display(S32 x1, S32 y1, S32 x2, S32 y2)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    gui_push_clip();
    gui_set_clip(x1, y1, x2, y2);
#ifdef __GDI_MEMORY_PROFILE_2__
    /* gui_fill_rectangle(x1,y1,x2,y2,wgui_transparent_color); */
    gdi_draw_solid_rect(x1, y1, x2, y2, GDI_COLOR_TRANSPARENT); /* 112205 transparent color Calvin */
#endif /* __GDI_MEMORY_PROFILE_2__ */ 
    gui_show_image(0, MMI_status_bar_height, get_image(idlescreen_bar_id));//070306 Alpha layer
    gui_pop_clip();
}

/* PMT HIMANSHU END 20050721 */
#endif /* __MMI_UI_TECHNO_IDLESCREEN_BAR__ */ 
/* PMT HIMANSHU END */


/*****************************************************************************
 * FUNCTION
 *  cat33_hide_time_display
 * DESCRIPTION
 *  hide function of time display of analog/digital  clock
 * PARAMETERS
 *  x1      [IN]        Start x position
 *  y1      [IN]        Start y position
 *  x2      [IN]        End x position
 *  y2      [IN]        End y position
 * RETURNS
 *  void
 *****************************************************************************/
/* 092005 draw_wallpaper Calvin Start */
#if 0
/* under construction !*/
/* under construction !*/
#ifndef __GDI_MEMORY_PROFILE_2__
/* under construction !*/
#endif
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
#ifdef __GDI_MEMORY_PROFILE_2__
/* under construction !*/
/* under construction !*/
#else
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
#endif
/* under construction !*/
/* under construction !*/
/* under construction !*/
#else /* 0 */ 
void cat33_hide_time_display(S32 x1, S32 y1, S32 x2, S32 y2)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    gui_push_clip();
    gui_set_clip(0, y1, MAIN_LCD_device_width - 1, y2);
    wgui_hide_background_with_wallpaper(x1, y1, x2, y2);
    redraw_status_icon_bar(1);
    gui_pop_clip();
}
#endif /* 0 */ 
/* 092005 draw_wallpaper Calvin End */


/*****************************************************************************
 * FUNCTION
 *  idle_screen_hide_status_icons_bar0
 * DESCRIPTION
 *  hide function of stats icon horizontal bar of idle screen
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void idle_screen_hide_status_icons_bar0(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    S32 x1, y1, x2, y2;

#ifndef __MMI_IDLE_FULL_SCREEN__
    color c = *current_MMI_theme->statusbar0_background_color;
#endif 

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    gui_push_clip();
    get_status_icon_bar_clip(0, &x1, &y1, &x2, &y2);
    gui_set_clip(x1, y1, x2, y2);
#ifdef __MMI_IDLE_FULL_SCREEN__
    /* MTK Leo add 20040423, provide new interfaces to set wallpaper */
    if (idle_screen_wallpaper_ID == 0)
#ifdef __GDI_MEMORY_PROFILE_2__
        /* gui_fill_rectangle(x1,y1,x2,y2,wgui_transparent_color); */
        gdi_draw_solid_rect(x1, y1, x2, y2, GDI_COLOR_TRANSPARENT);     /* 112205 transparent color Calvin */
#else /* __GDI_MEMORY_PROFILE_2__ */ 
        draw_wallpaper();
#endif /* __GDI_MEMORY_PROFILE_2__ */ 
    else
    {
    #ifdef __GDI_MEMORY_PROFILE_2__
        /* gui_fill_rectangle(x1,y1,x2,y2,wgui_transparent_color); */
        gdi_draw_solid_rect(x1, y1, x2, y2, GDI_COLOR_TRANSPARENT);     /* 112205 transparent color Calvin */
    #else /* __GDI_MEMORY_PROFILE_2__ */ 
        /* PMT VIKAS START 20050707 */
    #if !((defined __MMI_UI_DALMATIAN_STATUSBAR__) && (defined __MMI_MAINLCD_176X220__))
        draw_wallpaper();
    #endif 
    #endif /* __GDI_MEMORY_PROFILE_2__ */ 
        /* PMT VIKAS END 20050707 */
    }
    /* MTK Leo end */
#else /* __MMI_IDLE_FULL_SCREEN__ */ 
    gui_fill_rectangle(x1, y1, x2, y2, c);
#endif /* __MMI_IDLE_FULL_SCREEN__ */ 
    gui_pop_clip();
}


/*****************************************************************************
 * FUNCTION
 *  idle_screen_hide_status_icons_bar1
 * DESCRIPTION
 *  hide function of stats icon vertical  bar of idle screen
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void idle_screen_hide_status_icons_bar1(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    S32 x1, y1, x2, y2;
    PU8 idle_screen_wallpaper;

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    idle_scre

⌨️ 快捷键说明

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