Lines Matching refs:x
151 int TextMenu::DrawHeader(int x, int y) const { in DrawHeader() argument
156 offset += draw_funcs_.DrawWrappedTextLines(x, y + offset, text_headers()); in DrawHeader()
158 offset += draw_funcs_.DrawTextLines(x, y + offset, text_headers()); in DrawHeader()
163 offset += draw_funcs_.DrawTextLine(x, y + offset, cur_selection_str, true); in DrawHeader()
170 int TextMenu::DrawItems(int x, int y, int screen_width, bool long_press) const { in DrawItems() argument
191 offset += draw_funcs_.DrawTextLine(x, y + offset, TextItem(i), bold); in DrawItems()
227 int GraphicMenu::DrawHeader(int x, int y) const { in DrawHeader() argument
229 draw_funcs_.DrawTextIcon(x, y, graphic_headers_.get()); in DrawHeader()
233 int GraphicMenu::DrawItems(int x, int y, int screen_width, bool long_press) const { in DrawItems() argument
250 draw_funcs_.DrawTextIcon(x, y + offset, item.get()); in DrawItems()
425 int x = (ScreenWidth() - max_stage * gr_get_width(stage_marker_empty_.get())) / 2; in draw_background_locked() local
429 DrawSurface(stage_surface.get(), 0, 0, stage_width, stage_height, x, y); in draw_background_locked()
430 x += stage_width; in draw_background_locked()
618 void ScreenRecoveryUI::DrawHighlightBar(int x, int y, int width, int height) const { in DrawHighlightBar() argument
619 gr_fill(x, y, x + width, y + height); in DrawHighlightBar()
622 void ScreenRecoveryUI::DrawFill(int x, int y, int w, int h) const { in DrawFill() argument
623 gr_fill(x, y, w, h); in DrawFill()
626 void ScreenRecoveryUI::DrawTextIcon(int x, int y, const GRSurface* surface) const { in DrawTextIcon() argument
627 gr_texticon(x, y, surface); in DrawTextIcon()
630 int ScreenRecoveryUI::DrawTextLine(int x, int y, const std::string& line, bool bold) const { in DrawTextLine() argument
631 gr_text(gr_sys_font(), x, y, line.c_str(), bold); in DrawTextLine()
635 int ScreenRecoveryUI::DrawTextLines(int x, int y, const std::vector<std::string>& lines) const { in DrawTextLines() argument
638 offset += DrawTextLine(x, y + offset, line, false); in DrawTextLines()
643 int ScreenRecoveryUI::DrawWrappedTextLines(int x, int y, in DrawWrappedTextLines() argument
646 size_t text_cols = (ScreenWidth() - x * 2) / char_width_; in DrawWrappedTextLines()
666 offset += DrawTextLine(x, y + offset, sub, false); in DrawWrappedTextLines()
715 int x = margin_width_ + kMenuIndent; in draw_menu_and_text_buffer_locked() local
720 y += DrawTextLine(x, y, title_lines_[i], i == 0); in draw_menu_and_text_buffer_locked()
723 y += DrawTextLines(x, y, help_message); in draw_menu_and_text_buffer_locked()
725 y += menu_->DrawHeader(x, y); in draw_menu_and_text_buffer_locked()
726 y += menu_->DrawItems(x, y, ScreenWidth(), IsLongPress()); in draw_menu_and_text_buffer_locked()