Lines Matching refs:label
286 free(item->label);
324 setMenuItem(GLUTmenuItem * item, const char *label,
330 item->label = __glutStrdup(label);
331 if (!item->label) {
335 item->len = (int) strlen(label);
339 AppendMenu((HMENU) menu->win, MF_POPUP, (UINT)item->win, label);
341 AppendMenu((HMENU) menu->win, MF_STRING, item->unique, label);
346 glutAddMenuEntry(const char *label, int value)
358 setMenuItem(entry, label, value, FALSE);
365 glutAddSubMenu(const char *label, int menu)
383 setMenuItem(submenu, label, /* base 0 */ menu - 1, TRUE);
390 glutChangeToMenuEntry(int num, const char *label, int value)
409 free(item->label);
411 item->label = strdup(label);
412 if (!item->label)
415 item->len = (int) strlen(label);
419 MF_BYPOSITION | MFT_STRING, item->unique, label);
430 glutChangeToSubMenu(int num, const char *label, int menu)
449 free(item->label);
451 item->label = strdup(label);
452 if (!item->label)
455 item->len = (int) strlen(label);
462 MF_BYPOSITION | MF_POPUP, (UINT) item->win, label);
493 free(item->label);