Lines Matching defs:menu
116 BMenu* menu = Menu();
118 menu->PushState();
122 if ((!IsSelected() && !menu->IsRedrawAfterSticky())
126 menu->SetHighColor(shadow);
128 menu->FillRect(frame);
130 menu->SetHighColor(menuColor);
133 menu->FillRect(frame);
136 if (IsEnabled() && IsSelected() && !menu->IsRedrawAfterSticky()) {
140 menu->SetLowColor(backColor);
141 menu->SetHighColor(backColor);
142 menu->FillRect(frame);
144 menu->SetLowColor(menuColor);
145 menu->SetHighColor(menuColor);
150 menu->PopState();
157 BMenu* menu = Menu();
161 menu->SetDrawingMode(B_OP_OVER);
175 menu->MovePenTo(contentLocation);
176 menu->DrawBitmapAsync(fBitmap);
183 menu->SetDrawingMode(B_OP_COPY);
184 menu->MovePenTo(contentLocation);
187 menu->SetHighColor(ui_color(B_MENU_SELECTED_ITEM_TEXT_COLOR));
189 menu->SetHighColor(ui_color(B_MENU_ITEM_TEXT_COLOR));
191 float labelWidth = menu->StringWidth(Label());
192 BPoint penLocation = menu->PenLocation();
195 menu->DrawString(Label(labelWidth + offset));
245 TWindowMenuItem::InsertIndexFor(BMenu* menu, int32 startIndex,
250 = dynamic_cast<TWindowMenuItem*>(menu->ItemAt(index));
275 // use menu font (parent font not available yet)