Functions | |
D4D_MENU_INDEX | D4D_MenuGetIndex (D4D_OBJECT *pThis) |
Function returns the current selected item index. More... | |
void | D4D_MenuSetIndex (D4D_OBJECT *pThis, D4D_MENU_INDEX ix) |
Function select new item by index. More... | |
D4D_MENU_INDEX | D4D_MenuGetItemCount (D4D_OBJECT_PTR pThis) |
Function gets the count of menu items. More... | |
D4D_MENU_INDEX | D4D_MenuFindUserDataItem (D4D_OBJECT_PTR pThis, void *pUser) |
Function finds the index of items with specified user data. More... | |
void * | D4D_MenuGetItemUserData (D4D_OBJECT_PTR pThis) |
Function gets the selected item user data. More... | |
D4D_STRING * | D4D_MenuGetItemText (D4D_OBJECT_PTR pThis) |
Function gets the selected item text. More... | |
This section specifies the exact usage for each API function.
D4D_MENU_INDEX D4D_MenuFindUserDataItem | ( | D4D_OBJECT_PTR | pThis, |
void * | pUser | ||
) |
Function finds the index of items with specified user data.
pThis | - pointer to the menu object |
pUser | - user data that is used to look for the item index (must match) |
Definition at line 675 of file d4d_menu.c.
D4D_MENU_INDEX D4D_MenuGetIndex | ( | D4D_OBJECT * | pThis | ) |
Function returns the current selected item index.
pThis | - pointer to the menu object |
Definition at line 620 of file d4d_menu.c.
D4D_MENU_INDEX D4D_MenuGetItemCount | ( | D4D_OBJECT_PTR | pThis | ) |
Function gets the count of menu items.
pThis | - pointer to the menu object |
Definition at line 661 of file d4d_menu.c.
D4D_STRING* D4D_MenuGetItemText | ( | D4D_OBJECT_PTR | pThis | ) |
Function gets the selected item text.
pThis | - pointer to the menu object |
Definition at line 708 of file d4d_menu.c.
void* D4D_MenuGetItemUserData | ( | D4D_OBJECT_PTR | pThis | ) |
Function gets the selected item user data.
pThis | - pointer to the menu object |
Definition at line 696 of file d4d_menu.c.
void D4D_MenuSetIndex | ( | D4D_OBJECT * | pThis, |
D4D_MENU_INDEX | ix | ||
) |
Function select new item by index.
pThis | - pointer to the menu object |
ix | - index of item that should be selected |
Definition at line 638 of file d4d_menu.c.