Lines Matching defs:text
13 //! BStringView draws a non-editable text string.
52 BStringView::BStringView(BRect frame, const char* name, const char* text,
56 fText(text ? strdup(text) : NULL),
59 fPreferredSize(text ? _StringWidth(text) : 0.0, -1)
64 BStringView::BStringView(const char* name, const char* text, uint32 flags)
67 fText(text ? strdup(text) : NULL),
70 fPreferredSize(text ? _StringWidth(text) : 0.0, -1)
85 const char* text = archive->GetString("_text", NULL);
87 SetText(text);
280 const char* text = lines.StringAt(i).String();
281 float width = StringWidth(text);
288 text = truncated.String();
289 width = StringWidth(text);
310 DrawString(text, BPoint(x, y));
336 const char* text;
337 if (message->FindString("data", &text) == B_OK) {
338 SetText(text);
392 BStringView::SetText(const char* text)
394 if ((text && fText && !strcmp(text, fText)) || (!text && !fText))
398 fText = text ? strdup(text) : NULL;
612 BStringView::_StringWidth(const char* text)
614 if(text == NULL)