libui/common/menu.c

20 lines
375 B
C
Raw Normal View History

// 29 may 2015
#include "../ui.h"
static uintmax_t type_uiMenu = 0;
static uintmax_t type_uiMenuItem = 0;
2015-08-27 11:05:11 -05:00
uintmax_t uiMenuType(void)
{
if (type_uiMenu == 0)
type_uiMenu = uiRegisterType("uiMenu", 0, 0);
return type_uiMenu;
}
2015-08-27 11:05:11 -05:00
uintmax_t uiMenuItemType(void)
{
if (type_uiMenuItem == 0)
type_uiMenuItem = uiRegisterType("uiMenuItem", 0, 0);
return type_uiMenuItem;
}