Lines Matching refs:owner
153 void SetText(BView* owner, const BString& text)
156 owner->TruncateString(&fText, B_TRUNCATE_MIDDLE, 200);
157 SetWidth((int32)ceilf(owner->StringWidth(fText.String())));
160 owner->GetFontHeight(&fontHeight);
205 virtual void Draw(BView* owner, BRect frame, int32 index, bool selected)
207 owner->SetLowColor(owner->ViewColor());
208 owner->MovePenTo(frame.left, frame.top + fBaselineOffset);
209 owner->DrawString(fText);
222 virtual void SetTo(BView* owner, void* item)
227 SetText(owner, "Current workspace");
231 SetText(owner, text);
235 virtual void Draw(BView* owner, BRect frame, int32 index, bool selected)
237 owner->SetHighColor(tint_color(owner->ViewColor(), B_DARKEN_2_TINT));
238 StringItemRenderer::Draw(owner, frame, index, false);
248 virtual void SetTo(BView* owner, void* item)
251 SetText(owner, fInfo->name);
259 virtual void Draw(BView* owner, BRect frame, int32 index, bool selected)
261 owner->SetHighColor(0, 0, 0);
263 StringItemRenderer::Draw(owner, frame, index, selected);