Lines Matching defs:text
490 drag.AddData("text/plain", B_MIME_DATA, string, numBytes);
538 if (message->FindData("text/plain", B_MIME_DATA,
720 char text[32];
722 _GetKeyLabel(key, text, sizeof(text), keyKind);
728 snprintf(text, sizeof(text), "%02" B_PRIx32, key->code);
745 _GetAbbreviatedKeyLabelIfNeeded(view, rect, key, text, sizeof(text));
746 be_control_look->DrawLabel(view, text, rect, updateRect,
813 _GetAbbreviatedKeyLabelIfNeeded(view, rect, key, text, sizeof(text));
816 be_control_look->DrawLabel(view, text, rect, updateRect,
850 BString text(label);
851 view->TruncateString(&text, B_TRUNCATE_END, rect.Width());
852 view->DrawString(text.String(),
854 - StringWidth(text.String())) / 2),
976 KeyboardLayoutView::_FunctionKeyLabel(uint32 code, char* text, size_t textSize)
979 snprintf(text, textSize, "F%" B_PRId32, code + 1 - B_F1_KEY);
989 const Key* key, char* text, size_t textSize)
991 if (floorf(rect.Width()) > ceilf(view->StringWidth(text)))
1000 strlcpy(text, special, textSize);
1010 strlcpy(text, special, textSize);
1018 KeyboardLayoutView::_GetKeyLabel(const Key* key, char* text, size_t textSize,
1023 text[0] = '\0';
1027 strlcpy(text, special, textSize);
1032 if (_FunctionKeyLabel(key->code, text, textSize)) {
1043 strlcpy(text, special, textSize);
1048 strlcpy(text, special, textSize);
1054 strlcpy(text, bytes, textSize);