MCPcopy Create free account
hub / github.com/NanoMichael/MicroTeX / getMaxWidth

Method getMaxWidth

src/atom/atom_basic.cpp:1340–1344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1338/******************************** OverUnderDelimiter implementation *******************************/
1339
1340float OverUnderDelimiter::getMaxWidth(const Box* b, const Box* del, const Box* script) {
1341 float mx = max(b->_width, del->_height + del->_depth);
1342 if (script != nullptr) mx = max(mx, script->_width);
1343 return mx;
1344}
1345
1346sptr<Box> OverUnderDelimiter::createBox(_out_ TeXEnvironment& env) {
1347 auto b = (_base == nullptr ? sptr<Box>(new StrutBox(0, 0, 0, 0)) : _base->createBox(env));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected