Lines Matching defs:size

1186     // Pull default font/size from the shared ImDrawListSharedData instance
1331 const ImVec2 size = b - a;
1334 size.x != 0.0f ? (uv_size.x / size.x) : 0.0f,
1335 size.y != 0.0f ? (uv_size.y / size.y) : 0.0f);
1588 // Load embedded ProggyClean.ttf at size 13, disable oversampling
1714 ImVec2 size = FONT_ATLAS_DEFAULT_TEX_CURSOR_DATA[cursor_type][1];
1715 *out_size = size;
1718 out_uv_border[1] = (pos + size) * TexUvScale;
1721 out_uv_fill[1] = (pos + size) * TexUvScale;
1754 stbrp_rect* Rects; // Rectangle to pack. We first fill in their size and the packer will give us their position.
1929 // The exact width doesn't really matter much, but some API/GPU have texture size limitations and increasing width can decrease height.
2207 // (Stored as accumulative offsets from the initial unicode codepoint 0x4E00. This encoding is designed to helps us compact the source code size.)
2274 // (Stored as accumulative offsets from the initial unicode codepoint 0x4E00. This encoding is designed to helps us compact the source code size.)
2641 ImVec2 ImFont::CalcTextSizeA(float size, float max_width, float wrap_width, const char* text_begin, const char* text_end, const char** remaining) const
2646 const float line_height = size;
2647 const float scale = size / FontSize;
2735 void ImFont::RenderChar(ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col, ImWchar c) const
2741 float scale = (size >= 0.0f) ? (size / FontSize) : 1.0f;
2749 void ImFont::RenderText(ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col, const ImVec4& clip_rect, const char* text_begin, const char* text_end, float wrap_width, bool cpu_fine_clip) const
2762 const float scale = size / FontSize;
2959 ImVec2 offset, size, uv[4];
2960 if (font_atlas->GetMouseCursorTexData(mouse_cursor, &offset, &size, &uv[0], &uv[2]))
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);
3072 // The purpose of encoding as base85 instead of "0x00,0x01,..." style is only save on _source code_ size.
3197 // The purpose of encoding as base85 instead of "0x00,0x01,..." style is only save on _source code_ size.