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

Method changeWidth

src/atom/atom_basic.cpp:896–900  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

894/************************************ UnderOverAtom implementation *******************************/
895
896sptr<Box> UnderOverAtom::changeWidth(const sptr<Box>& b, float maxW) {
897 if (b != nullptr && abs(maxW - b->_width) > PREC)
898 return sptr<Box>(new HorizontalBox(b, maxW, ALIGN_CENTER));
899 return b;
900}
901
902sptr<Box> UnderOverAtom::createBox(_out_ TeXEnvironment& env) {
903 // create boxes in right style and calculate maximum width

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected