MCPcopy Create free account
hub / github.com/GPUOpen-LibrariesAndSDKs/Cauldron / AddCustomRectRegular

Method AddCustomRectRegular

libs/imgui/imgui_draw.cpp:1570–1581  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1568}
1569
1570int ImFontAtlas::AddCustomRectRegular(unsigned int id, int width, int height)
1571{
1572 IM_ASSERT(id >= 0x10000);
1573 IM_ASSERT(width > 0 && width <= 0xFFFF);
1574 IM_ASSERT(height > 0 && height <= 0xFFFF);
1575 CustomRect r;
1576 r.ID = id;
1577 r.Width = (unsigned short)width;
1578 r.Height = (unsigned short)height;
1579 CustomRects.push_back(r);
1580 return CustomRects.Size - 1; // Return index
1581}
1582
1583int ImFontAtlas::AddCustomRectFontGlyph(ImFont* font, ImWchar id, int width, int height, float advance_x, const ImVec2& offset)
1584{

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected