Data Structure Documentation
FM4, S6E2DH/S6E2DF/S6E2D5/S6E2D3 Series, 32-Bit Microcontroller, Graphic Driver User Manual, Doc. No. 002-04387 Rev. *A
200
12.5 CMenu Class Reference
#include <ut_class_menu.h>
Public Types
enum MENU_FLAG {
MENU_FLAG_POPUP = 1,
MENU_FLAG_CHECKBOX = CMenuItem::MENU_ITEM_FLAG_CHECKBOX,
MENU_FLAG_RADIO = CMenuItem::MENU_ITEM_FLAG_RADIO,
MENU_FLAG_ISCHECKED = CMenuItem::MENU_ITEM_FLAG_ISCHECKED
}
enum MENU_KEYS {
MENU_KEY_ENTER = 0x10000000,
MENU_KEY_UP = 0x10000001,
MENU_KEY_DOWN = 0x10000002,
MENU_KEY_LEFT = 0x10000003,
MENU_KEY_RIGHT = 0x10000004
}
Public Member Functions
virtual MM_ERROR SetText (const wchar_t
∗
pszString)
MM_ERROR InitMenu (const void
∗
Font, int size_of_font, int font_height, MML_GDC_PE_CONTEXT
draw_ctx=0)
virtual MM_ERROR Close ()
MM_ERROR Insert (MM_U32 old_id, MM_U32 id, MM_U32 flags, const wchar_t
∗
pszString)
CMenuItem
∗
Find (MM_U32 id, CMenuItem
∗
pBase)
CMenuItem
∗
FindSelected (CMenuItem
∗
pBase)
CMenuItem
∗
FindNext (CMenuItem
∗
pBase, CMenuItem
∗
pSearch, CMenuItem::MENU_ITEM_FIND find)
int HandleKey (MM_U32 key)
MM_U32 GetDefautItemHeight ()
MM_ERROR Draw ()
12.5.1 Detailed Description
Class CMenu (see CMenu)
12.5.2 Member Enumeration Documentation
12.5.2.1 enum MENU_FLAG
Define some menu types and states.
Enumerator
MENU_FLAG_POPUP
Popup menu entry.
MENU_FLAG_CHECKBOX
Menu item with check box.
MENU_FLAG_RADIO
Menu item with radio button.
MENU_FLAG_ISCHECKED
Menu item is checked.