MCPcopy Create free account
hub / github.com/doldecomp/mkdd / getWidth

Method getWidth

libs/JSystem/J2DGraph/J2DPrint.cpp:160–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160f32 J2DPrint::getWidth(const char* format, ...)
161{
162 initchar();
163 va_list args;
164 va_start(args, format);
165 TSize size;
166
167 int len = vsnprintf((char*)mStrBuff, mStrBuffSize, format, args);
168 if (len < 0 || len > mStrBuffSize) {
169 len = mStrBuffSize;
170 }
171 parse(mStrBuff, len, 0x7fffffff, nullptr, size, 255, false);
172 return size.mWidth;
173}
174
175void J2DPrint::printReturn(const char* str, f32 x, f32 y, J2DTextBoxHBinding hbind, J2DTextBoxVBinding vbind, f32 x2, f32 y2, u8 alpha)
176{

Callers 15

initMethod · 0.45
setPortMethod · 0.45
setMinSizeMethod · 0.45
draw_privateMethod · 0.45
drawContentsMethod · 0.45
drawMethod · 0.45
drawMethod · 0.45
drawOutMethod · 0.45
changeUseTransMethod · 0.45
placeMethod · 0.45
drawSelfMethod · 0.45
private_initiateMethod · 0.45

Calls 1

vsnprintfFunction · 0.85

Tested by

no test coverage detected