MCPcopy Create free account
hub / github.com/AlexandreRouma/SDRPlusPlus / AddCustomRectRegular

Method AddCustomRectRegular

core/src/imgui/imgui_draw.cpp:2187–2196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2185}
2186
2187int ImFontAtlas::AddCustomRectRegular(int width, int height)
2188{
2189 IM_ASSERT(width > 0 && width <= 0xFFFF);
2190 IM_ASSERT(height > 0 && height <= 0xFFFF);
2191 ImFontAtlasCustomRect r;
2192 r.Width = (unsigned short)width;
2193 r.Height = (unsigned short)height;
2194 CustomRects.push_back(r);
2195 return CustomRects.Size - 1; // Return index
2196}
2197
2198int ImFontAtlas::AddCustomRectFontGlyph(ImFont* font, ImWchar id, int width, int height, float advance_x, const ImVec2& offset)
2199{

Callers 1

ImFontAtlasBuildInitFunction · 0.80

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected