Home
last modified time | relevance | path

Searched refs:y (Results 1 – 8 of 8) sorted by relevance

/bootable/recovery/recovery_ui/
Dvr_ui.cpp43 void VrRecoveryUI::DrawTextIcon(int x, int y, const GRSurface* surface) const { in DrawTextIcon() argument
44 gr_texticon(x + stereo_offset_, y, surface); in DrawTextIcon()
45 gr_texticon(x - stereo_offset_ + ScreenWidth(), y, surface); in DrawTextIcon()
48 int VrRecoveryUI::DrawTextLine(int x, int y, const std::string& line, bool bold) const { in DrawTextLine() argument
49 gr_text(gr_sys_font(), x + stereo_offset_, y, line.c_str(), bold); in DrawTextLine()
50 gr_text(gr_sys_font(), x - stereo_offset_ + ScreenWidth(), y, line.c_str(), bold); in DrawTextLine()
54 int VrRecoveryUI::DrawHorizontalRule(int y) const { in DrawHorizontalRule()
55 y += 4; in DrawHorizontalRule()
56 gr_fill(margin_width_ + stereo_offset_, y, ScreenWidth() - margin_width_ + stereo_offset_, y + 2); in DrawHorizontalRule()
57 gr_fill(ScreenWidth() + margin_width_ - stereo_offset_, y, in DrawHorizontalRule()
[all …]
Dscreen_ui.cpp151 int TextMenu::DrawHeader(int x, int y) const { in DrawHeader()
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
176 offset += draw_funcs_.DrawHorizontalRule(y + offset) + 4; in DrawItems()
185 draw_funcs_.DrawHighlightBar(0, y + offset - 2, screen_width, bar_height); in DrawItems()
191 offset += draw_funcs_.DrawTextLine(x, y + offset, TextItem(i), bold); in DrawItems()
195 offset += draw_funcs_.DrawHorizontalRule(y + offset); in DrawItems()
227 int GraphicMenu::DrawHeader(int x, int y) const { in DrawHeader()
[all …]
/bootable/recovery/recovery_ui/include/recovery_ui/
Dvr_ui.h38 int DrawHorizontalRule(int y) const override;
39 void DrawHighlightBar(int x, int y, int width, int height) const override;
40 void DrawFill(int x, int y, int w, int h) const override;
41 void DrawTextIcon(int x, int y, const GRSurface* surface) const override;
42 int DrawTextLine(int x, int y, const std::string& line, bool bold) const override;
Dscreen_ui.h54 virtual void DrawHighlightBar(int x, int y, int width, int height) const = 0;
57 virtual int DrawHorizontalRule(int y) const = 0;
60 virtual int DrawTextLine(int x, int y, const std::string& line, bool bold) const = 0;
67 virtual void DrawFill(int x, int y, int w, int h) const = 0;
70 virtual void DrawTextIcon(int x, int y, const GRSurface* surface) const = 0;
73 virtual int DrawTextLines(int x, int y, const std::vector<std::string>& lines) const = 0;
78 virtual int DrawWrappedTextLines(int x, int y, const std::vector<std::string>& lines) const = 0;
91 virtual int DrawHeader(int x, int y) const = 0;
93 virtual int DrawItems(int x, int y, int screen_width, bool long_press) const = 0;
113 int DrawHeader(int x, int y) const override;
[all …]
/bootable/recovery/minui/
Dgraphics.cpp47 static bool outside(int x, int y) { in outside() argument
49 return x < 0 || x >= (swapped ? gr_draw->height : gr_draw->width) || y < 0 || in outside()
50 y >= (swapped ? gr_draw->width : gr_draw->height); in outside()
69 int gr_font_size(const GRFont* font, int* x, int* y) { in gr_font_size() argument
75 *y = font->char_height; in gr_font_size()
124 static uint32_t* PixelAt(GRSurface* surface, int x, int y, int row_pixels) { in PixelAt() argument
127 return reinterpret_cast<uint32_t*>(surface->data()) + y * row_pixels + x; in PixelAt()
129 return reinterpret_cast<uint32_t*>(surface->data()) + x * row_pixels + (surface->width - y); in PixelAt()
131 return reinterpret_cast<uint32_t*>(surface->data()) + (surface->height - 1 - y) * row_pixels + in PixelAt()
135 y; in PixelAt()
[all …]
Dresources.cpp206 for (png_uint_32 y = 0; y < height; ++y) { in res_create_display_surface() local
209 TransformRgbToDraw(p_row.data(), surface->data() + y * surface->row_bytes, in res_create_display_surface()
278 for (png_uint_32 y = 0; y < height; ++y) { in res_create_multi_display_surface() local
281 int frame = y % *frames; in res_create_multi_display_surface()
282 uint8_t* out_row = surface[frame]->data() + (y / *frames) * surface[frame]->row_bytes; in res_create_multi_display_surface()
324 for (png_uint_32 y = 0; y < height; ++y) { in res_create_alpha_surface() local
325 uint8_t* p_row = surface->data() + y * surface->row_bytes; in res_create_alpha_surface()
379 for (png_uint_32 y = 0; y < png_handler.height(); ++y) { in get_locales_in_png() local
386 for (int i = 0; i < h; ++i, ++y) { in get_locales_in_png()
413 for (png_uint_32 y = 0; y < height; ++y) { in res_create_localized_alpha_surface() local
[all …]
/bootable/recovery/tests/unit/
Dresources_test.cpp110 for (png_uint_32 y = 0; y < png_->height(); ++y) { in TEST_P() local
120 ASSERT_GE(png_->height(), y + 1 + h) << "Locale: " << kLocale << " is not found in the file."; in TEST_P()
126 for (int i = 0; i < h; ++i, ++y) { in TEST_P()
/bootable/recovery/minui/include/minui/
Dminui.h127 void gr_texticon(int x, int y, const GRSurface* icon);
131 void gr_text(const GRFont* font, int x, int y, const char* s, bool bold);
135 int gr_font_size(const GRFont* font, int* x, int* y);