📄 gui_fixed_menuitems.c
字号:
/*----------------------------------------------------------------*/
if (block_transparency)
{
return;
}
if (transparency_in_list)
{
m->focussed_filler = backup_focussed_filler;
}
transparency_in_list = 0;
}
/*****************************************************************************
* FUNCTION
* gui_fixed_twostate_menuitem_disable_transparent_effect
* DESCRIPTION
* Disable the transparent effect for the two-state menu item.
* PARAMETERS
* m [IN] common two-state menu item object
* RETURNS
* void
*****************************************************************************/
void gui_fixed_twostate_menuitem_disable_transparent_effect(fixed_twostate_menuitem *m)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
if (block_transparency)
{
return;
}
if (m->focussed_filler->flags & UI_FILLED_AREA_TYPE_TRANSPARENT_COLOR)
{
transparency_in_list = 1;
backup_focussed_filler = m->focussed_filler;
non_transparent_focussed_filler = *backup_focussed_filler;
m->focussed_filler = &non_transparent_focussed_filler;
m->focussed_filler->flags = m->focussed_filler->flags & ~UI_FILLED_AREA_TYPE_TRANSPARENT_COLOR;
}
}
#endif /* __MMI_UI_TRANSPARENT_EFFECT__ */
/* Fixed menuitem dummy functions: Do not delete any of these functions */
/*****************************************************************************
* FUNCTION
* UI_fixed_menuitem_dummy_display_function
* DESCRIPTION
* Dummy item display function.
* PARAMETERS
* item [IN] private menu item
* common_item_data [IN] common menu item
* x [IN] x
* y [IN] y
* RETURNS
* void
*****************************************************************************/
void UI_fixed_menuitem_dummy_display_function(void *item, void *common_item_data, S32 x, S32 y)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
UI_UNUSED_PARAMETER(item);
UI_UNUSED_PARAMETER(common_item_data);
UI_UNUSED_PARAMETER(x);
UI_UNUSED_PARAMETER(y);
}
/*****************************************************************************
* FUNCTION
* UI_fixed_menuitem_dummy_hide_function
* DESCRIPTION
* Dummy item hide function.
* PARAMETERS
* item [IN] private menu item
* common_item_data [IN] common menu item
* x [IN] x
* y [IN] y
* RETURNS
* void
*****************************************************************************/
void UI_fixed_menuitem_dummy_hide_function(void *item, void *common_item_data, S32 x, S32 y)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
UI_UNUSED_PARAMETER(item);
UI_UNUSED_PARAMETER(common_item_data);
UI_UNUSED_PARAMETER(x);
UI_UNUSED_PARAMETER(y);
}
/*****************************************************************************
* FUNCTION
* UI_fixed_menuitem_dummy_measure_function
* DESCRIPTION
* Dummy item measure function.
* PARAMETERS
* item [IN] private menu item
* common_item_data [IN] common menu item
* width [OUT] item width
* height [OUT] item height
* RETURNS
* void
*****************************************************************************/
void UI_fixed_menuitem_dummy_measure_function(void *item, void *common_item_data, S32 *width, S32 *height)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
UI_UNUSED_PARAMETER(item);
UI_UNUSED_PARAMETER(common_item_data);
UI_UNUSED_PARAMETER(width);
UI_UNUSED_PARAMETER(height);
}
/*****************************************************************************
* FUNCTION
* UI_fixed_menuitem_dummy_highlight_function
* DESCRIPTION
* Dummy item highlight function.
* PARAMETERS
* item [IN] private menu item
* common_item_data [IN] common menu item
* RETURNS
* void
*****************************************************************************/
void UI_fixed_menuitem_dummy_highlight_function(void *item, void *common_item_data)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
UI_UNUSED_PARAMETER(item);
UI_UNUSED_PARAMETER(common_item_data);
}
/*****************************************************************************
* FUNCTION
* UI_fixed_menuitem_dummy_remove_highlight_function
* DESCRIPTION
* Dummy item remove highlight function.
* PARAMETERS
* item [IN] private menu item
* common_item_data [IN] common menu item
* RETURNS
* void
*****************************************************************************/
void UI_fixed_menuitem_dummy_remove_highlight_function(void *item, void *common_item_data)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
UI_UNUSED_PARAMETER(item);
UI_UNUSED_PARAMETER(common_item_data);
}
/*****************************************************************************
* FUNCTION
* UI_fixed_menuitem_dummy_resize_function
* DESCRIPTION
* Dummy item resize function.
* PARAMETERS
* x [IN] item width
* y [IN] item height
* RETURNS
* void
*****************************************************************************/
void UI_fixed_menuitem_dummy_resize_function(S32 x, S32 y)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
UI_UNUSED_PARAMETER(x);
UI_UNUSED_PARAMETER(y);
}
#ifdef __MMI_TOUCH_SCREEN__
/*****************************************************************************
* FUNCTION
* UI_fixed_menuitem_dummy_pen_function
* DESCRIPTION
* Dummy menu item pen handler.
* PARAMETERS
* item [IN] private menu item
* common_item_data [IN] common menu item
* item_x [IN] item x1
* item_y [IN] item y1
* pen_event [IN] pen event type
* x [IN] pen x
* y [IN] pen y
* menuitem_event [OUT] pen event result
* menuitem_param [IN] pen event parameter
* RETURNS
* Return MMI_TRUE if the pen event is handled; otherwise, MMI_FALSE.
*****************************************************************************/
BOOL UI_fixed_menuitem_dummy_pen_function(
void *item,
void *common_item_data,
S32 item_x,
S32 item_y,
mmi_pen_event_type_enum pen_event,
S16 x,
S16 y,
gui_list_pen_enum *menuitem_event,
gui_pen_event_param_struct *menuitem_param)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
UI_UNUSED_PARAMETER(item);
UI_UNUSED_PARAMETER(common_item_data);
UI_UNUSED_PARAMETER(pen_event);
UI_UNUSED_PARAMETER(x);
UI_UNUSED_PARAMETER(y);
UI_UNUSED_PARAMETER(menuitem_event);
UI_UNUSED_PARAMETER(menuitem_param);
return MMI_FALSE;
}
#endif /* __MMI_TOUCH_SCREEN__ */
/*****************************************************************************
*
* TEXT MENUITEM
*
* implemented by the icontext menuitem
*
*****************************************************************************/
/*****************************************************************************
* FUNCTION
* gui_set_fixed_text_menuitem_theme
* DESCRIPTION
* Apply the given theme to a common text menu item.
* PARAMETERS
* m [IN] common text menu item object
* t [IN] text menu item theme
* RETURNS
* void
*****************************************************************************/
void gui_set_fixed_text_menuitem_theme(fixed_text_menuitem *m, UI_fixed_text_menuitem_theme *t)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
gui_set_fixed_icontext_menuitem_theme(
(fixed_icontext_menuitem*)m,
(UI_fixed_icontext_menuitem_theme*)t);
}
/*****************************************************************************
* FUNCTION
* gui_set_fixed_text_menuitem_current_theme
* DESCRIPTION
* Apply the current theme to a common text menuitem.
* PARAMETERS
* m [IN] common text menu item object
* RETURNS
* void
*****************************************************************************/
void gui_set_fixed_text_menuitem_current_theme(fixed_text_menuitem *m)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
gui_set_fixed_icontext_menuitem_theme(
(fixed_icontext_menuitem*)m,
(UI_fixed_icontext_menuitem_theme*)current_fixed_text_menuitem_theme);
}
/*****************************************************************************
* FUNCTION
* gui_create_fixed_text_menuitem
* DESCRIPTION
* Create a common text menu item.
* PARAMETERS
* m [IN] common text menu item object
* width [IN] width
* height [IN] height
* RETURNS
* void
*****************************************************************************/
void gui_create_fixed_text_menuitem(fixed_text_menuitem *m, S32 width, S32 height)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
UI_fixed_icontext_menuitem_theme *old_theme;
/*----------------------------------------------------------------*/
/* Code Body */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -