Lines Matching defs:scale
1290 // Helper to scale the ClipRect field of each ImDrawCmd.
1291 // Use if your final output buffer is at a different scale than draw_data->DisplaySize,
1333 const ImVec2 scale = ImVec2(
1344 vertex->uv = ImClamp(uv_a + ImMul(ImVec2(vertex->pos.x, vertex->pos.y) - a, scale), min, max);
1349 vertex->uv = uv_a + ImMul(ImVec2(vertex->pos.x, vertex->pos.y) - a, scale);
1914 const float scale = (cfg.SizePixels > 0) ? stbtt_ScaleForPixelHeight(&src_tmp.FontInfo, cfg.SizePixels) : stbtt_ScaleForMappingEmToPixels(&src_tmp.FontInfo, -cfg.SizePixels);
1921 stbtt_GetGlyphBitmapBoxSubpixel(&src_tmp.FontInfo, glyph_index_in_font, scale * cfg.OversampleH, scale * cfg.OversampleV, 0, 0, &x0, &y0, &x1, &y1);
2542 const char* ImFont::CalcWordWrapPositionA(float scale, const char* text, const char* text_end, float wrap_width) const
2562 wrap_width /= scale; // We work with unscaled widths to avoid scaling every characters
2647 const float scale = size / FontSize;
2663 word_wrap_eol = CalcWordWrapPositionA(scale, s, text_end, wrap_width - line_width);
2713 const float char_width = ((int)c < IndexAdvanceX.Size ? IndexAdvanceX.Data[c] : FallbackAdvanceX) * scale;
2741 float scale = (size >= 0.0f) ? (size / FontSize) : 1.0f;
2745 draw_list->PrimRectUV(ImVec2(pos.x + glyph->X0 * scale, pos.y + glyph->Y0 * scale), ImVec2(pos.x + glyph->X1 * scale, pos.y + glyph->Y1 * scale), ImVec2(glyph->U0, glyph->V0), ImVec2(glyph->U1, glyph->V1), col);
2762 const float scale = size / FontSize;
2763 const float line_height = FontSize * scale;
2811 word_wrap_eol = CalcWordWrapPositionA(scale, s, text_end, wrap_width - (x - pos.x));
2862 char_width = glyph->AdvanceX * scale;
2868 float x1 = x + glyph->X0 * scale;
2869 float x2 = x + glyph->X1 * scale;
2870 float y1 = y + glyph->Y0 * scale;
2871 float y2 = y + glyph->Y1 * scale;
2948 void ImGui::RenderMouseCursor(ImDrawList* draw_list, ImVec2 pos, float scale, ImGuiMouseCursor mouse_cursor)
2965 draw_list->AddImage(tex_id, pos + ImVec2(1,0)*scale, pos + ImVec2(1,0)*scale + size*scale, uv[2], uv[3], col_shadow);
2966 draw_list->AddImage(tex_id, pos + ImVec2(2,0)*scale, pos + ImVec2(2,0)*scale + size*scale, uv[2], uv[3], col_shadow);
2967 draw_list->AddImage(tex_id, pos, pos + size*scale, uv[2], uv[3], col_border);
2968 draw_list->AddImage(tex_id, pos, pos + size*scale, uv[0], uv[1], col_fill);