Lines Matching refs:shortcut
276 // FIXME-OPT: Handle the %s shortcut?
7007 bool ImGui::MenuItemEx(const char* label, const char* icon, const char* shortcut, bool selected, bool enabled)
7029 // Note that in this situation: we don't render the shortcut, we render a highlight instead of the selected tick mark.
7045 float shortcut_w = (shortcut && shortcut[0]) ? CalcTextSize(shortcut, NULL).x : 0.0f;
7056 RenderText(pos + ImVec2(offsets->OffsetShortcut + stretch_w, 0.0f), shortcut, NULL, false);
7070 bool ImGui::MenuItem(const char* label, const char* shortcut, bool selected, bool enabled)
7072 return MenuItemEx(label, NULL, shortcut, selected, enabled);
7075 bool ImGui::MenuItem(const char* label, const char* shortcut, bool* p_selected, bool enabled)
7077 if (MenuItemEx(label, NULL, shortcut, p_selected ? *p_selected : false, enabled))