MCPcopy Create free account
hub / github.com/BoomingTech/Piccolo / AddCustomRectRegular

Method AddCustomRectRegular

engine/3rdparty/imgui/imgui_draw.cpp:2207–2216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2205}
2206
2207int ImFontAtlas::AddCustomRectRegular(int width, int height)
2208{
2209 IM_ASSERT(width > 0 && width <= 0xFFFF);
2210 IM_ASSERT(height > 0 && height <= 0xFFFF);
2211 ImFontAtlasCustomRect r;
2212 r.Width = (unsigned short)width;
2213 r.Height = (unsigned short)height;
2214 CustomRects.push_back(r);
2215 return CustomRects.Size - 1; // Return index
2216}
2217
2218int ImFontAtlas::AddCustomRectFontGlyph(ImFont* font, ImWchar id, int width, int height, float advance_x, const ImVec2& offset)
2219{

Callers 1

ImFontAtlasBuildInitFunction · 0.80

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected