Lines Matching defs:scale

1832 // Helper to scale the ClipRect field of each ImDrawCmd.
1833 // Use if your final output buffer is at a different scale than draw_data->DisplaySize,
1881 const ImVec2 scale = ImVec2(
1892 vertex->uv = ImClamp(uv_a + ImMul(ImVec2(vertex->pos.x, vertex->pos.y) - a, scale), min, max);
1897 vertex->uv = uv_a + ImMul(ImVec2(vertex->pos.x, vertex->pos.y) - a, scale);
2465 const float scale = (cfg.SizePixels > 0) ? stbtt_ScaleForPixelHeight(&src_tmp.FontInfo, cfg.SizePixels) : stbtt_ScaleForMappingEmToPixels(&src_tmp.FontInfo, -cfg.SizePixels);
2472 stbtt_GetGlyphBitmapBoxSubpixel(&src_tmp.FontInfo, glyph_index_in_font, scale * cfg.OversampleH, scale * cfg.OversampleV, 0, 0, &x0, &y0, &x1, &y1);
3325 const char* ImFont::CalcWordWrapPositionA(float scale, const char* text, const char* text_end, float wrap_width) const
3345 wrap_width /= scale; // We work with unscaled widths to avoid scaling every characters
3430 const float scale = size / FontSize;
3446 word_wrap_eol = CalcWordWrapPositionA(scale, s, text_end, wrap_width - line_width);
3496 const float char_width = ((int)c < IndexAdvanceX.Size ? IndexAdvanceX.Data[c] : FallbackAdvanceX) * scale;
3526 float scale = (size >= 0.0f) ? (size / FontSize) : 1.0f;
3530 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);
3547 const float scale = size / FontSize;
3548 const float line_height = FontSize * scale;
3598 word_wrap_eol = CalcWordWrapPositionA(scale, s, text_end, wrap_width - (x - pos.x));
3650 float char_width = glyph->AdvanceX * scale;
3654 float x1 = x + glyph->X0 * scale;
3655 float x2 = x + glyph->X1 * scale;
3656 float y1 = y + glyph->Y0 * scale;
3657 float y2 = y + glyph->Y1 * scale;
3742 void ImGui::RenderArrow(ImDrawList* draw_list, ImVec2 pos, ImU32 col, ImGuiDir dir, float scale)
3745 float r = h * 0.40f * scale;
3746 ImVec2 center = pos + ImVec2(h * 0.50f, h * 0.50f * scale);
3793 void ImGui::RenderMouseCursor(ImDrawList* draw_list, ImVec2 pos, float scale, ImGuiMouseCursor mouse_cursor, ImU32 col_fill, ImU32 col_border, ImU32 col_shadow)
3806 draw_list->AddImage(tex_id, pos + ImVec2(1, 0) * scale, pos + (ImVec2(1, 0) + size) * scale, uv[2], uv[3], col_shadow);
3807 draw_list->AddImage(tex_id, pos + ImVec2(2, 0) * scale, pos + (ImVec2(2, 0) + size) * scale, uv[2], uv[3], col_shadow);
3808 draw_list->AddImage(tex_id, pos, pos + size * scale, uv[2], uv[3], col_border);
3809 draw_list->AddImage(tex_id, pos, pos + size * scale, uv[0], uv[1], col_fill);