Lines Matching defs:menu

204 	BMenu* menu, uint32 resizingMode, uint32 flags)
215 _InitMenuBar(menu, frame, false);
222 BMenu* menu, bool fixedSize, uint32 resizingMode, uint32 flags)
231 _InitMenuBar(menu, frame, fixedSize);
237 BMenuField::BMenuField(const char* name, const char* label, BMenu* menu,
244 _InitMenuBar(menu, BRect(0, 0, 100, 15), true);
250 BMenuField::BMenuField(const char* name, const char* label, BMenu* menu,
259 _InitMenuBar(menu, BRect(0, 0, 100, 15), fixedSize);
265 BMenuField::BMenuField(const char* label, BMenu* menu, uint32 flags)
271 _InitMenuBar(menu, BRect(0, 0, 100, 15), true);
450 // The menu bar is too narrow, resize it to fit the menu items
585 // the menu bar is in follow left/right mode then,
593 // probably also invalidate a part of the borders around the menu bar.
841 // align the menu bar in the full available space
980 // menu bar
985 // place the menu bar and set the divider
1117 BMenuField::InitMenu(BMenu* menu)
1119 menu->SetFont(be_plain_font);
1124 while ((subMenu = menu->SubmenuAt(index++)) != NULL)
1199 BMenuField::_InitMenuBar(BMenu* menu, BRect frame, bool fixedSize)
1219 // align the menu bar in the full available space
1223 // align the menu bar left in the available space
1230 _AddMenu(menu);
1267 BMenuField::_AddMenu(BMenu* menu)
1269 if (menu == NULL || fMenuBar == NULL)
1272 fMenu = menu;
1273 InitMenu(menu);
1276 if (!menu->IsRadioMode() || (item = menu->FindMarked()) == NULL) {
1278 int32 itemCount = menu->CountItems();
1280 item = menu->ItemAt((int32)i);
1291 fMenuBar->AddItem(menu);
1300 fMenuBar->AddItem(menu);
1306 fMenuBar->AddItem(menu);
1316 // set the menu
1317 newMenuItemPrivate.SetSubmenu(menu);
1354 // get the minimal (== preferred) menu bar size
1361 TRACE("menu bar min width: %.2f\n", fLayoutData->menu_bar_min.width);