Data Structure Documentation
FM4, S6E2DH/S6E2DF/S6E2D5/S6E2D3 Series, 32-Bit Microcontroller, Graphic Driver User Manual, Doc. No. 002-04387 Rev. *A
202
12.5.3.6 MM_U32 GetDefautItemHeight ( ) [inline]
Return values
Return
the height of one menu item.
12.5.3.7 int HandleKey ( MM_U32 key ) [inline]
Progress the key press input: for instance select the lower menu item if key down was pressed.
Parameters
in
key
Return values
The function return
−
The original key code if no action inside the menu was proceed.
−
0 if an action was proceeded (e.g., selection changed).
−
Or the selected menu item id if the menu was opened and the enter key
was pressed.
12.5.3.8 MM_ERROR InitMenu ( const void
∗
Font, int size_of_font, int font_height,
MML_GDC_PE_CONTEXT draw_ctx = 0 ) [inline]
Initialize the menu.
Parameters
in
Font
Define the tt font for the menu (if size_of_font == 0 it defines the location in the file system;
if size_of_font != 0, it is the pointer to the font buffer with a size of size_of_font).
in
size_of_font
See font parameter.
in
font_height
Define the requested font height in pixel.
in
draw_ctx
Initialized draw context objec.t
Return values
MML_OK
On success. Otherwise the related error code or
MML_ERR.
12.5.3.9 MM_ERROR Insert ( MM_U32 old_id, MM_U32 id, MM_U32 flags, const wchar_t
∗
pszString
) [inline]
Insert a menu item to the menu.
Parameters
in
old_id
ID of the parent menu item id or 0 if it is the root item (only one root item must be defined!).
in
id
ID of the inserted menu item.
in
flags
One or more "ored" MENU_FLAG’s.
in
pszString
Menu item string.
Return values
MML_OK
On success. Otherwise the related error code or
MML_ERR.
12.5.3.10 virtual MM_ERROR SetText ( const wchar_t
∗
pszString ) [inline], [virtual]
Do not use this function!
The documentation for this class was generated from the following file:
ut_class_menu.h