MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / AddCustomRectRegular

Method AddCustomRectRegular

KBotExt/imgui/imgui_draw.cpp:2247–2256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2245}
2246
2247int ImFontAtlas::AddCustomRectRegular(int width, int height)
2248{
2249 IM_ASSERT(width > 0 && width <= 0xFFFF);
2250 IM_ASSERT(height > 0 && height <= 0xFFFF);
2251 ImFontAtlasCustomRect r;
2252 r.Width = (unsigned short)width;
2253 r.Height = (unsigned short)height;
2254 CustomRects.push_back(r);
2255 return CustomRects.Size - 1; // Return index
2256}
2257
2258int ImFontAtlas::AddCustomRectFontGlyph(ImFont* font, ImWchar id, int width, int height, float advance_x, const ImVec2& offset)
2259{

Callers 1

ImFontAtlasBuildInitFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected