Lines Matching refs:menu
81 // The 'fExtraPad' field is used to when this menu item is added to
82 // a menubar instead of a menu. Menus and MenuBars space out items
83 // differently (more space around items in a menu). This class wants
96 ModelMenuItem::ModelMenuItem(const Model* model, BMenu* menu, bool drawText,
99 BMenuItem(menu),
228 It's used for example in the "Copy To" menu to indicate some special
231 SpecialModelMenuItem::SpecialModelMenuItem(const Model* model, BMenu* menu)
232 : ModelMenuItem(model, menu)
255 /*! A menu item that draws an icon alongside the label.
476 BMenu* menu = Menu();
477 if (menu == NULL)
480 // we have a parent menu
482 BMenu* _menu = menu;
484 menu = _menu;
486 // went up the hierarchy to found the topmost menu
488 if (menu == NULL || menu->Parent() == NULL)
491 // our topmost menu has a parent
493 if (dynamic_cast<BMenuField*>(menu->Parent()) == NULL)
496 // our topmost menu's parent is a BMenuField
498 BMenuItem* topLevelItem = menu->ItemAt((int32)0);
503 // our topmost menu has a menu item
510 // our topmost menu's item is an IconMenuItem
514 menu->Invalidate();