Lines Matching defs:menu
312 BMenu* menu = Menu();
315 menu->PushState();
316 menu->SetLowUIColor(B_DOCUMENT_BACKGROUND_COLOR);
317 menu->SetViewUIColor(B_DOCUMENT_BACKGROUND_COLOR);
318 menu->SetHighUIColor(B_DOCUMENT_TEXT_COLOR);
319 menu->FillRect(box, B_SOLID_LOW);
321 // Draw the character in the center of the menu
322 float charWidth = menu->StringWidth(Label());
324 menu->GetFontHeight(&fontHeight);
330 menu->DrawString(Label(), BPoint(box.left, box.bottom));
332 menu->PopState();
381 // Position the menu exactly above the character
391 // Show context menu
392 BPopUpMenu* menu = new BPopUpMenu(B_EMPTY_STRING, false, false);
393 menu->SetFont(be_plain_font);
397 menu->AddItem(new BMenuItem(B_TRANSLATE("Copy character"), message,
402 menu->AddItem(new BMenuItem(
406 menu->SetTargetForItems(this);
409 menu->Go(where, true, true, true);