groundwork for window port interface change to add_menu
groundwork only - window port interface change This changes the last parameter for add_menu() from a boolean to an unsigned int, to allow additional itemflags in future beyond just the "preselected" that the original boolean offered. There shouldn't be any functionality changes with this groundwork-only change, and if there are it is unintentional and should be reported.
This commit is contained in:
@@ -54,8 +54,9 @@ enum any_types {
|
||||
|
||||
/* menu return list */
|
||||
typedef struct mi {
|
||||
anything item; /* identifier */
|
||||
long count; /* count */
|
||||
anything item; /* identifier */
|
||||
long count; /* count */
|
||||
unsigned itemflags; /* item flags */
|
||||
} menu_item;
|
||||
#define MENU_ITEM_P struct mi
|
||||
|
||||
@@ -105,6 +106,10 @@ typedef struct mi {
|
||||
#define MENU_UNSELECT_PAGE '\\'
|
||||
#define MENU_INVERT_PAGE '~'
|
||||
#define MENU_SEARCH ':'
|
||||
|
||||
#define MENU_ITEMFLAGS_NONE 0x0000000
|
||||
#define MENU_ITEMFLAGS_SELECTED 0x0000001
|
||||
|
||||
/* clang-format on */
|
||||
|
||||
#endif /* WINTYPE_H */
|
||||
|
||||
Reference in New Issue
Block a user