| 1 |
/*************************************************************************** |
/* SPDX-License-Identifier: GPL-3.0-or-later */ |
| 2 |
menu.h - description |
/* |
| 3 |
------------------- |
* menu |
| 4 |
Copyright : (C) 2004-2025 by Leaflet |
* - configurable user interactive menu feature |
| 5 |
Email : leaflet@leafok.com |
* |
| 6 |
***************************************************************************/ |
* Copyright (C) 2004-2025 by Leaflet <leaflet@leafok.com> |
| 7 |
|
*/ |
|
/*************************************************************************** |
|
|
* * |
|
|
* This program is free software; you can redistribute it and/or modify * |
|
|
* it under the terms of the GNU General Public License as published by * |
|
|
* the Free Software Foundation; either version 3 of the License, or * |
|
|
* (at your option) any later version. * |
|
|
* * |
|
|
***************************************************************************/ |
|
| 8 |
|
|
| 9 |
#ifndef _MENU_H_ |
#ifndef _MENU_H_ |
| 10 |
#define _MENU_H_ |
#define _MENU_H_ |
| 131 |
return NULL; |
return NULL; |
| 132 |
} |
} |
| 133 |
|
|
| 134 |
return (p_menu_set->p_menu_pool + sizeof(MENU) * menu_id); |
return (MENU *)((char *)(p_menu_set->p_menu_pool) + sizeof(MENU) * menu_id); |
| 135 |
} |
} |
| 136 |
|
|
| 137 |
inline MENU_ITEM *get_menu_item_by_id(MENU_SET *p_menu_set, MENU_ITEM_ID menu_item_id) |
inline MENU_ITEM *get_menu_item_by_id(MENU_SET *p_menu_set, MENU_ITEM_ID menu_item_id) |
| 141 |
return NULL; |
return NULL; |
| 142 |
} |
} |
| 143 |
|
|
| 144 |
return (p_menu_set->p_menu_item_pool + sizeof(MENU_ITEM) * menu_item_id); |
return (MENU_ITEM *)((char *)(p_menu_set->p_menu_item_pool) + sizeof(MENU_ITEM) * menu_item_id); |
| 145 |
} |
} |
| 146 |
|
|
| 147 |
inline MENU_SCREEN *get_menu_screen_by_id(MENU_SET *p_menu_set, MENU_SCREEN_ID menu_screen_id) |
inline MENU_SCREEN *get_menu_screen_by_id(MENU_SET *p_menu_set, MENU_SCREEN_ID menu_screen_id) |
| 151 |
return NULL; |
return NULL; |
| 152 |
} |
} |
| 153 |
|
|
| 154 |
return (p_menu_set->p_menu_screen_pool + sizeof(MENU_ITEM) * menu_screen_id); |
return (MENU_SCREEN *)((char *)(p_menu_set->p_menu_screen_pool) + sizeof(MENU_ITEM) * menu_screen_id); |
| 155 |
} |
} |
| 156 |
|
|
| 157 |
#endif //_MENU_H_ |
#endif //_MENU_H_ |